-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
46 lines (46 loc) · 1.11 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
{
"env": {
"browser": true, // Browser global variables like `window` etc.
"commonjs": true, // CommonJS global variables and CommonJS scoping.Allows require, exports and module.
"es6": true, // Enable all ECMAScript 6 features except for modules.
"jest": true, // Jest global variables like `it` etc.
"node": true // Defines things like process.env when generating through node
},
"extends": [
"plugin:react/recommended",
"standard",
"prettier",
"plugin:node/recommended"
],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2018,
"sourceType": "module"
},
"plugins": [
"prettier",
"react",
"react-hooks"
],
"rules": {
"prettier/prettier": "error",
"no-unused-vars": "warn",
"no-console": "off",
"react/prop-types": "off",
"func-names": "off",
"no-process-exit": "off",
"object-shorthand": "off",
"class-methods-use-this": "off",
"node/no-unsupported-features/es-syntax": [
"warn",
{
"version": ">=13.0.0",
"ignores": [
"modules"
]
}
]
}
}