-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
44 lines (44 loc) · 1.43 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
module.exports = {
parser: 'babel-eslint',
extends: ['standard', 'standard-jsx', 'standard-react'],
rules: {
'indent': [4, 4, { 'SwitchCase': 1 }],
'one-var': [2, { 'initialized': 'always' }],
'import/prefer-default-export': 'off',
'react/prefer-stateless-function': 'off',
'react/jsx-filename-extension': 'off',
'no-use-before-define': 'off',
'class-methods-use-this': 'off',
'react/jsx-closing-bracket-location': 'off',
'react/jsx-closing-tag-location': 'off',
'react/jsx-curly-spacing': 'off',
'react/jsx-equals-spacing': 'off',
'react/jsx-first-prop-new-line': 'off',
'react/jsx-indent': [4, 4],
'react/jsx-indent-props': 'off',
'react/jsx-max-props-per-line': 'off',
'react/jsx-tag-spacing': 'off',
'react/jsx-wrap-multilines': 'off',
'react/no-danger': 'off',
'react/jsx-indent': 'off',
'semi': [2, 'always'],
'dot-notation': 'off',
'quote-props': 'off',
'indent': 'off',
'space-before-function-paren': [0, 'never'],
'import/no-webpack-loader-syntax': 'off',
'react/prop-types': 'off'
},
parserOptions: {
ecmaFeatures: {
legacyDecorators: true
}
},
globals: {
'document': false,
'navigator': false,
'window': false,
'fetch': true,
'URL': true
}
}