-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
53 lines (49 loc) · 1.39 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
49
50
51
52
53
{
"extends": "airbnb",
"parser": "babel-eslint",
"plugins": ["react"],
"rules": {
"import/no-extraneous-dependencies": ["error", {"devDependencies": ["**/*.test.js", "**/*.spec.js"]}],
"no-tabs": "off",
"indent": ["error", "tab"],
// react
"react/prefer-es6-class": 0,
"react/jsx-indent": ["error", "tab"],
"react/jsx-indent-props": ["error", "tab"],
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"react/prefer-stateless-function": [0, { "ignorePureComponents": true }],
"react/forbid-prop-types": ["error", { "forbid": ['any'] }],
"react/no-unused-prop-types": ["error", { skipShapeProps: true }],
// to remove step by step
"arrow-body-style": 0,
"brace-style": [2, "stroustrup"],
"class-methods-use-this": 0,
"consistent-return": 0,
"default-case": 0,
"func-names": 0,
"import/no-unresolved": 0,
"max-len": 0,
"no-else-return": 0,
"no-param-reassign": 0,
"no-plusplus": 0,
"no-return-assign": 0,
"no-shadow": 0,
"no-underscore-dangle": 0,
"no-use-before-define": 0,
"no-useless-escape": 0,
"prefer-template": 0,
"prefer-arrow-callback": 0
},
"env": {
"es6": true,
"browser": true,
"jasmine": true
},
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"experimentalObjectRestSpread": true
}
}
}