Skip to content

Commit

Permalink
update to eslint v9 fixes: github#1670
Browse files Browse the repository at this point in the history
  • Loading branch information
Havunen committed Jan 22, 2025
1 parent ba4c02e commit bdad70f
Show file tree
Hide file tree
Showing 58 changed files with 2,285 additions and 1,603 deletions.
45 changes: 0 additions & 45 deletions .eslintrc.json

This file was deleted.

41 changes: 41 additions & 0 deletions eslint.config.js
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",
}
}
)
Loading

0 comments on commit bdad70f

Please sign in to comment.