-
Notifications
You must be signed in to change notification settings - Fork 130
/
.eslintrc.js
executable file
·36 lines (34 loc) · 1003 Bytes
/
.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
var IGNORE = 0
var WARN = 1
var ERROR = 2
var ALWAYS = 'always'
var NEVER = 'never'
var OFF = 'off'
module.exports = {
extends: 'airbnb',
parser: 'babel-eslint',
env: {
browser: true,
node: true
},
rules: {
'react/jsx-curly-spacing': [ERROR, ALWAYS, { spacing: { objectLiterals: NEVER }}],
'react/jsx-filename-extension': [IGNORE],
'react/prop-types': [IGNORE],
'template-curly-spacing': [ERROR, ALWAYS],
'strict': [IGNORE],
'no-unused-expressions': IGNORE,
'no-unused-vars': [ERROR, { 'vars': 'local' }],
'arrow-body-style': [IGNORE, ALWAYS],
'camelcase': [ERROR],
'constructor-super': ERROR,
'quote-props': [ERROR, 'consistent'],
'no-underscore-dangle': [WARN],
'semi': [ERROR, NEVER],
'import/no-unresolved': [ERROR, { ignore: ['electron'] }],
'new-cap': [IGNORE],
'import/no-named-as-default': [IGNORE],
'import/no-extraneous-dependencies': [IGNORE],
'jsx-a11y/no-static-element-interactions': IGNORE
}
}