feat!: ESLint 9 Fixes (#307)

* chore: update postinstall scripts
* chore(lint): eslint automated fixes
* feat!: drop standard, sonarjs to work with eslint9

- This config allows arrow functions.

BREAKING CHANGES:

- Switches to eslint-config-eslint from eslint-config-standard.
- Also drops eslint-plugins-sonarjs because it doesn't work well
  with eslint9, and wants eslint8 and related plugins.
- Switches from eslint-plugin-prettier to eslint-config-prettier.
This commit is contained in:
Ismo Vuorinen
2024-11-25 03:35:13 +02:00
committed by GitHub
parent 006dc9b947
commit 6d6f4582dd
16 changed files with 1295 additions and 760 deletions

View File

@@ -26,7 +26,7 @@ npm install @ivuorinen/eslint-config --save-dev
yarn add @ivuorinen/eslint-config --dev
```
After installing it, a _`.eslintrc.json`_ file will be created automatically in the project's root folder with the following configuration:
After installing it, a _`eslint.config.mjs`_ file will be created automatically in the project's root folder with the following configuration:
```json
{