forked from illacloud/illa-builder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
37 lines (37 loc) · 911 Bytes
/
index.js
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
module.exports = {
parser: "@typescript-eslint/parser",
env: {
es6: true,
browser: true,
node: true,
},
settings: {
react: {
version: "detect",
},
},
extends: [
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"prettier",
],
plugins: ["@typescript-eslint/eslint-plugin", "unused-imports", "import"],
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 2020,
},
rules: {
"react/react-in-jsx-scope": "off",
"import/default": "off",
"react/no-unknown-property": ["error", { ignore: ["css"] }],
"react-hooks/exhaustive-deps": ['error'],
"@typescript-eslint/no-unused-vars": "off",
"unused-imports/no-unused-imports": "error",
"unused-imports/no-unused-vars": [
"warn",
{ "vars": "all", "varsIgnorePattern": "^_", "args": "after-used", "argsIgnorePattern": "^_" }
]
},
}