-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
67 lines (62 loc) · 1.43 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
module.exports = {
root: true,
env: {
node: true,
browser: true,
},
extends: ['plugin:vue/strongly-recommended', '@vue/airbnb'],
rules: {
'template-curly-spacing': 'off',
indent: ['error', 2, {
ignoredNodes: ['TemplateLiteral'],
}],
'import/no-extraneous-dependencies': [
'error',
{
devDependencies: true,
},
],
'import/prefer-default-export': 'off',
'space-before-function-paren': 'off',
'no-console': 'off',
'no-return-await': 'off',
'no-multiple-empty-lines': ['error', { max: 2, maxEOF: 1, maxBOF: 1 }],
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-unused-vars': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'import/extensions': [
'error',
'always',
{
js: 'never',
vue: 'never',
},
],
'max-len': ['error', { code: 130 }],
'vue/max-attributes-per-line': 'off',
'vue/singleline-html-element-content-newline': 'off',
'vue/html-closing-bracket-newline': [
'error',
{
singleline: 'never',
multiline: 'never',
},
],
quotes: ['error', 'single', {
avoidEscape: true,
allowTemplateLiterals: true,
}],
},
parserOptions: {
parser: 'babel-eslint',
},
overrides: [
{
files: [
'**/__tests__/*.{j,t}s?(x)',
],
env: {
jest: true,
},
},
],
};