-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.cjs
30 lines (30 loc) · 850 Bytes
/
.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
module.exports = {
root: true,
env: {
// https://eslint.org/docs/rules/no-undef#nodejs
node: true,
// ignore defineProps, defineEmits, etc.
'vue/setup-compiler-macros': true,
},
parser: 'vue-eslint-parser',
// https://github.com/vuejs/vue-eslint-parser#parseroptionsparser
parserOptions: {
parser: '@typescript-eslint/parser',
},
plugins: ['@typescript-eslint'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:vue/vue3-recommended',
'plugin:prettier/recommended',
],
rules: {
// allow vue component files to be a single word eg: Index.vue
'vue/multi-word-component-names': 'off',
// allow unused args that start with an underscore
'@typescript-eslint/no-unused-vars': [
2,
{ args: 'all', argsIgnorePattern: '^_' },
],
},
}