-
Notifications
You must be signed in to change notification settings - Fork 10
/
.eslintrc.js
34 lines (33 loc) · 848 Bytes
/
.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
module.exports = {
root: true,
env: {
browser: true,
amd: true,
node: true
},
parser: 'vue-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser',
sourceType: 'module'
},
extends: ['eslint:recommended', 'plugin:vue/vue3-recommended', 'prettier'],
plugins: ['@typescript-eslint', 'prettier', 'unused-imports'],
rules: {
'prettier/prettier': 'error',
'vue/component-definition-name-casing': 'off',
// not needed for vue 3
'vue/no-multiple-template-root': 'off',
'no-unused-vars': 'off',
'unused-imports/no-unused-imports': 'error',
'vue/multi-word-component-names': 'off',
'unused-imports/no-unused-vars': [
'warn',
{
vars: 'all',
varsIgnorePattern: '^_',
args: 'after-used',
argsIgnorePattern: '^_'
}
]
}
};