-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.eslintrc
48 lines (47 loc) · 1.27 KB
/
.eslintrc
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
{
"extends": ["airbnb-base", "plugin:react/recommended"],
"parser": "babel-eslint",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
}
},
"env": {
"node": true,
"browser": true,
"es6": true,
},
"rules": {
"no-underscore-dangle": "off",
"arrow-parens": "off",
"no-confusing-arrow": ["error", {
"allowParens": true
}],
"object-curly-spacing": ["off"],
"consistent-return": "off",
"comma-dangle": "off",
"generator-star-spacing": "off",
"no-console": 0,
"import/no-extraneous-dependencies": "off",
"import/no-unresolved": ["error"],
"import/no-named-default": "off",
"import/prefer-default-export": "off",
"import/no-named-as-default-member": "off",
"valid-jsdoc": "error",
"promise/param-names": 2,
"promise/always-return": 0,
"promise/catch-or-return": 0,
"promise/no-native": 0,
"class-methods-use-this": "off",
"react/jsx-uses-vars": 1,
"no-use-before-define": ["error", {
"functions": true,
"classes": true
}],
},
"plugins": [
"react",
"promise",
"import"
]
}