-
Notifications
You must be signed in to change notification settings - Fork 9
/
.eslintrc.js
62 lines (60 loc) · 1.99 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
const isProduction = process.env.NODE_ENV === 'production';
module.exports = {
root: true,
env: {
node: true,
},
extends: [
'plugin:vue/vue3-essential',
'@vue/airbnb',
'@vue/typescript/recommended',
],
parserOptions: {
ecmaVersion: 2021,
},
rules: {
'@typescript-eslint/ban-types': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/brace-style': 'off',
'@typescript-eslint/lines-between-class-members': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unused-vars': isProduction ? 'error' : 'warn',
'arrow-parens': 'off',
'brace-style': ['error', 'stroustrup', { allowSingleLine: true }],
'camelcase': 'off',
'class-methods-use-this': 'off',
'import/extensions': 'off',
'import/no-cycle': 'off',
'linebreak-style': 'off',
'lines-between-class-members': 'off',
'max-classes-per-file': 'off',
'no-await-in-loop': 'off',
'no-console': isProduction ? 'warn' : 'off',
'no-continue': 'off',
'no-debugger': isProduction ? 'warn' : 'off',
'no-empty': 'off',
'no-multiple-empty-lines': ['error', { max: 2, maxEOF: 1, maxBOF: 1 }],
'no-param-reassign': 'off',
'no-plusplus': 'off',
'no-restricted-globals': 'off',
// https://github.com/typescript-eslint/typescript-eslint/blob/main/docs/linting/TROUBLESHOOTING.md#i-get-errors-from-the-no-undef-rule-about-global-variables-not-being-defined-even-though-there-are-no-typescript-errors
'no-undef': 'off',
'prefer-object-spread': 'off',
'vuejs-accessibility/heading-has-content': 'off',
'vuejs-accessibility/mouse-events-have-key-events': 'off',
'vuejs-accessibility/click-events-have-key-events': 'off',
'vuejs-accessibility/label-has-for': 'off',
'vuejs-accessibility/form-control-has-label': 'off',
},
overrides: [
{
files: [
'**/__tests__/*.{j,t}s?(x)',
'**/tests/unit/**/*.spec.{j,t}s?(x)',
],
env: {
jest: true,
},
},
],
};