-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy path.eslintrc.cjs
69 lines (66 loc) · 1.37 KB
/
.eslintrc.cjs
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
/* eslint-disable import/no-extraneous-dependencies */
const path = require('path');
const baseRestrictedSyntax = require('eslint-config-tjw-base/no-restricted-syntax.json');
const vueRules = require('eslint-config-tjw-vue/index.js');
module.exports = {
root: true,
globals: {
jsdom: true,
Promise: true,
Vue: true,
Vuex: true,
Pinia: true,
VueRouter: true,
store: true,
router: true,
vi: true
},
plugins: [
'vue',
'vuejs-accessibility'
],
extends: [
'plugin:vuejs-accessibility/recommended',
'eslint:recommended',
'plugin:vue/recommended',
'tjw-base',
'tjw-import'
],
rules: {
...vueRules.rules,
'import/no-anonymous-default-export': 'off',
'import/no-namespace': 'off',
'import/no-unresolved': 'off',
'import/no-unused-modules': 'off',
'no-restricted-syntax': [
'error',
...baseRestrictedSyntax
],
'vue/no-multiple-template-root': [
'off'
],
'vuejs-accessibility/label-has-for': [
'error',
{
components: ['Label'],
required: {
some: ['nesting', 'id']
},
allowChildren: false
}
]
},
settings: {
'import/resolver': {
webpack: {
config: {
resolve: {
alias: {
'@': path.resolve('src')
}
}
}
}
}
}
};