-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
65 lines (65 loc) · 2.02 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
module.exports = {
env: {
browser: true,
es2021: true,
node: true,
'vue/setup-compiler-macros': true,
},
extends: [
'airbnb-base',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:vue/vue3-recommended',
'eslint:recommended',
'plugin:prettier/recommended',
],
parser: 'vue-eslint-parser',
parserOptions: {
ecmaVersion: 'latest',
parser: '@typescript-eslint/parser',
sourceType: 'module',
},
plugins: ['vue', '@typescript-eslint', 'prettier'],
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-var': 'error',
'@typescript-eslint/consistent-type-definitions': ['error', 'interface'],
'prettier/prettier': ['error'],
'lines-between-class-members': 'off',
'default-case': 'off',
'no-use-before-define': 'off',
'no-shadow': 'off',
'@typescript-eslint/no-shadow': 'off',
'no-redeclare': 'off',
'@typescript-eslint/no-redeclare': ['error'],
'no-bitwise': 'off',
'import/extensions': 'off',
'import/no-unresolved': 'off',
'import/prefer-default-export': 'off',
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'vue/no-unused-vars': ['error', { ignorePattern: '^_' }],
'no-void': 'off',
'no-return-assign': ['error', 'except-parens'],
'no-restricted-globals': ['error', 'event'],
'no-unused-expressions': 'off',
'vue/no-template-shadow': 'off',
'no-underscore-dangle': 'off',
'no-restricted-syntax': 'off',
'no-await-in-loop': 'off',
'no-plusplus': 'off',
'no-useless-return': 'off',
'no-param-reassign': 'off',
'consistent-return': 'off',
'no-return-await': 'off',
'class-methods-use-this': 'off',
'vue/multi-word-component-names': [
'error',
{ ignores: ['index', 'default'] },
],
},
overrides: [
{ files: ['*.ts', '*.tsx'], rules: { 'no-dupe-class-members': 'off' } },
],
};