-
-
Notifications
You must be signed in to change notification settings - Fork 633
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update to eslint v9 fixes: github#1670
- Loading branch information
Showing
58 changed files
with
2,285 additions
and
1,603 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,41 @@ | ||
import globals from 'globals'; | ||
import eslint from '@eslint/js'; | ||
import tseslint from 'typescript-eslint'; | ||
import importPlugin from 'eslint-plugin-import'; | ||
import eslintConfigPrettier from 'eslint-config-prettier' | ||
|
||
export default tseslint.config( | ||
{ | ||
languageOptions: { | ||
globals: { | ||
...globals.browser, | ||
...globals.node, | ||
...globals.jest, | ||
...globals.jasmine | ||
} | ||
} | ||
}, | ||
{ | ||
ignores: ["**/dist/*", "**/*.cjs", "**/*.min.js"] | ||
}, | ||
eslint.configs.recommended, | ||
tseslint.configs.recommended, | ||
importPlugin.flatConfigs.typescript, | ||
eslintConfigPrettier, | ||
{ | ||
rules: { | ||
"@typescript-eslint/no-unsafe-function-type": "off", | ||
"@typescript-eslint/no-explicit-any": "off", | ||
} | ||
}, | ||
{ | ||
// Specific rules for tests | ||
files: ["**/__tests__/**"], | ||
rules: { | ||
"@typescript-eslint/no-unused-vars": "off", | ||
"@typescript-eslint/ban-ts-comment": "off", | ||
"@typescript-eslint/no-this-alias": "off", | ||
"prefer-rest-params": "off", | ||
} | ||
} | ||
) |
Oops, something went wrong.