@open-xchange/linter-presets 1.2.27 → 1.2.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +39 -31
- package/dist/eslint/env/vitest.js +10 -1
- package/dist/eslint/index.js +4 -3
- package/dist/stylelint/index.js +5 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## `1.2.29` – 2025-Apr-29
|
|
4
|
+
|
|
5
|
+
- added: (ESLint) ignore top-level "coverage" directory
|
|
6
|
+
|
|
7
|
+
## `1.2.28` – 2025-Apr-29
|
|
8
|
+
|
|
9
|
+
- added: (ESLint) allow vitest type-checking expectations
|
|
10
|
+
|
|
3
11
|
## `1.2.27` – 2025-Apr-25
|
|
4
12
|
|
|
5
13
|
- chore: bump dependencies
|
|
@@ -74,7 +82,7 @@
|
|
|
74
82
|
|
|
75
83
|
## `1.2.10` – 2025-Feb-14
|
|
76
84
|
|
|
77
|
-
-
|
|
85
|
+
- fixed: (ESLint) missing `env/tsconfig.*` in package
|
|
78
86
|
|
|
79
87
|
## `1.2.9` – 2025-Feb-14
|
|
80
88
|
|
|
@@ -102,12 +110,12 @@
|
|
|
102
110
|
|
|
103
111
|
## `1.2.3` – 2025-Jan-16
|
|
104
112
|
|
|
105
|
-
-
|
|
106
|
-
-
|
|
113
|
+
- added: (ESLint) ignore NuxtJS output directories (`.nuxt` and `.output`)
|
|
114
|
+
- fixed: (ESLint) bundle types for `picomatch`
|
|
107
115
|
|
|
108
116
|
## `1.2.2` – 2025-Jan-11
|
|
109
117
|
|
|
110
|
-
-
|
|
118
|
+
- fixed: (ESLint) support all configuration file extensions
|
|
111
119
|
|
|
112
120
|
## `1.2.1` – 2025-Jan-10
|
|
113
121
|
|
|
@@ -115,18 +123,18 @@
|
|
|
115
123
|
|
|
116
124
|
## `1.2.0` – 2025-Jan-09
|
|
117
125
|
|
|
118
|
-
-
|
|
126
|
+
- changed: (ESLint) move support for native decorators in JS files into own environment `env.decorators`
|
|
119
127
|
- removed: (ESLint) support for TypeScript's experimental decorators
|
|
120
128
|
|
|
121
129
|
## `1.1.1` – 2025-Jan-08
|
|
122
130
|
|
|
123
|
-
-
|
|
131
|
+
- fixed: (ESLint) remove obsolete package `eslint-import-resolver-typescript`
|
|
124
132
|
|
|
125
133
|
## `1.1.0` – 2025-Jan-08
|
|
126
134
|
|
|
127
|
-
-
|
|
128
|
-
-
|
|
129
|
-
-
|
|
135
|
+
- added: (ESLint) plugin `eslint-plugin-depend`
|
|
136
|
+
- added: (ESLint) config option "packages"
|
|
137
|
+
- removed: (ESLint) plugin `eslint-plugin-import`
|
|
130
138
|
|
|
131
139
|
## `1.0.0` – 2025-Jan-03
|
|
132
140
|
|
|
@@ -140,29 +148,29 @@
|
|
|
140
148
|
## `0.12.3` – 2024-Dec-20
|
|
141
149
|
|
|
142
150
|
- chore: bump dependencies
|
|
143
|
-
-
|
|
151
|
+
- added: (ESLint) more rules of `eslint-plugin-eslint-plugin`
|
|
144
152
|
|
|
145
153
|
## `0.12.2` – 2024-Dec-13
|
|
146
154
|
|
|
147
|
-
-
|
|
155
|
+
- changed: (ESLint) raise all recommended Vue rules to "error" level
|
|
148
156
|
|
|
149
157
|
## `0.12.1` – 2024-Dec-13
|
|
150
158
|
|
|
151
159
|
- chore: bump dependencies
|
|
152
|
-
-
|
|
160
|
+
- added: (ESLint) support for React v19
|
|
153
161
|
|
|
154
162
|
## `0.12.0` – 2024-Dec-06
|
|
155
163
|
|
|
156
164
|
- chore: bump dependencies
|
|
157
|
-
-
|
|
165
|
+
- added: (ESLint) more rules for Vue files
|
|
158
166
|
|
|
159
167
|
## `0.11.6` – 2024-Dec-01
|
|
160
168
|
|
|
161
|
-
-
|
|
169
|
+
- added: (ESLint) enable standard rules in Vue files
|
|
162
170
|
|
|
163
171
|
## `0.11.5` – 2024-Nov-29
|
|
164
172
|
|
|
165
|
-
-
|
|
173
|
+
- added: (StyleLint) enable directive `reportUnscopedDisables`
|
|
166
174
|
|
|
167
175
|
## `0.11.4` – 2024-Nov-29
|
|
168
176
|
|
|
@@ -170,7 +178,7 @@
|
|
|
170
178
|
|
|
171
179
|
## `0.11.3` – 2024-Nov-25
|
|
172
180
|
|
|
173
|
-
-
|
|
181
|
+
- changed: (StyleLint) disable rule `@stylistic/no-empty-first-line`
|
|
174
182
|
|
|
175
183
|
## `0.11.2` – 2024-Nov-22
|
|
176
184
|
|
|
@@ -178,16 +186,16 @@
|
|
|
178
186
|
|
|
179
187
|
## `0.11.1` – 2024-Nov-20
|
|
180
188
|
|
|
181
|
-
-
|
|
189
|
+
- added: (StyleLint) support for `<style>` blocks in Vue SFCs
|
|
182
190
|
|
|
183
191
|
## `0.11.0` – 2024-Nov-19
|
|
184
192
|
|
|
185
|
-
-
|
|
186
|
-
-
|
|
193
|
+
- changed: (ESLint) switch from `eslint-plugin-react` to `@eslint-react/eslint-plugin`
|
|
194
|
+
- changed: (ESLint) remove `eslint-plugin-jsx-expressions` plugin
|
|
187
195
|
|
|
188
196
|
## `0.10.4` – 2024-Nov-18
|
|
189
197
|
|
|
190
|
-
-
|
|
198
|
+
- fixed: (ESLint) correctly configure `vue/html-indent` rule
|
|
191
199
|
|
|
192
200
|
## `0.10.3` – 2024-Nov-18
|
|
193
201
|
|
|
@@ -195,8 +203,8 @@
|
|
|
195
203
|
|
|
196
204
|
## `0.10.2` – 2024-Nov-18
|
|
197
205
|
|
|
198
|
-
-
|
|
199
|
-
-
|
|
206
|
+
- added: (ESLint) add rule `@stylistic/jsx-indent`
|
|
207
|
+
- changed: (ESLint) change default indentation for Vue files to 4 spaces
|
|
200
208
|
|
|
201
209
|
## `0.10.1` – 2024-Nov-15
|
|
202
210
|
|
|
@@ -204,14 +212,14 @@
|
|
|
204
212
|
|
|
205
213
|
## `0.10.0` – 2024-Nov-14
|
|
206
214
|
|
|
207
|
-
-
|
|
208
|
-
-
|
|
209
|
-
-
|
|
215
|
+
- added: (ESLint) support for Vue.js files (`eslint-plugin-vue`)
|
|
216
|
+
- changed: (ESlint) default value of `ecmaVersion` set to `latest`
|
|
217
|
+
- changed: (ESlint) custom indentation per file type (default `2` for YAML and Vue)
|
|
210
218
|
|
|
211
219
|
## `0.9.0` – 2024-Nov-08
|
|
212
220
|
|
|
213
|
-
-
|
|
214
|
-
-
|
|
221
|
+
- changed: (ESLint) allow static class initialization blocks
|
|
222
|
+
- changed: (ESLint) allow `Object.hasOwn()`
|
|
215
223
|
|
|
216
224
|
## `0.8.13` – 2024-Nov-08
|
|
217
225
|
|
|
@@ -219,7 +227,7 @@
|
|
|
219
227
|
|
|
220
228
|
## `0.8.12` – 2024-Nov-02
|
|
221
229
|
|
|
222
|
-
-
|
|
230
|
+
- fixed: (ESLint) `@typescript-eslint/switch-exhaustiveness-check`: add option `considerDefaultExhaustiveForUnions`
|
|
223
231
|
|
|
224
232
|
## `0.8.11` – 2024-Nov-02
|
|
225
233
|
|
|
@@ -264,11 +272,11 @@
|
|
|
264
272
|
|
|
265
273
|
## `0.8.1` – 2024-Sep-04
|
|
266
274
|
|
|
267
|
-
-
|
|
275
|
+
- changed: (ESLint) relax a few strict rules of `@typescript-eslint`
|
|
268
276
|
|
|
269
277
|
## `0.8.0` – 2024-Sep-04
|
|
270
278
|
|
|
271
|
-
-
|
|
279
|
+
- changed: (ESLint) raise `@typescript-eslint` rules to "strict" preset
|
|
272
280
|
|
|
273
281
|
## `0.7.1` – 2024-Aug-30
|
|
274
282
|
|
|
@@ -336,7 +344,7 @@
|
|
|
336
344
|
|
|
337
345
|
## `0.1.13` – 2024-Jul-31
|
|
338
346
|
|
|
339
|
-
-
|
|
347
|
+
- changed: disable rule `no-console` in environment `env.node`
|
|
340
348
|
- chore: add renovate bot
|
|
341
349
|
- chore: bump dependencies
|
|
342
350
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import vitestPlugin from "@vitest/eslint-plugin";
|
|
2
|
-
import { concatConfigs, createConfig, customRules } from "../shared/env-utils.js";
|
|
2
|
+
import { JS_GLOB, concatConfigs, createConfig, customRules } from "../shared/env-utils.js";
|
|
3
3
|
import { createUnitTestPluginConfigs } from "../shared/unittest.js";
|
|
4
4
|
// functions ==================================================================
|
|
5
5
|
/**
|
|
@@ -35,6 +35,15 @@ export default function vitest(envOptions) {
|
|
|
35
35
|
}),
|
|
36
36
|
// "jest-dom" and "testing-library" plugin
|
|
37
37
|
createUnitTestPluginConfigs(envOptions),
|
|
38
|
+
// allow to add type-checking expectations in tests
|
|
39
|
+
createConfig(envOptions, {
|
|
40
|
+
ignores: JS_GLOB,
|
|
41
|
+
settings: {
|
|
42
|
+
vitest: {
|
|
43
|
+
typecheck: true,
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
}),
|
|
38
47
|
// custom rules
|
|
39
48
|
customRules(envOptions, {
|
|
40
49
|
// "vitest" plugin
|
package/dist/eslint/index.js
CHANGED
|
@@ -50,11 +50,12 @@ export const env = {
|
|
|
50
50
|
*/
|
|
51
51
|
export function configure(options) {
|
|
52
52
|
const ignores = [
|
|
53
|
-
"*/.yarn
|
|
54
|
-
"dist
|
|
53
|
+
"*/.yarn",
|
|
54
|
+
"dist",
|
|
55
55
|
"vite.config.ts.*.mjs",
|
|
56
|
-
"gitlab-ci
|
|
56
|
+
"gitlab-ci",
|
|
57
57
|
".gitlab-ci.yml",
|
|
58
|
+
"coverage", // Vitest
|
|
58
59
|
".nuxt", // NuxtJS
|
|
59
60
|
".output", // NuxtJS
|
|
60
61
|
...(options?.ignores ?? []),
|
package/dist/stylelint/index.js
CHANGED
|
@@ -11,7 +11,11 @@
|
|
|
11
11
|
*/
|
|
12
12
|
export function configure(options) {
|
|
13
13
|
const ignoreFiles = [
|
|
14
|
-
"
|
|
14
|
+
"node_modules",
|
|
15
|
+
"dist",
|
|
16
|
+
"coverage", // Vitest
|
|
17
|
+
".nuxt", // NuxtJS
|
|
18
|
+
".output", // NuxtJS
|
|
15
19
|
...(options?.ignores ?? []),
|
|
16
20
|
];
|
|
17
21
|
// resolve stylistic configuration options
|