-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
64 lines (64 loc) · 1.62 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
module.exports = {
parser: 'babel-eslint',
env: {
browser: true,
node: true,
commonjs: true,
jest: true
},
extends: 'airbnb-base',
plugins: [
'html',
'import'
],
rules: {
'arrow-parens': [2, 'as-needed', { requireForBlockBody: false }],
'class-methods-use-this': 0,
'comma-dangle': 0,
'consistent-return': 0,
curly: ['error', 'multi-or-nest'],
'default-case': 0,
'func-names': ['error', 'never'],
'global-require': 0,
'import/extensions': ['error', {
js: 'never',
vue: 'never'
}],
'import/no-extraneous-dependencies': ['error', {
devDependencies: ['**/*.test.js', '**/*.spec.js', '**/*.bundle.js']
}],
'import/no-webpack-loader-syntax': 0,
indent: ['error', 'tab', {
SwitchCase: 1,
VariableDeclarator: 1
}],
'max-len': ['error', 160, {
ignoreUrls: true,
ignoreStrings: true,
ignoreTemplateLiterals: true
}],
'newline-per-chained-call': ['error', { ignoreChainWithDepth: 2 }],
'no-alert': 0,
'no-console': ['error', { allow: ['warn', 'error'] }],
'no-multi-spaces': ['error', {
exceptions: {
VariableDeclarator: true,
ImportDeclaration: true
}
}],
'no-multiple-empty-lines': ['error', {
max: 3,
maxBOF: 1
}],
'no-param-reassign': ['error', { ignorePropertyModificationsFor: ['state'] }],
'no-plusplus': 0,
'no-return-assign': 0,
'no-return-await': 0,
'no-tabs': 0,
'no-underscore-dangle': ['error', { allowAfterThis: true }],
'no-unused-expressions': ['error', { allowTernary: true }],
'object-curly-newline': ['error', { multiline: true }],
semi: ['error', 'never'],
'space-before-function-paren': ['error', 'always'],
}
}