-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc
49 lines (49 loc) · 1 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
# ESLint has many default rules that are not listed in this file
# Documentation for all ESLint rules can be found at http://eslint.org/docs/rules/
parser: babel-eslint
parserOptions:
ecmaVersion: 6
plugins:
- react
extends:
- eslint:recommended
- plugin:react/recommended
env:
browser: true
node: true
es6: true
globals:
Nested: true
rules:
brace-style: 1
camelcase: 2
comma-style: 2
consistent-this: [2, self]
curly: 1
eqeqeq: 1
indent:
- 2
- 2
- SwitchCase: 1
max-depth: [1, 4]
max-len: [1, 120]
max-params: [1, 4]
new-cap:
- 1
- capIsNewExceptions: [List, Map, Range, Record, Repeat, Set, Stack]
no-array-constructor: 1
no-console: 0
no-eq-null: 2
no-new-object: 2
no-self-compare: 2
no-shadow-restricted-names: 1
no-underscore-dangle: 0
no-void: 2
quote-props: [1, as-needed]
quotes: [2, single, avoid-escape]
# TODO: Enable the react/prop-types rule.
react/prop-types: 0
radix: 1
spaced-comment: 2
strict: [2, never]
vars-on-top: 1