-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy path.eslintrc.js
33 lines (33 loc) · 917 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
module.exports = {
parser: 'babel-eslint',
extends: [
'airbnb-base',
'plugin:flowtype/recommended'
],
plugins: [
'flowtype'
],
env: {
browser: true,
webextensions: true,
jasmine: true,
jest: true
},
rules: {
indent: ['error', 4],
'one-var': ['error', {
initialized: 'never'
}],
'one-var-declaration-per-line': ['error', 'initializations'],
'comma-dangle': ['error', 'never'],
'object-curly-spacing': ['error', 'never'],
'brace-style': ['error', 'stroustrup', {
'allowSingleLine': false
}],
'linebreak-style': 'off',
'no-prototype-builtins': 'off',
'arrow-parens': 'off',
'max-len': 'off',
'generator-star-spacing': 0 // TODO: babel-eslint bug https://github.com/babel/babel-eslint/issues/350
}
};