This repository has been archived by the owner on Jan 27, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
67 lines (67 loc) · 1.62 KB
/
.eslintrc.js
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
module.exports = {
env: {
'browser': true,
'es6': true
},
parser: 'babel-eslint',
extends: [
'eslint:recommended',
'plugin:react/recommended'
],
ecmaFeatures: {
jsx: true,
modules: true,
destructuring: true,
classes: true,
forOf: true,
blockBindings: true,
arrowFunctions: true,
},
plugins: [
'react',
'jsx-a11y',
'import'
],
rules: {
'prefer-const': 0,
'arrow-body-style': 0,
'no-nested-ternary': 0,
'newline-per-chained-call': 0,
'arrow-parens': 0,
'class-methods-use-this': 0,
'func-names': 0,
'prefer-destructuring': 0,
'new-cap': 0,
'padded-blocks': 0,
'no-plusplus': 0,
'no-return-assign': 0,
'no-param-reassign': 0,
'no-confusing-arrow': 0,
'no-restricted-globals': 0,
'no-alert': 0,
'no-underscore-dangle': 0,
'quote-props': 0,
'one-var-declaration-per-line': ['error', 'initializations'],
'one-var': ['error', { initialized: 'never' }],
'indent': [
2,
2,
{
'SwitchCase': 1,
}
],
'template-curly-spacing': [2, 'always'],
'jsx-quotes': [2, 'prefer-single'],
'object-curly-spacing': ['error', 'always'],
'no-extra-semi': 'error',
'semi': ['error', 'always'],
'linebreak-style': [
'error',
'unix'
],
'quotes': [
'error',
'single'
]
}
};