@open-xchange/linter-presets 1.2.27 → 1.2.28

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 CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## `1.2.28` – 2025-Apr-29
4
+
5
+ - added: (ESLint) allow vitest type-checking expectations
6
+
3
7
  ## `1.2.27` – 2025-Apr-25
4
8
 
5
9
  - chore: bump dependencies
@@ -74,7 +78,7 @@
74
78
 
75
79
  ## `1.2.10` – 2025-Feb-14
76
80
 
77
- - fix: (ESLint) missing `env/tsconfig.*` in package
81
+ - fixed: (ESLint) missing `env/tsconfig.*` in package
78
82
 
79
83
  ## `1.2.9` – 2025-Feb-14
80
84
 
@@ -102,12 +106,12 @@
102
106
 
103
107
  ## `1.2.3` – 2025-Jan-16
104
108
 
105
- - add: (ESLint) ignore NuxtJS output directories (`.nuxt` and `.output`)
106
- - fix: (ESLint) bundle types for `picomatch`
109
+ - added: (ESLint) ignore NuxtJS output directories (`.nuxt` and `.output`)
110
+ - fixed: (ESLint) bundle types for `picomatch`
107
111
 
108
112
  ## `1.2.2` – 2025-Jan-11
109
113
 
110
- - fix: (ESLint) support all configuration file extensions
114
+ - fixed: (ESLint) support all configuration file extensions
111
115
 
112
116
  ## `1.2.1` – 2025-Jan-10
113
117
 
@@ -115,18 +119,18 @@
115
119
 
116
120
  ## `1.2.0` – 2025-Jan-09
117
121
 
118
- - change: (ESLint) move support for native decorators in JS files into own environment `env.decorators`
122
+ - changed: (ESLint) move support for native decorators in JS files into own environment `env.decorators`
119
123
  - removed: (ESLint) support for TypeScript's experimental decorators
120
124
 
121
125
  ## `1.1.1` – 2025-Jan-08
122
126
 
123
- - fix: (ESLint) remove obsolete package `eslint-import-resolver-typescript`
127
+ - fixed: (ESLint) remove obsolete package `eslint-import-resolver-typescript`
124
128
 
125
129
  ## `1.1.0` – 2025-Jan-08
126
130
 
127
- - add: (ESLint) plugin `eslint-plugin-depend`
128
- - add: (ESLint) config option "packages"
129
- - remove: (ESLint) plugin `eslint-plugin-import`
131
+ - added: (ESLint) plugin `eslint-plugin-depend`
132
+ - added: (ESLint) config option "packages"
133
+ - removed: (ESLint) plugin `eslint-plugin-import`
130
134
 
131
135
  ## `1.0.0` – 2025-Jan-03
132
136
 
@@ -140,29 +144,29 @@
140
144
  ## `0.12.3` – 2024-Dec-20
141
145
 
142
146
  - chore: bump dependencies
143
- - add: (ESLint) more rules of `eslint-plugin-eslint-plugin`
147
+ - added: (ESLint) more rules of `eslint-plugin-eslint-plugin`
144
148
 
145
149
  ## `0.12.2` – 2024-Dec-13
146
150
 
147
- - change: (ESLint) raise all recommended Vue rules to "error" level
151
+ - changed: (ESLint) raise all recommended Vue rules to "error" level
148
152
 
149
153
  ## `0.12.1` – 2024-Dec-13
150
154
 
151
155
  - chore: bump dependencies
152
- - add: (ESLint) support for React v19
156
+ - added: (ESLint) support for React v19
153
157
 
154
158
  ## `0.12.0` – 2024-Dec-06
155
159
 
156
160
  - chore: bump dependencies
157
- - add: (ESLint) more rules for Vue files
161
+ - added: (ESLint) more rules for Vue files
158
162
 
159
163
  ## `0.11.6` – 2024-Dec-01
160
164
 
161
- - add: (ESLint) enable standard rules in Vue files
165
+ - added: (ESLint) enable standard rules in Vue files
162
166
 
163
167
  ## `0.11.5` – 2024-Nov-29
164
168
 
165
- - add: (StyleLint) enable directive `reportUnscopedDisables`
169
+ - added: (StyleLint) enable directive `reportUnscopedDisables`
166
170
 
167
171
  ## `0.11.4` – 2024-Nov-29
168
172
 
@@ -170,7 +174,7 @@
170
174
 
171
175
  ## `0.11.3` – 2024-Nov-25
172
176
 
173
- - change: (StyleLint) disable rule `@stylistic/no-empty-first-line`
177
+ - changed: (StyleLint) disable rule `@stylistic/no-empty-first-line`
174
178
 
175
179
  ## `0.11.2` – 2024-Nov-22
176
180
 
@@ -178,16 +182,16 @@
178
182
 
179
183
  ## `0.11.1` – 2024-Nov-20
180
184
 
181
- - add: (StyleLint) support for `<style>` blocks in Vue SFCs
185
+ - added: (StyleLint) support for `<style>` blocks in Vue SFCs
182
186
 
183
187
  ## `0.11.0` – 2024-Nov-19
184
188
 
185
- - change: (ESLint) switch from `eslint-plugin-react` to `@eslint-react/eslint-plugin`
186
- - change: (ESLint) remove `eslint-plugin-jsx-expressions` plugin
189
+ - changed: (ESLint) switch from `eslint-plugin-react` to `@eslint-react/eslint-plugin`
190
+ - changed: (ESLint) remove `eslint-plugin-jsx-expressions` plugin
187
191
 
188
192
  ## `0.10.4` – 2024-Nov-18
189
193
 
190
- - fix: (ESLint) correctly configure `vue/html-indent` rule
194
+ - fixed: (ESLint) correctly configure `vue/html-indent` rule
191
195
 
192
196
  ## `0.10.3` – 2024-Nov-18
193
197
 
@@ -195,8 +199,8 @@
195
199
 
196
200
  ## `0.10.2` – 2024-Nov-18
197
201
 
198
- - add: (ESLint) add rule `@stylistic/jsx-indent`
199
- - change: (ESLint) change default indentation for Vue files to 4 spaces
202
+ - added: (ESLint) add rule `@stylistic/jsx-indent`
203
+ - changed: (ESLint) change default indentation for Vue files to 4 spaces
200
204
 
201
205
  ## `0.10.1` – 2024-Nov-15
202
206
 
@@ -204,14 +208,14 @@
204
208
 
205
209
  ## `0.10.0` – 2024-Nov-14
206
210
 
207
- - add: (ESLint) support for Vue.js files (`eslint-plugin-vue`)
208
- - change: (ESlint) default value of `ecmaVersion` set to `latest`
209
- - change: (ESlint) custom indentation per file type (default `2` for YAML and Vue)
211
+ - added: (ESLint) support for Vue.js files (`eslint-plugin-vue`)
212
+ - changed: (ESlint) default value of `ecmaVersion` set to `latest`
213
+ - changed: (ESlint) custom indentation per file type (default `2` for YAML and Vue)
210
214
 
211
215
  ## `0.9.0` – 2024-Nov-08
212
216
 
213
- - change: (ESLint) allow static class initialization blocks
214
- - change: (ESLint) allow `Object.hasOwn()`
217
+ - changed: (ESLint) allow static class initialization blocks
218
+ - changed: (ESLint) allow `Object.hasOwn()`
215
219
 
216
220
  ## `0.8.13` – 2024-Nov-08
217
221
 
@@ -219,7 +223,7 @@
219
223
 
220
224
  ## `0.8.12` – 2024-Nov-02
221
225
 
222
- - fix: (ESLint) `@typescript-eslint/switch-exhaustiveness-check`: add option `considerDefaultExhaustiveForUnions`
226
+ - fixed: (ESLint) `@typescript-eslint/switch-exhaustiveness-check`: add option `considerDefaultExhaustiveForUnions`
223
227
 
224
228
  ## `0.8.11` – 2024-Nov-02
225
229
 
@@ -264,11 +268,11 @@
264
268
 
265
269
  ## `0.8.1` – 2024-Sep-04
266
270
 
267
- - change: (ESLint) relax a few strict rules of `@typescript-eslint`
271
+ - changed: (ESLint) relax a few strict rules of `@typescript-eslint`
268
272
 
269
273
  ## `0.8.0` – 2024-Sep-04
270
274
 
271
- - change: (ESLint) raise `@typescript-eslint` rules to "strict" preset
275
+ - changed: (ESLint) raise `@typescript-eslint` rules to "strict" preset
272
276
 
273
277
  ## `0.7.1` – 2024-Aug-30
274
278
 
@@ -336,7 +340,7 @@
336
340
 
337
341
  ## `0.1.13` – 2024-Jul-31
338
342
 
339
- - change: disable rule `no-console` in environment `env.node`
343
+ - changed: disable rule `no-console` in environment `env.node`
340
344
  - chore: add renovate bot
341
345
  - chore: bump dependencies
342
346
 
@@ -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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-xchange/linter-presets",
3
- "version": "1.2.27",
3
+ "version": "1.2.28",
4
4
  "description": "Configuration presets for ESLint and StyleLint",
5
5
  "repository": {
6
6
  "type": "git",