-
Notifications
You must be signed in to change notification settings - Fork 17
/
.eslintrc.js
72 lines (70 loc) · 1.38 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
68
69
70
71
72
const path = require('path');
const baseRestrictedSyntax = require('eslint-config-tjw-base/no-restricted-syntax.json');
const jestRestrictedSyntax = require('eslint-config-tjw-jest/no-restricted-syntax.json');
module.exports = {
root: true,
parserOptions: {
parser: '@babel/eslint-parser',
ecmaVersion: 2022,
sourceType: 'module'
},
env: {
browser: true,
node: true
},
globals: {
jsdom: true,
Promise: true,
nw: true,
Vue: true,
Vuex: true,
VueRouter: true,
store: true,
router: true
},
plugins: [
'jest',
'vue'
],
extends: [
'eslint:recommended',
'plugin:jest/recommended',
'plugin:vuejs-accessibility/recommended',
'tjw-base',
'tjw-vue',
'tjw-import',
'tjw-jest'
],
rules: {
'import/no-extraneous-dependencies': 'off',
'no-restricted-syntax': [
'error',
...baseRestrictedSyntax,
...jestRestrictedSyntax
],
'vuejs-accessibility/label-has-for': [
'error',
{
components: ['Label'],
required: {
some: ['nesting', 'id']
},
allowChildren: false
}
]
},
settings: {
'import/resolver': {
webpack: {
config: {
resolve: {
alias: {
'@': path.resolve('src'),
'@@': path.resolve('tests')
}
}
}
}
}
}
};