-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc
executable file
·63 lines (63 loc) · 2.33 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
54
55
56
57
58
59
60
61
62
63
{
"root": true,
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"parser": "babel-eslint",
"extends": "airbnb",
"env": {
"browser": true,
"node": true,
"es6": true,
"mocha": true
},
"rules": {
"arrow-body-style": ["warn", "as-needed", { "requireReturnForObjectLiteral": true }],
"arrow-parens": ["off"],
"comma-dangle": ["warn", "only-multiline"],
"class-methods-use-this": ["warn"],
"dot-notation": [
"warn"
],
"global-require": ["warn"],
"import/no-unresolved": ["error", { "ignore": ['\.img$', '\.png$', "NativeModules"] }],
"import/imports-first": ["off"],
"import/newline-after-import": ["off"],
"import/no-extraneous-dependencies": ["warn"],
"import/prefer-default-export": ["warn"],
"max-len": ["error", 120, 2],
"new-cap": ["error", { "capIsNewExceptions": [] }],
"no-param-reassign": ["error", { "props": false }],
"no-trailing-spaces": ["error", { "skipBlankLines": true }],
"no-underscore-dangle": ["off", { "allowAfterThis": true }],
"no-unused-expressions": ["error", { "allowShortCircuit": true }],
"no-unused-vars": ["error", { "vars": "all", "args": "after-used", "caughtErrors": "none" }],
"no-plusplus": ["off"],
"no-useless-concat": ["off"],
"no-mixed-operators": ["off"],
"no-string-refs": ["off"],
"no-extra-boolean-cast": ["off"],
"no-lonely-if": ["off"],
"object-shorthand": ["warn"],
"object-property-newline": ["off"],
"padded-blocks": ["error", "never"],
"prefer-template": ["off"],
"quote-props": ["error", "consistent-as-needed", { "keywords": true }],
"react/jsx-boolean-value": ["error", "always"],
"react/jsx-pascal-case": ["warn", { "ignore": ["IM"] }],
"react/prop-types": ["warn", { "ignore": ["navigator", "exec", "children", "style", "param"] }],
"react/sort-comp": ["warn", { "order": [ "static-methods", "/^_getStateFromStores$/", "constructor" ]}],
"react/jsx-space-before-closing": ["warn", "always"],
"react/jsx-filename-extension": ["off"],
"react/forbid-prop-types": ["off"],
"react/no-string-refs": ["off"],
"react/no-array-index-key": ["off"],
"react/no-unused-prop-types": ["off"],
"react/require-default-props": ["off"],
"react/jsx-wrap-multilines": ["off"]
}
}