UNPKG

1.4 kBJSONView Raw
1{
2 "rules": {
3 "indent": [2, 2],
4 "quotes": [2, "single"],
5 "linebreak-style": [2, "unix"],
6 "semi": [2, "never"],
7 "no-console": 0,
8 "prefer-const": 2,
9 "no-const-assign": 2,
10 "no-var": 2,
11 "object-shorthand": 2,
12 "quote-props": [2, "as-needed", { "keywords": true }],
13 "prefer-arrow-callback": 2,
14 "arrow-spacing": 2,
15 "camelcase": 2,
16 "new-cap": 2,
17 "one-var": [2, "never"],
18 "eqeqeq": 2,
19 "comma-style": 2,
20 "comma-spacing": ["error", {"before": false, "after": true}],
21 "no-nested-ternary": 2,
22 "no-unneeded-ternary": 2,
23 "react/jsx-uses-vars": 2,
24 "react/jsx-no-bind": 2,
25 "react/jsx-uses-react": 2,
26 "react/prefer-es6-class": [2, "always"],
27 "react/jsx-pascal-case": 2,
28 "react/jsx-closing-bracket-location": 2,
29 "jsx-quotes": [2, "prefer-double"],
30 "react/jsx-boolean-value": 2,
31 "react/wrap-multilines": 2,
32 "react/self-closing-comp": 2,
33 "react/no-is-mounted": 2
34 },
35 "globals": {
36 "React": true,
37 "_": true
38 },
39 "env": {
40 "es6": true,
41 "browser": true,
42 "node": true,
43 "mocha": true,
44 "jquery": true
45 },
46 "parserOptions": {
47 "ecmaVersion": 6,
48 "sourceType": "module",
49 "ecmaFeatures": {
50 "jsx": true,
51 "experimentalObjectRestSpread": true,
52 "blockBindings": true
53 }
54 },
55 "extends": "eslint:recommended",
56 "plugins": [
57 "react"
58 ]
59}