-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.eslintrc.json
59 lines (59 loc) · 1.47 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
{
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": { "jsx": true }
},
"env": {
"browser": true,
"es6": true
},
"plugins": ["prettier", "promise", "react", "import"],
"extends": [
"airbnb",
"prettier",
"prettier/react",
"plugin:promise/recommended",
"plugin:react/recommended",
"plugin:prettier/recommended"
],
"rules": {
"indent": ["error", 2],
"linebreak-style": ["error", "unix"],
"quotes": ["error", "single"],
"semi": ["error", "never"],
"no-plusplus": ["error", { "allowForLoopAfterthoughts": true }],
"react/jsx-key": 2,
"react/no-typos": 0,
"react/forbid-prop-types": 0,
"no-return-assign": 0,
"global-require": "off",
"class-methods-use-this": "off",
"react/jsx-filename-extension": 1,
"import/prefer-default-export": 0,
"react/prefer-stateless-function": 0,
"import/no-dynamic-require": 0,
"import/extensions": 0,
"import/no-unresolved": 0,
"no-constant-condition": [
"error",
{
"checkLoops": false
}
],
"no-underscore-dangle": [2, { "allow": ["_id"] }],
"comma-dangle": ["error", "always-multiline"],
"no-shadow": "off",
"react/prop-types": 0,
"no-unused-vars": 1,
"no-nested-ternary": 0,
"promise/prefer-await-to-then": "warn",
"promise/prefer-await-to-callbacks": "warn"
},
"settings": {
"react": {
"version": "detect"
}
}
}