-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.cjs
58 lines (57 loc) · 1.5 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
module.exports = {
root: true,
env: {
node: true,
},
parser: 'vue-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser',
sourceType: 'module',
},
extends: [
'plugin:vue/vue3-essential',
'@vue/eslint-config-airbnb',
'plugin:@typescript-eslint/recommended',
],
rules: {
// Fail on forgotten WIP comments
'no-warning-comments': ['warn', { terms: ['WIP'] }],
'import/no-extraneous-dependencies': 0,
'vue/multi-word-component-names': 0,
'vue/max-len': ['error', { code: 140 }],
'import/prefer-default-export': 0,
'no-debugger': 'warn',
'no-shadow': 'off',
camelcase: 'off',
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': 'warn',
semi: 'off',
'@typescript-eslint/semi': ['error'],
'@typescript-eslint/no-shadow': ['error'],
'@typescript-eslint/no-explicit-any': 'off',
'vuejs-accessibility/click-events-have-key-events': 0,
'vuejs-accessibility/anchor-has-content': 0,
'vue/no-template-target-blank': 0,
'class-methods-use-this': 'off',
'import/no-relative-packages': 'off',
'import/extensions': [
'error',
'ignorePackages',
{
js: 'never',
jsx: 'never',
ts: 'never',
tsx: 'never',
},
],
},
settings: {
'import/resolver': {
typescript: {}, // this loads <rootdir>/tsconfig.json to eslint
node: {
paths: ['src'],
extensions: ['.js', '.jsx', '.vue', 'ts', 'tsx'],
},
},
},
};