-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
72 lines (72 loc) · 1.31 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
module.exports = {
'parser': 'babel-eslint',
'extends': [
'eslint:recommended',
'plugin:react/recommended',
'standard',
'standard-react',
'plugin:jsx-a11y/recommended'
],
'plugins': [
'babel',
'dependencies',
'filenames',
'import',
'json',
'jsx-a11y',
'html',
'no-inferred-method-name',
'promise',
'promiseparams',
'react',
'react-functional-set-state',
'react-perf',
'standard',
'you-dont-need-lodash-underscore'
],
'env': {
'browser': true,
'es6': true
},
'globals': {
'__DEV__': false,
'__PROD__': false,
'__PLAYER_DEBUG__': false,
'__BASENAME__': false
},
'settings': {
'ecmascript': 6,
'import/resolver': 'webpack'
},
'rules': {
'max-len': 'off',
'no-nested-ternary': 'off',
'camelcase': [
2,
{
'properties': 'never'
}
],
'indent': 1,
'semi': 0,
'spaced-comment': 0,
'brace-style': 0,
'no-trailing-spaces': 0,
'import/default': 2,
'import/no-unresolved': [
2,
{
'commonjs': true,
'amd': true
}
],
'import/named': 2,
'import/namespace': 2,
'import/export': 2,
'import/no-duplicates': 2,
'import/imports-first': 2
},
'parserOptions': {
'sourceType': 'module'
}
}