-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
105 lines (97 loc) · 2.45 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
module.exports = {
parser: 'babel-eslint',
parserOptions: {
ecmaFeatures: {
experimentalObjectRestSpread: true,
jsx: true,
},
},
env: {
es6: true,
browser: true,
node: true,
},
plugins: [
'react',
],
settings: {
'import/resolver': 'webpack',
'react': {
'pragma': 'h',
},
},
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:import/errors',
'plugin:import/warnings',
],
rules: {
'array-bracket-spacing': [2, 'never'],
'arrow-parens': [2, 'as-needed'],
'block-spacing': [2, 'always'],
'brace-style': [2, '1tbs'],
camelcase: 2,
'comma-dangle': [2, 'always-multiline'],
'comma-spacing': [2, { before: false, after: true }],
'computed-property-spacing': [2, 'never'],
'consistent-this': [2, 'self'],
curly: 2,
'dot-notation': 2,
'eol-last': 0,
eqeqeq: 2,
indent: [2, 'tab', { SwitchCase: 1 }],
'key-spacing': [2, { beforeColon: false, afterColon: true }],
'keyword-spacing': 2,
'linebreak-style': [2, 'unix'],
'max-len': [0, 100],
'no-array-constructor': 2,
'no-console': 0,
'no-debugger': 0,
'no-eval': 2,
'no-extend-native': 2,
'no-fallthrough': 2,
'no-implied-eval': 2,
'no-lonely-if': 2,
'no-loop-func': 2,
'no-mixed-spaces-and-tabs': 2,
'no-redeclare': [2, { 'builtinGlobals': true }],
'no-spaced-func': 2,
'no-trailing-spaces': 2,
'no-undefined': 0,
'no-underscore-dangle': 0,
'no-unused-vars': [2, { 'args': 'none' }],
'no-use-before-define': 0,
'no-useless-call': 2,
'no-var': 2,
'object-curly-spacing': [2, 'always'],
'object-shorthand': 2,
'prefer-arrow-callback': 2,
'prefer-spread': 2,
'prefer-template': 2,
quotes: [2, 'single'],
radix: 2,
semi: [2, 'never'],
'space-before-blocks': 2,
'space-before-function-paren': [2, 'always'],
'space-in-parens': [2, 'never'],
'space-infix-ops': 2,
strict: 0,
'jsx-quotes': [2, 'prefer-double'],
'react/display-name': 0,
'react/prop-types': 0,
'react/jsx-boolean-value': [2, 'always'],
'react/jsx-curly-spacing': [2, 'never', { allowMultiline: true }],
'react/jsx-equals-spacing': [2, 'never'],
'react/jsx-indent': [2, 'tab'],
'react/jsx-indent-props': [2, 'tab'],
'react/jsx-key': 2,
'react/jsx-no-bind': 0,
'react/jsx-pascal-case': 2,
'react/no-multi-comp': [2, { ignoreStateless: true }],
'react/prefer-es6-class': [2, 'always'],
'react/sort-prop-types': 2,
'import/order': ['error', { 'newlines-between': 'always' }],
'import/no-duplicates': 0,
},
}