-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.cjs
26 lines (26 loc) · 911 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
module.exports = {
root: true,
parser: 'vue-eslint-parser',
plugins: ['@typescript-eslint', 'vue'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:vue/vue3-recommended',
],
parserOptions: {
parser: "@typescript-eslint/parser",
project: './tsconfig.json', // Add this line
extraFileExtensions: ['.vue']
},
rules: {
indent: ['error', 'tab'],
quotes: ['error', 'single'],
semi: ['error', 'always'],
'no-unused-vars': 'error',
'no-console': 'warn',
'prefer-const': 'error',
eqeqeq: 'error',
'brace-style': ['error', '1tbs'],
'vue/html-indent': ['error', 'tab'],
},
};