-
-
Notifications
You must be signed in to change notification settings - Fork 128
/
.eslintrc.cjs
92 lines (91 loc) · 3.05 KB
/
.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
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
module.exports = {
parserOptions: {
parser: '@typescript-eslint/parser',
sourceType: 'module',
},
env: {
es6: true,
node: true,
},
overrides: [
{
files: [
'./**/*.ts',
'./**/*.js',
'./**/*.vue',
],
plugins: [
'html',
'@typescript-eslint',
],
globals: {
document: false,
window: false,
NodeJS: false,
},
extends: [
'plugin:@typescript-eslint/recommended',
'plugin:vue/strongly-recommended',
'airbnb-base',
],
rules: {
'max-classes-per-file': 'off',
'no-unreachable-loop': 'off',
'default-param-last': 'off',
'vue/multi-word-component-names': 'off',
'no-promise-executor-return': 'off',
'no-alert': 'off',
'no-shadow': 'off',
'no-console': ['warn', { allow: ['warn', 'error'] }],
semi: ['error', 'never'],
'import/extensions': 'off',
'import/no-extraneous-dependencies': ['error', { 'devDependencies': ['tests/**/*', './rollup.config.js'] }],
'import/no-unresolved': 'off',
'import/no-dynamic-require': 'off',
'arrow-parens': ['error', 'as-needed'],
'padded-blocks': 'off',
'class-methods-use-this': 'off',
'global-require': 'off',
'func-names': ['error', 'never'],
'arrow-body-style': 'off',
'max-len': 'off',
'vue/one-component-per-file': 'off',
'vue/this-in-template': ['error', 'never'],
// 'vue/max-attributes-per-line': ['error', {
// singleline: 3,
// multiline: {
// max: 1,
// allowFirstLine: false,
// },
// }],
'vue/singleline-html-element-content-newline': 'off',
'no-param-reassign': 'off',
'import/prefer-default-export': 'off',
'consistent-return': 'off',
'no-redeclare': 'off',
'@typescript-eslint/no-redeclare': ['error'],
'no-unused-vars': 'off',
'@typescript-eslint/no-empty-function': 'off',
'no-empty-function': 'off',
// '@typescript-eslint/no-unused-vars': ['error'],
// TODO: remove
'@typescript-eslint/no-unused-vars': 'off',
'no-use-before-define': 'off',
'@typescript-eslint/no-use-before-define': ['error'],
'no-dupe-class-members': 'off',
'@typescript-eslint/no-dupe-class-members': ['error'],
'lines-between-class-members': 'off',
'@typescript-eslint/lines-between-class-members': ['error'],
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-empty-interface': 'off',
'@typescript-eslint/explicit-module-boundary-type': 'off',
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/ban-types': 'off',
'@typescript-eslint/comma-dangle': ['error', 'always-multiline'],
'@typescript-eslint/explicit-module-boundary-types': 'off',
'no-async-promise-executor': 'off'
},
},
],
}