Skip to content

Commit c842792

Browse files
committed
eslint config.
1 parent 47723d0 commit c842792

File tree

1 file changed

+105
-0
lines changed

1 file changed

+105
-0
lines changed

.eslintrc.json

+105
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
{
2+
"extends": "eslint:recommended",
3+
"parser": "babel-eslint",
4+
"plugins": [ "react" ],
5+
"ecmaFeatures": {
6+
7+
},
8+
"rules": {
9+
10+
"no-unexpected-multiline": 2,
11+
"block-scoped-var": 2,
12+
"complexity": [ 1, 15 ],
13+
"consistent-return": 2,
14+
"curly": 2,
15+
"default-case": 2,
16+
"dot-location": [2, "property"],
17+
"eqeqeq": [2, "smart"],
18+
"no-alert": 2,
19+
"no-caller": 2,
20+
"no-else-return": 2,
21+
"no-eval": 2,
22+
"no-implied-eval": 2,
23+
"no-extend-native": 2,
24+
"no-extra-bind": 2,
25+
"no-implicit-coercion": 2,
26+
"no-invalid-this": 2,
27+
"no-lone-blocks": 2,
28+
"no-loop-func": 2,
29+
"no-magic-numbers": [2, { "ignore": [ 0, -1 ] }],
30+
"no-multi-spaces": 2,
31+
"no-native-reassign": 2,
32+
"no-new": 2,
33+
"no-param-reassign": 2,
34+
"no-return-assign": 2,
35+
"no-sequences": 2,
36+
"no-useless-call": 2,
37+
"array-bracket-spacing": [2, "never"],
38+
"brace-style": [2, "1tbs", { "allowSingleLine": true }],
39+
"camelcase": 2,
40+
"comma-style": 2,
41+
"consistent-this": [2, "that"],
42+
"indent": 2,
43+
"jsx-quotes": 2,
44+
"key-spacing": [2, {"beforeColon": false, "afterColon": true}],
45+
"linebreak-style": [2, "unix"],
46+
"lines-around-comment": 2,
47+
"max-params": [2, 4],
48+
"no-multiple-empty-lines": [2, {"max": 2}],
49+
"no-nested-ternary": 2,
50+
"no-spaced-func": 2,
51+
"no-trailing-spaces": 2,
52+
"object-curly-spacing": 2,
53+
"semi-spacing": 2,
54+
"space-after-keywords": 2,
55+
"space-before-blocks": 2,
56+
"space-before-function-paren": [2, "never"],
57+
"space-before-keywords": [2, "always"],
58+
"space-infix-ops": [2, {"int32Hint": false} ],
59+
"arrow-body-style": 2,
60+
"no-arrow-condition": 2,
61+
"no-class-assign": 2,
62+
"no-const-assign": 2,
63+
"no-dupe-class-members": 2,
64+
"no-this-before-super": 2,
65+
"no-var": 2,
66+
"prefer-template": 2,
67+
68+
"react/display-name": 0,
69+
"react/forbid-prop-types": 2,
70+
"react/jsx-boolean-value": 2,
71+
"react/jsx-closing-bracket-location": 2,
72+
"react/jsx-curly-spacing": 2,
73+
"react/jsx-indent-props": 2,
74+
"react/jsx-key": 2,
75+
"react/jsx-max-props-per-line": [2, { "maximum": 4 }],
76+
"react/jsx-no-bind": 2,
77+
"react/jsx-no-duplicate-props": 2,
78+
"react/jsx-no-literals": 0,
79+
"react/jsx-no-undef": 2,
80+
"react/jsx-pascal-case": 2,
81+
"react/jsx-sort-prop-types": 2,
82+
"react/jsx-sort-props": 2,
83+
"react/jsx-uses-react": 2,
84+
"react/jsx-uses-vars": 2,
85+
"react/no-danger": 2,
86+
"react/no-did-mount-set-state": 2,
87+
"react/no-did-update-set-state": 2,
88+
"react/no-direct-mutation-state": 2,
89+
"react/no-multi-comp": 2,
90+
"react/no-set-state": 2,
91+
"react/no-unknown-property": 2,
92+
"react/prefer-es6-class": 2,
93+
"react/prop-types": 2,
94+
"react/react-in-jsx-scope": 2,
95+
"react/require-extension": 2,
96+
"react/self-closing-comp": 2,
97+
"react/sort-comp": 2,
98+
"react/wrap-multilines": 2
99+
},
100+
"env": {
101+
"browser": true,
102+
"node": true,
103+
"jasmine": true
104+
}
105+
}

0 commit comments

Comments
 (0)