-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
executable file
·157 lines (157 loc) · 3.78 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
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
module.exports = {
env: {
es6: true,
jest: true,
jquery: true,
browser: true
},
ignorePatterns: [
'**/*.min.js',
'**/*.test.js',
'node_modules/',
'package.json',
'.vscode',
'coverage/',
'dist/',
'scripts',
'.nuxt/',
'assets/',
'static/',
'public/',
'generate-plantuml-mindmap.js',
'.eslintrc.js',
'postcss.config.js',
'tailwind.config.js'
],
parserOptions: {
parser: '@typescript-eslint/parser',
ecmaVersion: 2021,
sourceType: 'module'
},
extends: [
'eslint:recommended',
'plugin:vue/vue3-recommended'
],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly'
},
rules: {
'no-var': 'error',
'no-case-declarations': 'off',
'block-spacing': 'error',
'no-lone-blocks': 'error',
'space-before-blocks': 'error',
'no-lonely-if': 'error',
'array-bracket-newline': 'error',
'array-bracket-spacing': 'error',
'arrow-spacing': 'error',
'brace-style': 'error',
'curly': ['error', 'multi-line'],
'eqeqeq': 'error',
'global-require': 'error',
'no-fallthrough': 'error',
'no-global-assign': 'error',
'no-self-assign': 'error',
'no-redeclare': 'error',
'no-alert': 'error',
'no-return-await': 'error',
'no-else-return': 'error',
'no-empty-pattern': 'error',
'no-eq-null': 'error',
'no-extra-bind': 'error',
'no-extra-boolean-cast': 'error',
'no-extra-label': 'error',
'no-extra-parens': 'error',
'no-octal': 'error',
'key-spacing': 'error',
'no-useless-call': 'error',
'no-useless-escape': 'error',
'no-useless-rename': 'error',
'no-useless-return': 'error',
'no-void': 'error',
'no-with': 'error',
'wrap-iife': 'error',
'no-debugger': 'error',
'no-delete-var': 'error',
'no-undef': 'error',
'no-shadow-restricted-names': 'error',
'no-undef-init': 'error',
'no-undefined': 'error',
'no-unused-vars': 'error',
'no-unused-expressions': 'error',
'no-buffer-constructor': 'error',
'no-new-require': 'error',
'comma-spacing': 'error',
'func-call-spacing': 'error',
'no-mixed-spaces-and-tabs': 'error',
'no-multiple-empty-lines': 'error',
'no-nested-ternary': 'error',
'no-trailing-spaces': 'error',
'no-unneeded-ternary': 'error',
'no-whitespace-before-property': 'error',
'nonblock-statement-body-position': 'error',
'object-curly-newline': [
'error', {
'ObjectExpression': {
'multiline': true,
'minProperties': 2
},
'ObjectPattern': {
'multiline': true,
'minProperties': 3
},
'ImportDeclaration': 'never',
'ExportDeclaration': 'never'
}
],
'object-property-newline': 'error',
'prefer-const': 'error',
'space-before-function-paren': [
'error',
'never'
],
'space-infix-ops': 'error',
'space-unary-ops': [
2, {
'words': true,
'nonwords': false,
'overrides': {
'-': false,
'+': false
}
}
],
'no-class-assign': 'error',
'no-confusing-arrow': 'error',
'no-const-assign': 'error',
'no-dupe-args': 'error',
'no-dupe-class-members': 'error',
'no-dupe-keys': 'error',
'no-duplicate-imports': 'error',
'no-duplicate-case': 'error',
'no-new-symbol': 'error',
'no-useless-constructor': 'error',
'prefer-spread': 'error',
'prefer-template': 'error',
'template-curly-spacing': 'error',
'object-curly-spacing': ['error', 'always'],
'rest-spread-spacing': 'error',
'indent': [
'error',
2
],
'linebreak-style': [
'error',
'unix'
],
'quotes': [
'error',
'single'
],
'semi': [
'error',
'never'
]
}
}