/
.eslintrc.js
40 lines (40 loc) · 1.03 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
module.exports = {
root: true,
env: {
node: true,
},
extends: [
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'eslint:recommended',
'plugin:vue/vue3-recommended',
'@vue/typescript',
'plugin:prettier/recommended',
'prettier/vue',
'prettier/@typescript-eslint',
],
parserOptions: {
parser: '@typescript-eslint/parser',
ecmaVersion: 2020,
},
rules: {
quotes: ['warn', 'single'],
indent: ['warn', 2],
'prettier/prettier': [
'warn',
{
singleQuote: true,
trailingComma: 'es5',
},
],
'@typescript-eslint/interface-name-prefix': 'off',
'sort-imports': 'off',
'sort-keys': 'off',
'no-multiple-empty-lines': 'off',
'no-console': 1,
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
'@typescript-eslint/camelcase': 'off',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-explicit-any': ['error', { ignoreRestArgs: true }],
},
};