Skip to content

Commit ec13a4b

Browse files
committed
chore(eslint): remove deprecated .eslintignore and move ignores into flat config
1 parent 2471e1f commit ec13a4b

5 files changed

Lines changed: 506 additions & 185 deletions

File tree

.eslintignore

Lines changed: 0 additions & 3 deletions
This file was deleted.

eslint.config.mjs

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,27 @@
11
import globals from "globals";
2-
import pluginJs from "@eslint/js";
3-
import tseslint from "typescript-eslint";
2+
import tsPlugin from "@typescript-eslint/eslint-plugin";
3+
import tsParser from "@typescript-eslint/parser";
44

55
export default [
6-
pluginJs.configs.recommended,
7-
...tseslint.configs.recommended,
86
{
97
files: ["**/*.{js,mjs,cjs,ts}"],
8+
languageOptions: {
9+
parser: tsParser,
10+
parserOptions: {
11+
ecmaVersion: 2022,
12+
sourceType: "module",
13+
project: "./tsconfig.eslint.json",
14+
},
15+
globals: globals.browser,
16+
},
17+
plugins: {
18+
'@typescript-eslint': tsPlugin,
19+
},
20+
1021
rules: {
1122
semi: ["error", "always"],
1223
quotes: ["off", "double"],
1324
"@typescript-eslint/explicit-function-return-type": "off",
14-
"@typescript-eslint/camelcase": "off",
1525
"@typescript-eslint/no-unsafe-function-type": "off",
1626
"@typescript-eslint/no-explicit-any": "off",
1727
"no-useless-escape": "off",
@@ -27,9 +37,8 @@ export default [
2737
},
2838
],
2939
"@typescript-eslint/no-unused-vars": "warn",
30-
"@typescript-eslint/class-name-casing": "off",
3140
},
32-
ignores: ["lib/*", "deps/*", "dist/*", "archived"],
41+
ignores: ["lib/*", "deps/*", "dist/*", "archived", "node_modules", "./*.js"],
3342
},
3443
{
3544
files: ["**/__tests__/*.{j,t}s?(x)", "**/tests/**/*.spec.{j,t}s?(x)"],

0 commit comments

Comments
 (0)