-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
70 lines (70 loc) · 1.81 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
65
66
67
68
69
70
module.exports = {
root: true,
extends: [
'airbnb-base',
'plugin:vue/recommended',
],
rules: {
'no-underscore-dangle': 'off',
'import/no-unresolved': [2, { caseSensitive: true }],
'import/prefer-default-export': 'off',
'arrow-parens': [2, 'as-needed'],
'no-trailing-spaces': ['error', { skipBlankLines: true, ignoreComments: true }],
'no-confusing-arrow': ['error', { allowParens: true }],
'class-methods-use-this': 'off',
'consistent-return': 'off',
'no-plusplus': 'off',
'no-new': 'off',
'prefer-promise-reject-errors': 'off',
'nonblock-statement-body-position': ['error', 'beside', { overrides: { if: 'any' } }],
curly: ['error', 'multi-or-nest', 'consistent'],
camelcase: 'off',
'no-param-reassign': [
'error',
{
props: true,
ignorePropertyModificationsFor: [
'state',
],
},
],
'vue/singleline-html-element-content-newline': ['error', {
ignoreWhenNoAttributes: true,
ignoreWhenEmpty: true,
ignores: ['pre', 'textarea', 'div', 'span'],
}],
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-use-before-define': 'off',
'max-len': [
'error', {
code: 130,
ignoreComments: true,
ignoreTrailingComments: true,
ignoreUrls: true,
ignoreStrings: true,
ignoreRegExpLiterals: true,
},
],
},
env: {
browser: true,
es6: true,
mocha: true,
},
settings: {
'import/resolver': {
webpack: {
config: 'build/webpack.config.dev.js',
},
},
},
plugins: [
'vue',
],
parserOptions: {
parser: '@babel/eslint-parser',
ecmaVersion: 2017,
sourceType: 'module',
},
};