-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
38 lines (37 loc) · 1.11 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
const INLINE_ELEMENTS = require('eslint-plugin-vue/lib/utils/inline-non-void-elements.json')
module.exports = {
root: true,
env: {
node: true,
es6: true,
},
parserOptions: {
ecmaVersion: 2018,
},
extends: [
'plugin:vue/vue3-recommended',
],
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'comma-dangle': ['warn', 'always-multiline'],
'no-unused-vars': 'warn',
'no-unused-expressions': 'warn',
'vue/no-unused-components': 'warn',
'vue/singleline-html-element-content-newline': ['warn', {
'ignores': ['pre', 'textarea', 'button', 'p', 'h1', 'h2', 'h3', 'h4', 'option', 'router-link', ...INLINE_ELEMENTS],
}],
'vue/multiline-html-element-content-newline': 'off',
'vue/v-slot-style': ['warn', 'longform'],
'vue/max-attributes-per-line': ['warn', {
'singleline': 5,
'multiline': 1,
}],
'vue/no-multiple-template-root': 'off',
'vue/multi-word-component-names': 'off',
},
"ignorePatterns": [
"dist/",
"node_modules/",
],
}