1 | {
|
2 | "env": {
|
3 | "browser": true,
|
4 | "es6": true,
|
5 | "node": true
|
6 | },
|
7 | "parser": "babel-eslint",
|
8 | "parserOptions": {
|
9 | "sourceType": "module",
|
10 | "ecmaFeatures": {
|
11 | "experimentalObjectRestSpread": true,
|
12 | "jsx": true
|
13 | },
|
14 | "ecmaVersion": 2017
|
15 | },
|
16 | "plugins": ["react"],
|
17 | "extends": ["plugin:react/recommended"],
|
18 | "rules": {
|
19 | "array-bracket-spacing": 2,
|
20 | "arrow-body-style": 2,
|
21 | "arrow-parens": [
|
22 | 2,
|
23 | "as-needed"
|
24 | ],
|
25 | "arrow-spacing": 2,
|
26 | "accessor-pairs": 2,
|
27 | "block-scoped-var": 2,
|
28 | "block-spacing": 2,
|
29 | "brace-style": [
|
30 | 2,
|
31 | "stroustrup"
|
32 | ],
|
33 | "camelcase": [
|
34 | 2,
|
35 | {
|
36 | "properties": "never"
|
37 | }
|
38 | ],
|
39 | "comma-dangle": 2,
|
40 | "comma-spacing": 2,
|
41 | "comma-style": 2,
|
42 | "complexity": [
|
43 | 0,
|
44 | 11
|
45 | ],
|
46 | "computed-property-spacing": 2,
|
47 | "consistent-return": 2,
|
48 | "consistent-this": 2,
|
49 | "constructor-super": 2,
|
50 | "curly": [
|
51 | 2,
|
52 | "multi-line"
|
53 | ],
|
54 | "default-case": 2,
|
55 | "dot-location": [
|
56 | 2,
|
57 | "property"
|
58 | ],
|
59 | "dot-notation": 2,
|
60 | "eol-last": 2,
|
61 | "eqeqeq": 2,
|
62 | "func-style": [
|
63 | 2,
|
64 | "declaration",
|
65 | {
|
66 | "allowArrowFunctions": true
|
67 | }
|
68 | ],
|
69 | "generator-star-spacing": 2,
|
70 | "global-require": 0,
|
71 | "guard-for-in": 2,
|
72 | "handle-callback-err": 2,
|
73 | "id-match": 2,
|
74 | "indent": [
|
75 | 2,
|
76 | 2,
|
77 | {
|
78 | "SwitchCase": 1,
|
79 | "VariableDeclarator": {
|
80 | "var": 2,
|
81 | "let": 2,
|
82 | "const": 3
|
83 | }
|
84 | }
|
85 | ],
|
86 | "jsx-quotes": 2,
|
87 | "key-spacing": 2,
|
88 | "keyword-spacing": 2,
|
89 | "lines-around-comment": 2,
|
90 | "max-nested-callbacks": 2,
|
91 | "new-cap": [2, {"capIsNewExceptions": ["Radium"]}],
|
92 | "new-parens": 2,
|
93 | "no-cond-assign": 2,
|
94 | "no-constant-condition": 2,
|
95 | "no-control-regex": 2,
|
96 | "no-debugger": 2,
|
97 | "no-delete-var": 2,
|
98 | "no-dupe-keys": 2,
|
99 | "no-dupe-args": 2,
|
100 | "no-duplicate-case": 2,
|
101 | "no-empty": 2,
|
102 | "no-empty-character-class": 2,
|
103 | "no-ex-assign": 2,
|
104 | "no-extra-boolean-cast": 2,
|
105 | "no-extra-parens": 2,
|
106 | "no-extra-semi": 2,
|
107 | "no-fallthrough": 2,
|
108 | "no-func-assign": 2,
|
109 | "no-inner-declarations": 2,
|
110 | "no-invalid-regexp": 2,
|
111 | "no-irregular-whitespace": 2,
|
112 | "no-mixed-spaces-and-tabs": 2,
|
113 | "no-negated-in-lhs": 2,
|
114 | "no-obj-calls": 2,
|
115 | "no-octal": 2,
|
116 | "no-redeclare": 2,
|
117 | "no-regex-spaces": 2,
|
118 | "no-sparse-arrays": 2,
|
119 | "no-undef": 2,
|
120 | "no-unreachable": 2,
|
121 | "no-unused-vars": 2,
|
122 | "no-var": 2,
|
123 | "object-curly-spacing": 2,
|
124 | "object-shorthand": 2,
|
125 | "operator-assignment": 2,
|
126 | "operator-linebreak": 2,
|
127 | "prefer-arrow-callback": 2,
|
128 | "prefer-const": 2,
|
129 | "prefer-spread": 2,
|
130 | "prefer-template": 1,
|
131 | "quote-props": [
|
132 | 2,
|
133 | "consistent-as-needed"
|
134 | ],
|
135 | "quotes": 2,
|
136 | "radix": 2,
|
137 | "react/prop-types": 0,
|
138 | "require-jsdoc": 2,
|
139 | "require-yield": 2,
|
140 | "semi": 2,
|
141 | "semi-spacing": 2,
|
142 | "sort-vars": 2,
|
143 | "space-before-blocks": 2,
|
144 | "space-before-function-paren": [
|
145 | 2,
|
146 | "never"
|
147 | ],
|
148 | "space-in-parens": 2,
|
149 | "space-infix-ops": 2,
|
150 | "space-unary-ops": 2,
|
151 | "spaced-comment": 2,
|
152 | "use-isnan": 2,
|
153 | "valid-typeof": 2,
|
154 | "wrap-iife": 2,
|
155 | "wrap-regex": 2,
|
156 | "yoda": [
|
157 | 2,
|
158 | "never"
|
159 | ]
|
160 | },
|
161 | "settings": {
|
162 | "react": {
|
163 | "version": "15.6.2"
|
164 | }
|
165 | }
|
166 | }
|