-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
59 lines (59 loc) · 1.54 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
module.exports = {
root: true,
parser: 'vue-eslint-parser',
parserOptions: {
parser: 'babel-eslint',
ecmaVersion: 7,
sourceType: 'module',
ecmaFeatures: {
jsx: true,
modules: true
}
},
env: {
browser: true,
},
extends: ['airbnb-base', 'plugin:vue/essential', '@vue/airbnb'],
// check if imports actually resolve
settings: {
'import/resolver': {
node: {},
webpack: {
config: 'webpack.config.js',
},
},
},
// add your custom rules here
'rules': {
// don't require .vue extension when importing
'import/extensions': ['error', 'always', {
'js': 'never',
'vue': 'never'
}],
// allow optionalDependencies
'import/no-extraneous-dependencies': ['error', {
'optionalDependencies': ['test/unit/index.js']
}],
// allow debugger during development
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
'no-else-return': 0,
'keyword-spacing': 0,
'no-underscore-dangle': 0,
'import/newline-after-import': 0,
'no-multiple-empty-lines': 0,
'vue/max-attributes-per-line': 0,
'vue/attributes-order': 0,
'vue/component-name-in-template-casing': 0,
'vue/singleline-html-element-content-newline': 0,
'vue/mustache-interpolation-spacing': 0,
'vue/attribute-hyphenation': 0,
'vue/valid-v-slot': 'off',
'import/extensions': 'off',
// 'vue/html-closing-bracket-spacing': 0,
'max-len': [2, {
code: 150,
ignoreComments: true,
ignoreTrailingComments: true,
}],
}
}