1 | {
|
2 | "plugins": [
|
3 | "react"
|
4 | ],
|
5 | "extends": "airbnb",
|
6 | "env": {
|
7 | "browser": true,
|
8 | "node": true,
|
9 | "es6": true
|
10 | },
|
11 | "parser": "babel-eslint",
|
12 | "parserOptions": {
|
13 | "ecmaVersion": 7,
|
14 | "sourceType": "module",
|
15 | "ecmaFeatures": {
|
16 | "experimentalObjectRestSpread": true,
|
17 | "jsx": true
|
18 | }
|
19 | },
|
20 | "rules": {
|
21 | "arrow-body-style": 0,
|
22 | "block-spacing": 2,
|
23 | "brace-style": [2, "1tbs"],
|
24 | "callback-return": [2, ["cb", "callback", "next"]],
|
25 | "camelcase": [2, { "properties": "never" }],
|
26 | "comma-spacing": 2,
|
27 | "comma-style": [2, "last"],
|
28 | "comma-dangle": [2, "never"],
|
29 | "consistent-return": 2,
|
30 | "curly": [2, "all"],
|
31 | "default-case": 2,
|
32 | "dot-notation": [2, { "allowKeywords": true }],
|
33 | "eol-last": 2,
|
34 | "eqeqeq": 2,
|
35 | "func-names": 0,
|
36 | "global-require": 0,
|
37 | "indent": [2, 4],
|
38 | "key-spacing": [2, {
|
39 | "beforeColon": false,
|
40 | "afterColon": true
|
41 | }],
|
42 | "max-len": [1, 160, 2, { "ignoreComments": true }],
|
43 | "new-cap": [2, { "newIsCap": true, "capIsNew": false }],
|
44 | "new-parens": 2,
|
45 | "no-alert": 2,
|
46 | "no-array-constructor": 2,
|
47 | "no-caller": 2,
|
48 | "no-cond-assign": [2, "except-parens"],
|
49 | "no-const-assign": 2,
|
50 | "no-console": [1, { "allow": ["assert", "warn", "error"]}],
|
51 | "no-else-return": 0,
|
52 | "no-lone-blocks": 0,
|
53 | "no-param-reassign": 0,
|
54 | "no-shadow": 0,
|
55 | "no-var": 1,
|
56 | "no-underscore-dangle": 0,
|
57 | "no-unused-expressions": [2, {
|
58 | "allowShortCircuit": true,
|
59 | "allowTernary": true
|
60 | }],
|
61 | "no-unused-vars": [1, {
|
62 | "vars": "local",
|
63 | "args": "none"
|
64 | }],
|
65 | "no-use-before-define": 0,
|
66 | "object-shorthand": 0,
|
67 | "one-var": 0,
|
68 | "one-var-declaration-per-line": 0,
|
69 | "prefer-const": 0,
|
70 | "prefer-template": 0,
|
71 | "quote-props": [0, "as-needed"],
|
72 | "quotes": [2, "single"],
|
73 | "space-before-function-paren": 0,
|
74 | "spaced-comment": 0,
|
75 | "vars-on-top": 0,
|
76 |
|
77 | "react/jsx-boolean-value": 0,
|
78 | "react/jsx-curly-spacing": 1,
|
79 | "react/jsx-indent": [1, 4],
|
80 | "react/jsx-indent-props": [1, 4],
|
81 | "react/jsx-max-props-per-line": [1, { "maximum": 3 }],
|
82 | "react/jsx-no-bind": [1, {
|
83 | "ignoreRefs": false,
|
84 | "allowArrowFunctions": true,
|
85 | "allowBind": false
|
86 | }],
|
87 | "react/jsx-no-duplicate-props": 1,
|
88 | "react/jsx-no-undef": 1,
|
89 | "react/jsx-uses-react": 1,
|
90 | "react/jsx-uses-vars": 1,
|
91 | "react/no-danger": 1,
|
92 | "react/no-did-mount-set-state": 1,
|
93 | "react/no-did-update-set-state": 1,
|
94 | "react/no-multi-comp": [1, { "ignoreStateless": true }],
|
95 | "react/no-unknown-property": 1,
|
96 | "react/prefer-stateless-function": 1,
|
97 | "react/prop-types": [1, { "ignore": ["className"] }],
|
98 | "react/react-in-jsx-scope": 1,
|
99 | "react/require-extension": 1,
|
100 | "react/self-closing-comp": 1,
|
101 | "react/sort-comp": 0,
|
102 | "react/wrap-multilines": 1
|
103 | }
|
104 | }
|