-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
43 lines (43 loc) · 1023 Bytes
/
.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
{
plugins: [
'react',
'json'
],
extends: ['eslint:recommended', 'plugin:react/recommended'],
env: {
browser: true,
node: true,
mocha: true
},
parserOptions: {
ecmaVersion: 6,
sourceType: 'module',
ecmaFeatures: {
jsx: true,
experimentalObjectRestSpread: true
}
},
rules: {
brace-style: ['error', 'stroustrup'],
camelcase: 'error',
dot-notation: 'error',
eqeqeq: 'error',
func-style: 'error',
indent: ['error', 2],
no-eval: 'error',
no-trailing-spaces: 'error',
no-unused-vars: ['error', { 'vars': 'all', 'args': 'none', 'ignoreRestSiblings': true }],
no-mixed-spaces-and-tabs: ['error'],
no-console: 'warn',
no-var: 'error',
object-shorthand: 'error',
prefer-arrow-callback: 'error',
prefer-const: 'error',
quotes: ['error', 'single'],
react/jsx-uses-vars: ['error'],
react/prefer-es6-class: 'error',
react/prefer-stateless-function: 'error',
semi: 'error'
},
globals: {}
}