-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
49 lines (43 loc) · 1.08 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
const a11yOff = Object
.keys(require('eslint-plugin-vuejs-accessibility').rules)
.reduce((acc, rule) => { acc[`vuejs-accessibility/${rule}`] = 'off'; return acc; }, {});
module.exports = {
root: true,
env: {
es2022: true,
},
extends: [
'plugin:vue/base',
'plugin:vue/recommended',
'plugin:vuetify/base',
'plugin:vuetify/recommended',
'plugin:vue/recommended',
'@vue/airbnb',
'@vue/typescript',
'@vue/typescript/recommended',
],
plugins: [
'vuetify',
],
rules: {
'no-console': ['error'],
'no-debugger': ['error'],
'vue/max-len': ['off'],
'import/prefer-default-export': ['off'],
'no-underscore-dangle': ['error', { allow: ['_id', '_from', '_to', '_key', '_type', '_index'] }],
...a11yOff,
'no-param-reassign': ['error', { props: false }],
'import/extensions': ['error', { ts: 'never', vue: 'always' }],
},
settings: {
'import/resolver': {
node: {
extensions: ['.ts'],
},
alias: {
map: [['@', './src']],
extensions: ['.ts', '.vue'],
},
},
},
};