-
Notifications
You must be signed in to change notification settings - Fork 94
/
eslint.config.mjs
40 lines (39 loc) · 1.12 KB
/
eslint.config.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import globals from "globals";
import react from "eslint-plugin-react/configs/recommended.js";
import prettier from "eslint-plugin-prettier/recommended";
import eslint from "@eslint/js";
import tseslint from "typescript-eslint";
export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.recommended,
prettier,
react,
{
languageOptions: {
globals: {
...globals.browser,
...globals.node,
}
},
files: ["**/*.ts", "**/*.tsx", "**/*.js"],
rules: {
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-empty-object-type": "off",
"@typescript-eslint/no-unused-expressions": "off",
"@typescript-eslint/no-unused-vars": "off",
"react/prop-types": "off",
"react/react-in-jsx-scope": "off",
"no-useless-escape": "off",
"no-empty": "off",
"no-global-assign": "off",
},
settings: {
react: {
version: "detect",
},
},
},
);