-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.eslintrc
82 lines (82 loc) · 2.1 KB
/
.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
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
{
'parser': 'babel-eslint',
'parserOptions': {
'ecmaFeatures': {
generators: true,
experimentalObjectRestSpread: true
},
sourceType: 'module',
'allowImportExportEverywhere': false
},
'extends': ['airbnb'],
'settings': {
'import/resolver': {
'node': {
'extensions': ['.js', '.jsx']
}
},
'import/extensions': ['.js', '.jsx'],
'import/ignore': ['node_modules', 'flow-typed', '\\.(css|styl|svg|json)$']
},
'env': {
'browser': true,
'jest': true
},
'rules': {
'no-shadow': 0,
'no-plusplus': 0,
'no-restricted-syntax': 0,
'no-return-assign': 0,
'no-nested-ternary': 0,
'no-unused-expressions': 0,
'consistent-return': 0,
'one-var': 0,
'one-var-declaration-per-line': 0,
'func-names': 0,
'no-use-before-define': 0,
'no-param-reassign': 0,
'react/prop-types': 0,
'react/no-render-return-value': 0,
'no-confusing-arrow': 0,
'no-multi-assign': 0,
'camelcase': 1,
'prefer-template': 0,
'newline-per-chained-call': 0,
'react/no-array-index-key': 1,
'global-require': 0,
'react/jsx-indent': 1,
'dot-notation': 1,
'import/no-named-default': 1,
'no-unused-vars': 1,
'import/no-unresolved': 1,
'import/prefer-default-export': 0,
'semi': [2, 'always'],
'jsx-quotes': [2, 'prefer-single'],
'react/jsx-filename-extension': [2, { extensions: ['.jsx', '.js'] }],
'react/prefer-stateless-function': 0,
'jsx-a11y/no-noninteractive-tabindex': 0,
'jsx-a11y/no-static-element-interactions': 0,
'jsx-a11y/href-no-hash': 0,
'spaced-comment': [2, 'always', { markers: ['?'] }],
'arrow-parens': 0,
'brace-style': [2, '1tbs', { 'allowSingleLine': true }],
'import/no-extraneous-dependencies': [
'error',
{
'devDependencies': true,
'optionalDependencies': true,
'peerDependencies': true
}
],
'comma-dangle': [
2,
{
'arrays': 'never',
'objects': 'never',
'imports': 'never',
'exports': 'never',
'functions': 'never'
}
]
}
}