-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
51 lines (51 loc) · 1.23 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
{
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2020,
"sourceType": "module"
},
"env": {
"browser": true,
"es6": true,
"commonjs": true,
"node": true,
"jest": true
},
"globals": {
"$": true
},
"plugins": [
"prettier",
"react",
"react-hooks"
],
"extends": [
"eslint:recommended",
"prettier",
"prettier/react",
"airbnb"
],
"parser": "babel-eslint",
"rules": {
"react/jsx-filename-extension": [1, {
"extensions": [".js", ".jsx"]
}],
"react/jsx-closing-bracket-location": ["off"],
"indent": ["off", 2],
"react/jsx-indent": ["off", 2],
"operator-linebreak": ["off"],
"implicit-arrow-linebreak": ["off"],
"import/imports-first": ["error", "absolute-first"],
"import/newline-after-import": "error",
"import/prefer-default-export": "off",
"no-unused-vars": ["warn"],
"react/prop-types": 0,
"no-console": 0,
"no-alert": 0,
"object-curly-newline": 0,
"no-underscore-dangle": 0,
"consistent-return": 0
}
}