-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.json
48 lines (48 loc) · 1.26 KB
/
.eslintrc.json
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
41
42
43
44
45
46
47
48
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": [
"react",
"react-hooks",
"@typescript-eslint",
"prettier",
"import"
],
"parserOptions": {
"project": "./tsconfig.json",
"createDefaultProgram": true,
"ecmaFeatures": {
"jsx": true
}
},
"env": {
"browser": true,
"node": true,
"es6": true
},
"ignorePatterns": ["node_modules/", "EditorTools", "postcss.config.js"],
"extends": [
"next/core-web-vitals",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
"prettier",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:prettier/recommended"
],
"rules": {
"react/react-in-jsx-scope": "off",
"react/jsx-filename-extension": ["warn", { "extensions": [".ts", ".tsx"] }],
"no-useless-catch": "off",
"@typescript-eslint/no-explicit-any": "off",
"import/prefer-default-export": "off",
"react/require-default-props": "off",
"@typescript-eslint/no-unused-vars": "off",
"react-hooks/exhaustive-deps": "off",
"prettier/prettier": ["error", { "endOfLine": "auto" }],
"react/function-component-definition": [
2,
{ "namedComponents": ["arrow-function", "function-declaration"] }
]
}
}