-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
69 lines (69 loc) · 1.9 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
64
65
66
67
68
69
{
"extends": "airbnb",
"plugins": ["babel", "react", "react-native", "jsx-a11y"],
"parser": "babel-eslint",
"env": {
"browser": true,
"node": true,
"es6": true,
"mocha": true
},
"rules": {
"camelcase": "off",
"func-names": ["error", "as-needed"],
"function-paren-newline": "off",
"global-require": "off",
"guard-for-in": "off",
"import/extensions": "off",
"import/first": "off",
"import/no-unresolved": "off",
"import/prefer-default-export": "off",
"jsx-a11y/href-no-hash": "off",
"lines-between-class-members":"off",
"max-len": [2, { "code": 120, "comments": 140 }],
"no-restricted-syntax": "off",
"no-console": "off",
"no-mixed-operators": "off",
"no-nested-ternary": "off",
"no-return-assign": "off",
"no-undef": "warn",
"no-plusplus": "warn",
"no-sparse-arrays": "off",
"no-underscore-dangle": "off",
"no-unused-vars": "warn",
"no-use-before-define": "off",
"one-var": "off",
"object-curly-newline": "off",
"object-property-newline": "off",
"one-var-declaration-per-line": "off",
"radix": "off",
"react/destructuring-assignment": "off",
"react/prop-types": "off",
"react/sort-comp": "off",
"react/jsx-closing-tag-location": "off",
"react/jsx-no-bind": "off",
"react/forbid-prop-types": ["off"],
"react/prefer-stateless-function": ["off"],
"react/jsx-filename-extension": "off",
"react/jsx-first-prop-new-line": ["off"],
"react/jsx-max-props-per-line": [
"off",
{ "maximum": 20, "when": "always" }
],
"class-methods-use-this": [
"off",
{ "exceptMethods": ["render", "componentWillMount"] }
],
"valid-jsdoc": "off",
"require-jsdoc": [
"error",
{
"require": {
"FunctionDeclaration": false,
"MethodDefinition": false,
"ClassDeclaration": true
}
}
]
}
}