-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(deps): update dependency eslint to v9 (#881)
* chore(deps): update dependency eslint to v9 | datasource | package | from | to | | ---------- | ------- | ------ | ------ | | npm | eslint | 8.57.1 | 9.13.0 | * chore: migration --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
- Loading branch information
1 parent
a060887
commit d4f5ed0
Showing
8 changed files
with
313 additions
and
267 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
/* eslint-disable @typescript-eslint/no-unsafe-member-access */ | ||
/* eslint-disable @typescript-eslint/no-unsafe-argument */ | ||
import eslintConfigPrettier from 'eslint-config-prettier'; | ||
import globals from 'globals'; | ||
import js from '@eslint/js'; | ||
import json from 'eslint-plugin-json'; | ||
import tseslint from 'typescript-eslint'; | ||
|
||
export default tseslint.config( | ||
{ | ||
ignores: [ | ||
'**/.git/', | ||
'**/.vscode', | ||
'**/build/', | ||
'**/dist/', | ||
'**/coverage/', | ||
'**/LICENSE.md', | ||
'**/modules/', | ||
'**/node_modules/', | ||
'!**/.*', | ||
], | ||
}, | ||
js.configs.recommended, | ||
...tseslint.configs.recommendedTypeChecked.map((config) => ({ | ||
...config, | ||
files: ['**/*.{ts,js,mjs,cjs}'], | ||
})), | ||
...tseslint.configs.stylisticTypeChecked.map((config) => ({ | ||
...config, | ||
files: ['**/*.{ts,js,mjs,cjs}'], | ||
})), | ||
{ | ||
files: ['**/*.{ts,js,mjs,cjs}'], | ||
|
||
linterOptions: { | ||
reportUnusedDisableDirectives: true, | ||
}, | ||
|
||
languageOptions: { | ||
globals: { | ||
...globals.node, | ||
}, | ||
ecmaVersion: 'latest', | ||
sourceType: 'module', | ||
|
||
parserOptions: { | ||
projectService: true, | ||
tsconfigRootDir: import.meta.dirname, | ||
}, | ||
}, | ||
|
||
rules: { | ||
'sort-imports': 'error', | ||
}, | ||
}, | ||
json.configs.recommended, | ||
{ | ||
files: ['**/tsconfig.json'], | ||
rules: { | ||
'json/*': ['error', { allowComments: true }], | ||
}, | ||
}, | ||
eslintConfigPrettier, | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.