-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.js
64 lines (64 loc) · 1.79 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
module.exports = {
root: true,
env: {
node: true,
},
globals: {
gapi: true,
google: true,
},
extends: [
'plugin:vue/vue3-essential',
'eslint:recommended',
'@vue/typescript/recommended',
'@vue/eslint-config-airbnb',
'prettier',
'plugin:prettier/recommended',
],
parserOptions: {
ecmaVersion: 2020,
parser: '@typescript-eslint/parser',
},
rules: {
'no-console': 'off',
'no-debugger': 'off',
'no-unused-vars': 'off',
'vue/no-deprecated-slot-attribute': 'off',
'@typescript-eslint/no-explicit-any': 'error',
'@typescript-eslint/explicit-function-return-type': 'error',
'@typescript-eslint/no-unused-vars': 'off',
'no-shadow': 'off',
'no-use-before-define': 'error',
'vue/multi-word-component-names': 'off',
'vuejs-accessibility/click-events-have-key-events': 'error',
'vue/no-unused-components': 'error',
},
overrides: [
{
files: ['src/utils/GoogleAuthorization.ts'],
rules: {
'@typescript-eslint/camelcase': 'off',
},
},
{
files: ['src/utils/ValidationErrorTransform.ts'],
rules: {
'no-plusplus': 'off',
'class-methods-use-this': 'off',
},
},
{
files: ['src/views/VocabularyList.vue', 'src/views/LeitnerBoxItems.vue'],
rules: {
'no-param-reassign': 'off',
'no-unused-expressions': 'off',
},
},
{
files: ['src/views/Settings.vue'],
rules: {
'@typescript-eslint/camelcase': 'off',
},
},
],
};