@iqrf/eslint-config 0.2.3 → 0.2.4

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/LICENSE CHANGED
@@ -186,7 +186,7 @@
186
186
  same "printed page" as the copyright notice for easier
187
187
  identification within third-party archives.
188
188
 
189
- Copyright 2024 MICRORISC s.r.o.
189
+ Copyright 2024-2025 MICRORISC s.r.o.
190
190
 
191
191
  Licensed under the Apache License, Version 2.0 (the "License");
192
192
  you may not use this file except in compliance with the License.
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { Linter } from 'eslint';
2
2
 
3
3
  /**
4
- * Copyright 2024 MICRORISC s.r.o.
4
+ * Copyright 2024-2025 MICRORISC s.r.o.
5
5
  *
6
6
  * Licensed under the Apache License, Version 2.0 (the "License");
7
7
  * you may not use this file except in compliance with the License.
@@ -19,7 +19,7 @@ import { Linter } from 'eslint';
19
19
  declare const comments: Linter.Config[];
20
20
 
21
21
  /**
22
- * Copyright 2024 MICRORISC s.r.o.
22
+ * Copyright 2024-2025 MICRORISC s.r.o.
23
23
  *
24
24
  * Licensed under the Apache License, Version 2.0 (the "License");
25
25
  * you may not use this file except in compliance with the License.
@@ -37,7 +37,7 @@ declare const comments: Linter.Config[];
37
37
  declare const cypress: Linter.Config[];
38
38
 
39
39
  /**
40
- * Copyright 2024 MICRORISC s.r.o.
40
+ * Copyright 2024-2025 MICRORISC s.r.o.
41
41
  *
42
42
  * Licensed under the Apache License, Version 2.0 (the "License");
43
43
  * you may not use this file except in compliance with the License.
@@ -59,7 +59,7 @@ interface Options$3 {
59
59
  declare const imports: (options: Options$3) => Linter.Config[];
60
60
 
61
61
  /**
62
- * Copyright 2024 MICRORISC s.r.o.
62
+ * Copyright 2024-2025 MICRORISC s.r.o.
63
63
  *
64
64
  * Licensed under the Apache License, Version 2.0 (the "License");
65
65
  * you may not use this file except in compliance with the License.
@@ -83,7 +83,7 @@ interface Options$2 {
83
83
  declare const javascript: (options: Options$2) => Linter.Config[];
84
84
 
85
85
  /**
86
- * Copyright 2024 MICRORISC s.r.o.
86
+ * Copyright 2024-2025 MICRORISC s.r.o.
87
87
  *
88
88
  * Licensed under the Apache License, Version 2.0 (the "License");
89
89
  * you may not use this file except in compliance with the License.
@@ -101,7 +101,7 @@ declare const javascript: (options: Options$2) => Linter.Config[];
101
101
  declare const jsDoc: Linter.Config[];
102
102
 
103
103
  /**
104
- * Copyright 2024 MICRORISC s.r.o.
104
+ * Copyright 2024-2025 MICRORISC s.r.o.
105
105
  *
106
106
  * Licensed under the Apache License, Version 2.0 (the "License");
107
107
  * you may not use this file except in compliance with the License.
@@ -119,7 +119,7 @@ declare const jsDoc: Linter.Config[];
119
119
  declare const json: Linter.Config[];
120
120
 
121
121
  /**
122
- * Copyright 2024 MICRORISC s.r.o.
122
+ * Copyright 2024-2025 MICRORISC s.r.o.
123
123
  *
124
124
  * Licensed under the Apache License, Version 2.0 (the "License");
125
125
  * you may not use this file except in compliance with the License.
@@ -140,7 +140,7 @@ interface Options$1 {
140
140
  declare const markdown: (options: Options$1) => Linter.Config[];
141
141
 
142
142
  /**
143
- * Copyright 2024 MICRORISC s.r.o.
143
+ * Copyright 2024-2025 MICRORISC s.r.o.
144
144
  *
145
145
  * Licensed under the Apache License, Version 2.0 (the "License");
146
146
  * you may not use this file except in compliance with the License.
@@ -158,7 +158,7 @@ declare const markdown: (options: Options$1) => Linter.Config[];
158
158
  declare const math: Linter.Config[];
159
159
 
160
160
  /**
161
- * Copyright 2024 MICRORISC s.r.o.
161
+ * Copyright 2024-2025 MICRORISC s.r.o.
162
162
  *
163
163
  * Licensed under the Apache License, Version 2.0 (the "License");
164
164
  * you may not use this file except in compliance with the License.
@@ -176,7 +176,7 @@ declare const math: Linter.Config[];
176
176
  declare const node: Linter.Config[];
177
177
 
178
178
  /**
179
- * Copyright 2024 MICRORISC s.r.o.
179
+ * Copyright 2024-2025 MICRORISC s.r.o.
180
180
  *
181
181
  * Licensed under the Apache License, Version 2.0 (the "License");
182
182
  * you may not use this file except in compliance with the License.
@@ -194,7 +194,7 @@ declare const node: Linter.Config[];
194
194
  declare const perfectionist: Linter.Config[];
195
195
 
196
196
  /**
197
- * Copyright 2024 MICRORISC s.r.o.
197
+ * Copyright 2024-2025 MICRORISC s.r.o.
198
198
  *
199
199
  * Licensed under the Apache License, Version 2.0 (the "License");
200
200
  * you may not use this file except in compliance with the License.
@@ -212,7 +212,7 @@ declare const perfectionist: Linter.Config[];
212
212
  declare const pinia: Linter.Config[];
213
213
 
214
214
  /**
215
- * Copyright 2024 MICRORISC s.r.o.
215
+ * Copyright 2024-2025 MICRORISC s.r.o.
216
216
  *
217
217
  * Licensed under the Apache License, Version 2.0 (the "License");
218
218
  * you may not use this file except in compliance with the License.
@@ -230,7 +230,7 @@ declare const pinia: Linter.Config[];
230
230
  declare const promise: Linter.Config[];
231
231
 
232
232
  /**
233
- * Copyright 2024 MICRORISC s.r.o.
233
+ * Copyright 2024-2025 MICRORISC s.r.o.
234
234
  *
235
235
  * Licensed under the Apache License, Version 2.0 (the "License");
236
236
  * you may not use this file except in compliance with the License.
@@ -248,7 +248,7 @@ declare const promise: Linter.Config[];
248
248
  declare const regexp: Linter.Config[];
249
249
 
250
250
  /**
251
- * Copyright 2024 MICRORISC s.r.o.
251
+ * Copyright 2024-2025 MICRORISC s.r.o.
252
252
  *
253
253
  * Licensed under the Apache License, Version 2.0 (the "License");
254
254
  * you may not use this file except in compliance with the License.
@@ -266,7 +266,7 @@ declare const regexp: Linter.Config[];
266
266
  declare const stylistic: Linter.Config[];
267
267
 
268
268
  /**
269
- * Copyright 2024 MICRORISC s.r.o.
269
+ * Copyright 2024-2025 MICRORISC s.r.o.
270
270
  *
271
271
  * Licensed under the Apache License, Version 2.0 (the "License");
272
272
  * you may not use this file except in compliance with the License.
@@ -284,7 +284,7 @@ declare const stylistic: Linter.Config[];
284
284
  declare const typescript: Linter.Config[];
285
285
 
286
286
  /**
287
- * Copyright 2024 MICRORISC s.r.o.
287
+ * Copyright 2024-2025 MICRORISC s.r.o.
288
288
  *
289
289
  * Licensed under the Apache License, Version 2.0 (the "License");
290
290
  * you may not use this file except in compliance with the License.
@@ -302,7 +302,7 @@ declare const typescript: Linter.Config[];
302
302
  declare const unicorn: Linter.Config[];
303
303
 
304
304
  /**
305
- * Copyright 2024 MICRORISC s.r.o.
305
+ * Copyright 2024-2025 MICRORISC s.r.o.
306
306
  *
307
307
  * Licensed under the Apache License, Version 2.0 (the "License");
308
308
  * you may not use this file except in compliance with the License.
@@ -320,7 +320,7 @@ declare const unicorn: Linter.Config[];
320
320
  declare const vitest: Linter.Config[];
321
321
 
322
322
  /**
323
- * Copyright 2024 MICRORISC s.r.o.
323
+ * Copyright 2024-2025 MICRORISC s.r.o.
324
324
  *
325
325
  * Licensed under the Apache License, Version 2.0 (the "License");
326
326
  * you may not use this file except in compliance with the License.
@@ -347,7 +347,7 @@ declare function getVueVersion(): number;
347
347
  declare const vue: (options: Options) => Linter.Config[];
348
348
 
349
349
  /**
350
- * Copyright 2024 MICRORISC s.r.o.
350
+ * Copyright 2024-2025 MICRORISC s.r.o.
351
351
  *
352
352
  * Licensed under the Apache License, Version 2.0 (the "License");
353
353
  * you may not use this file except in compliance with the License.
@@ -402,7 +402,7 @@ declare const hasVuetify: boolean;
402
402
  declare const versionVue: string | undefined;
403
403
 
404
404
  /**
405
- * Copyright 2024 MICRORISC s.r.o.
405
+ * Copyright 2024-2025 MICRORISC s.r.o.
406
406
  *
407
407
  * Licensed under the Apache License, Version 2.0 (the "License");
408
408
  * you may not use this file except in compliance with the License.
@@ -429,7 +429,7 @@ interface IqrfEslintOptions {
429
429
  markdown: boolean;
430
430
  /** Node.js support - disabled by default. */
431
431
  node: boolean;
432
- /** Perfectionist rules - disabled by default. */
432
+ /** Perfectionist rules - enabled by default. */
433
433
  perfectionist: boolean;
434
434
  /** Pinia support - auto-enabled by default. */
435
435
  pinia: boolean;
@@ -450,7 +450,7 @@ interface IqrfEslintOptions {
450
450
  }
451
451
 
452
452
  /**
453
- * Copyright 2024 MICRORISC s.r.o.
453
+ * Copyright 2024-2025 MICRORISC s.r.o.
454
454
  *
455
455
  * Licensed under the Apache License, Version 2.0 (the "License");
456
456
  * you may not use this file except in compliance with the License.
package/dist/index.js CHANGED
@@ -192,6 +192,18 @@ var json = [
192
192
  ...pluginJson.configs["flat/recommended-with-json"],
193
193
  {
194
194
  rules: {
195
+ "jsonc/array-bracket-spacing": [
196
+ "error",
197
+ "never"
198
+ ],
199
+ "jsonc/array-element-newline": [
200
+ "error",
201
+ "consistent"
202
+ ],
203
+ "jsonc/comma-style": [
204
+ "error",
205
+ "last"
206
+ ],
195
207
  "jsonc/indent": [
196
208
  "error",
197
209
  "tab",
@@ -204,6 +216,13 @@ var json = [
204
216
  "afterColon": true,
205
217
  "mode": "strict"
206
218
  }
219
+ ],
220
+ "jsonc/object-curly-newline": [
221
+ "error",
222
+ {
223
+ "consistent": true,
224
+ "multiline": true
225
+ }
207
226
  ]
208
227
  }
209
228
  }
@@ -294,6 +313,23 @@ var perfectionist = [
294
313
  "ignoreCase": false
295
314
  }
296
315
  ],
316
+ "perfectionist/sort-exports": [
317
+ "error",
318
+ {
319
+ "type": "alphabetical",
320
+ "order": "asc",
321
+ "ignoreCase": false
322
+ }
323
+ ],
324
+ "perfectionist/sort-named-exports": [
325
+ "error",
326
+ {
327
+ "type": "alphabetical",
328
+ "order": "asc",
329
+ "groupKind": "mixed",
330
+ "ignoreCase": false
331
+ }
332
+ ],
297
333
  "perfectionist/sort-named-imports": [
298
334
  "error",
299
335
  {
@@ -327,7 +363,9 @@ var promise = [
327
363
  ...pluginPromise.configs["flat/recommended"],
328
364
  rules: {
329
365
  ...pluginPromise.configs["flat/recommended"].rules,
330
- "promise/always-return": "warn"
366
+ "promise/always-return": "warn",
367
+ "promise/prefer-await-to-then": "warn",
368
+ "promise/prefer-catch": "error"
331
369
  }
332
370
  }
333
371
  ];
@@ -342,7 +380,8 @@ var regexp = [
342
380
  },
343
381
  rules: {
344
382
  ...pluginRegexp.configs["flat/recommended"].rules,
345
- "regexp/no-unused-capturing-group": "warn"
383
+ "regexp/no-unused-capturing-group": "warn",
384
+ "regexp/prefer-quantifier": "error"
346
385
  }
347
386
  }
348
387
  ];
@@ -731,7 +770,7 @@ function iqrfEslint(options = {}, config = []) {
731
770
  jsdoc: enableJsDoc = true,
732
771
  markdown: enableMarkdown = true,
733
772
  node: enableNode = false,
734
- perfectionist: enablePerfectionist = false,
773
+ perfectionist: enablePerfectionist = true,
735
774
  pinia: enablePinia = hasPinia,
736
775
  promise: enablePromise = true,
737
776
  regExp: enableRegExp = true,
package/package.json CHANGED
@@ -15,45 +15,45 @@
15
15
  ],
16
16
  "description": "ESLint configuration for IQRF projects",
17
17
  "dependencies": {
18
- "@eslint/js": "^9.15.0",
19
- "@intlify/eslint-plugin-vue-i18n": "^3.0.0",
20
- "@stylistic/eslint-plugin": "^2.10.1",
21
- "@typescript-eslint/parser": "^8.14.0",
22
- "@vitest/eslint-plugin": "^1.1.10",
18
+ "@eslint/js": "^9.17.0",
19
+ "@intlify/eslint-plugin-vue-i18n": "^3.2.0",
20
+ "@stylistic/eslint-plugin": "^2.12.1",
21
+ "@typescript-eslint/parser": "^8.19.1",
22
+ "@vitest/eslint-plugin": "^1.1.24",
23
23
  "eslint-config-flat-gitignore": "^0.3.0",
24
- "eslint-import-resolver-typescript": "^3.6.3",
24
+ "eslint-import-resolver-typescript": "^3.7.0",
25
25
  "eslint-plugin-cypress": "^4.1.0",
26
26
  "eslint-plugin-eslint-comments": "^3.2.0",
27
- "eslint-plugin-import-x": "^4.4.2",
28
- "eslint-plugin-jsdoc": "^50.5.0",
27
+ "eslint-plugin-import-x": "^4.6.1",
28
+ "eslint-plugin-jsdoc": "^50.6.1",
29
29
  "eslint-plugin-jsonc": "^2.18.2",
30
30
  "eslint-plugin-markdown": "^5.1.0",
31
31
  "eslint-plugin-math": "^0.6.0",
32
- "eslint-plugin-n": "^17.13.2",
33
- "eslint-plugin-perfectionist": "^3.9.1",
32
+ "eslint-plugin-n": "^17.15.1",
33
+ "eslint-plugin-perfectionist": "^4.6.0",
34
34
  "eslint-plugin-pinia": "^0.4.1",
35
- "eslint-plugin-promise": "^7.1.0",
35
+ "eslint-plugin-promise": "^7.2.1",
36
36
  "eslint-plugin-regexp": "^2.7.0",
37
- "eslint-plugin-unicorn": "^56.0.0",
38
- "eslint-plugin-vue": "^9.31.0",
39
- "eslint-plugin-vue-scoped-css": "^2.8.1",
37
+ "eslint-plugin-unicorn": "^56.0.1",
38
+ "eslint-plugin-vue": "^9.32.0",
39
+ "eslint-plugin-vue-scoped-css": "^2.9.0",
40
40
  "eslint-plugin-vuetify": "^2.5.1",
41
- "globals": "^15.12.0",
42
- "local-pkg": "^0.5.0",
43
- "typescript-eslint": "^8.14.0",
41
+ "globals": "^15.14.0",
42
+ "local-pkg": "^0.5.1",
43
+ "typescript-eslint": "^8.19.1",
44
44
  "vue-eslint-parser": "^9.4.3"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@types/eslint": "^9.6.1",
48
48
  "@types/eslint-plugin-markdown": "^2.0.2",
49
49
  "@types/eslint__js": "^8.42.3",
50
- "@types/node": "^22.9.0",
51
- "bumpp": "^9.8.1",
52
- "eslint": "^9.15.0",
53
- "eslint-plugin-eslint-plugin": "^6.3.2",
50
+ "@types/node": "^22.10.5",
51
+ "bumpp": "^9.9.2",
52
+ "eslint": "^9.17.0",
53
+ "eslint-plugin-eslint-plugin": "^6.4.0",
54
54
  "tsup": "^8.3.5",
55
55
  "tsx": "^4.19.2",
56
- "typescript": "^5.6.3"
56
+ "typescript": "^5.7.2"
57
57
  },
58
58
  "engines": {
59
59
  "node": "^18.18.0 || >=20.0.0"
@@ -83,7 +83,7 @@
83
83
  },
84
84
  "type": "module",
85
85
  "types": "dist/index.d.ts",
86
- "version": "0.2.3",
86
+ "version": "0.2.4",
87
87
  "scripts": {
88
88
  "build": "tsup",
89
89
  "lint": "eslint .",