-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
.eslintrc.json
65 lines (65 loc) · 1.52 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"env": {
"browser": true,
"es6": true,
"node": true
},
"extends": [
"plugin:react/recommended",
"airbnb",
"prettier",
"plugin:react/jsx-runtime"
],
"globals": {
"URL": false,
"BROWSER": false,
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"plugins": ["react"],
"rules": {
"arrow-body-style": 0,
"default-case-last": 0,
"default-param-last": 0,
"func-names": 0,
"import/no-named-as-default": 0,
"import/no-unresolved": ["error", { "ignore": ["^yoga-layout"] }],
"no-cond-assign": 1,
"no-continue": 1,
"no-promise-executor-return": 0,
"no-underscore-dangle": 0,
"no-use-before-define": 1,
"prefer-destructuring": 1,
"prefer-exponentiation-operator": 1,
"prefer-object-spread": 0,
"react/destructuring-assignment": 0,
"react/function-component-definition": 0,
"react/jsx-filename-extension": 0,
"react/jsx-props-no-spreading": 0,
"react/jsx-no-useless-fragment": 0,
"react/prop-types": 0,
"react/state-in-constructor": 0
},
"overrides": [
{
"files": [
"**/*.test.js",
"**/*.test.jsx",
"**/tests/**/*.js",
"**/tests/**/*.jsx",
"rollup.config.js",
"vitest.config.js",
"vitest.*.config.js",
"vitest.setup.js"
],
"rules": {
"import/no-extraneous-dependencies": 0
}
}
]
}