forked from anfema/bin-grammar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
40 lines (40 loc) · 1.22 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
module.exports = {
root: true,
parserOptions: {
ecmaVersion: 6,
sourceType: 'module',
},
parser: 'babel-eslint',
extends: 'airbnb-base',
env: {
es6: true,
},
plugins: [
'babel',
],
rules: {
'comma-dangle': ['error', 'always-multiline'],
'consistent-this': ['error', 'that'],
'func-names': 'off',
'generator-star-spacing': 'off', // fails with async code at the moment, revisit later
'import/no-extraneous-dependencies': ['error', { devDependencies: true }],
'indent': ['warn', 'tab', { SwitchCase: 1 }],
'max-len': [1, 150],
'new-cap': ['error', { properties: false }],
'newline-after-var': 'error',
'newline-before-return': 'error',
'newline-per-chained-call': ['error', { 'ignoreChainWithDepth': 2 }],
'no-comma-dangle': 'off',
'no-debugger': 'error',
'no-mixed-operators': 'off',
'no-multiple-empty-lines': ['error', { 'max': 1, }],
'no-param-reassign': 'off',
'no-prototype-builtins': 'off',
'no-tabs': 'off',
'no-underscore-dangle': 'off',
'no-bitwise': 'off',
'object-curly-spacing': ['error', 'always'],
'prefer-arrow-callback': ['error', { allowNamedFunctions: true, allowUnboundThis: true }],
'quote-props': ['error', 'as-needed'],
},
};