Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update ESLint, migrate configuration file (#2574)
### 🎯 Goal Time to UPGRADE and migrate. :) PR is divided into multiple commits, ESLint changes, Prettier changes and manual changes - we can drop Prettier changes for `master` merges (so that I don't have to deal with merge conflicts) and merge this PR once our PR backlog is somewhat empty. #### Notable Changes - changed CI to run on Node@lts/* instead of v16 and v18 - adjusted `bundle-cjs.mjs` and `getPackageVersion.mjs` to use import for `package.json` instead (`with` assertion) - reduced Prettier print-width to 90 (from 100, default is 80) as some new formattings are just weird - omitted `eslint-plugin-prettier` as Prettier format step is included in CI anyway - explicitly installed `@testing-library/dom` as it's required by our tests and is no longer installed with `eslint-plugin-jest-dom` - `noUnusedParameters` and `noUnusedLocals` (`tsconfig.json`) are now set to `false` to not fail build steps, developers are still warned through ESLint - omitted certain other plugins since those weren't used apparently, compare against these old configs - [generated against Attachment.test.js](https://gist.github.com/arnautov-anton/9bdce867ed1ddf2b82a6f3f7a5bd9e04) and [against Attachment.tsx](https://gist.github.com/arnautov-anton/ee8dbdb8fda4906a0c436c21686e2105)
- Loading branch information