@iqrf/eslint-config 0.1.13 → 0.2.1
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/dist/index.js +34 -9
- package/package.json +12 -13
package/dist/index.js
CHANGED
|
@@ -152,8 +152,10 @@ var javascript = (options) => [
|
|
|
152
152
|
"error",
|
|
153
153
|
"unix"
|
|
154
154
|
],
|
|
155
|
+
"no-useless-concat": "error",
|
|
155
156
|
"no-unused-vars": options.typescript ? "off" : "warn",
|
|
156
157
|
"prefer-const": "error",
|
|
158
|
+
"prefer-template": "error",
|
|
157
159
|
"quotes": [
|
|
158
160
|
"error",
|
|
159
161
|
"single"
|
|
@@ -407,8 +409,6 @@ var stylistic = [
|
|
|
407
409
|
// src/configs/typescript.ts
|
|
408
410
|
import path2 from "node:path";
|
|
409
411
|
import process4 from "node:process";
|
|
410
|
-
import { fixupPluginRules } from "@eslint/compat";
|
|
411
|
-
import pluginDeprecation from "eslint-plugin-deprecation";
|
|
412
412
|
import tsEslint from "typescript-eslint";
|
|
413
413
|
|
|
414
414
|
// src/env.ts
|
|
@@ -429,7 +429,8 @@ var configs = [
|
|
|
429
429
|
{
|
|
430
430
|
extends: [
|
|
431
431
|
...tsEslint.configs.recommendedTypeChecked,
|
|
432
|
-
...tsEslint.configs.stylisticTypeChecked
|
|
432
|
+
...tsEslint.configs.stylisticTypeChecked,
|
|
433
|
+
...tsEslint.configs.strictTypeChecked
|
|
433
434
|
],
|
|
434
435
|
files: ["**/*.ts", "**/*.tsx"],
|
|
435
436
|
languageOptions: {
|
|
@@ -440,8 +441,7 @@ var configs = [
|
|
|
440
441
|
}
|
|
441
442
|
},
|
|
442
443
|
plugins: {
|
|
443
|
-
"@typescript-eslint": tsEslint.plugin
|
|
444
|
-
deprecation: fixupPluginRules(pluginDeprecation)
|
|
444
|
+
"@typescript-eslint": tsEslint.plugin
|
|
445
445
|
},
|
|
446
446
|
rules: {
|
|
447
447
|
"@typescript-eslint/ban-ts-comment": "off",
|
|
@@ -454,11 +454,11 @@ var configs = [
|
|
|
454
454
|
],
|
|
455
455
|
"@typescript-eslint/explicit-member-accessibility": "error",
|
|
456
456
|
"@typescript-eslint/no-duplicate-enum-values": "warn",
|
|
457
|
+
"@typescript-eslint/no-dynamic-delete": "warn",
|
|
457
458
|
"@typescript-eslint/no-explicit-any": "warn",
|
|
458
459
|
"@typescript-eslint/no-extraneous-class": "off",
|
|
459
460
|
"@typescript-eslint/no-inferrable-types": "off",
|
|
460
|
-
"@typescript-eslint/no-unsafe-call": "warn"
|
|
461
|
-
"deprecation/deprecation": "error"
|
|
461
|
+
"@typescript-eslint/no-unsafe-call": "warn"
|
|
462
462
|
}
|
|
463
463
|
}
|
|
464
464
|
];
|
|
@@ -589,7 +589,7 @@ var vitest = [
|
|
|
589
589
|
];
|
|
590
590
|
|
|
591
591
|
// src/configs/vue.ts
|
|
592
|
-
import { fixupPluginRules
|
|
592
|
+
import { fixupPluginRules } from "@eslint/compat";
|
|
593
593
|
import pluginVue from "eslint-plugin-vue";
|
|
594
594
|
import pluginVueScopedCSS from "eslint-plugin-vue-scoped-css";
|
|
595
595
|
import pluginVuetify from "eslint-plugin-vuetify";
|
|
@@ -617,7 +617,7 @@ var vue = (options) => [
|
|
|
617
617
|
plugins: {
|
|
618
618
|
vue: pluginVue,
|
|
619
619
|
...options.vuetify ? {
|
|
620
|
-
vuetify:
|
|
620
|
+
vuetify: fixupPluginRules(pluginVuetify)
|
|
621
621
|
} : {}
|
|
622
622
|
},
|
|
623
623
|
languageOptions: {
|
|
@@ -634,6 +634,14 @@ var vue = (options) => [
|
|
|
634
634
|
}
|
|
635
635
|
},
|
|
636
636
|
rules: {
|
|
637
|
+
"vue/comma-dangle": [
|
|
638
|
+
"error",
|
|
639
|
+
"always-multiline"
|
|
640
|
+
],
|
|
641
|
+
"vue/eqeqeq": [
|
|
642
|
+
"error",
|
|
643
|
+
"always"
|
|
644
|
+
],
|
|
637
645
|
"vue/html-indent": [
|
|
638
646
|
"warn",
|
|
639
647
|
"tab"
|
|
@@ -647,6 +655,23 @@ var vue = (options) => [
|
|
|
647
655
|
{ singleline: 3 }
|
|
648
656
|
],
|
|
649
657
|
"vue/multi-word-component-names": "off",
|
|
658
|
+
"vue/no-constant-condition": "error",
|
|
659
|
+
"vue/no-extra-parens": [
|
|
660
|
+
"error",
|
|
661
|
+
"all",
|
|
662
|
+
{
|
|
663
|
+
"nestedBinaryExpressions": false,
|
|
664
|
+
"ternaryOperandBinaryExpressions": false
|
|
665
|
+
}
|
|
666
|
+
],
|
|
667
|
+
"vue/no-sparse-arrays": "error",
|
|
668
|
+
"vue/no-useless-concat": "error",
|
|
669
|
+
"vue/object-curly-spacing": [
|
|
670
|
+
"error",
|
|
671
|
+
"always"
|
|
672
|
+
],
|
|
673
|
+
"vue/prefer-template": "error",
|
|
674
|
+
"vue/space-unary-ops": "error",
|
|
650
675
|
"vue/valid-v-slot": [
|
|
651
676
|
"error",
|
|
652
677
|
{ allowModifiers: options.vuetify }
|
package/package.json
CHANGED
|
@@ -15,24 +15,23 @@
|
|
|
15
15
|
],
|
|
16
16
|
"description": "ESLint configuration for IQRF projects",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@eslint/compat": "^1.
|
|
19
|
-
"@eslint/js": "^9.
|
|
18
|
+
"@eslint/compat": "^1.2.0",
|
|
19
|
+
"@eslint/js": "^9.12.0",
|
|
20
20
|
"@intlify/eslint-plugin-vue-i18n": "^3.0.0",
|
|
21
|
-
"@stylistic/eslint-plugin": "^2.
|
|
22
|
-
"@typescript-eslint/parser": "^8.
|
|
23
|
-
"@vitest/eslint-plugin": "^1.1.
|
|
21
|
+
"@stylistic/eslint-plugin": "^2.9.0",
|
|
22
|
+
"@typescript-eslint/parser": "^8.8.0",
|
|
23
|
+
"@vitest/eslint-plugin": "^1.1.6",
|
|
24
24
|
"eslint-config-flat-gitignore": "^0.3.0",
|
|
25
25
|
"eslint-import-resolver-typescript": "^3.6.3",
|
|
26
26
|
"eslint-plugin-cypress": "^3.5.0",
|
|
27
|
-
"eslint-plugin-deprecation": "^3.0.0",
|
|
28
27
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
29
|
-
"eslint-plugin-import-x": "^4.3.
|
|
30
|
-
"eslint-plugin-jsdoc": "^50.3.
|
|
28
|
+
"eslint-plugin-import-x": "^4.3.1",
|
|
29
|
+
"eslint-plugin-jsdoc": "^50.3.1",
|
|
31
30
|
"eslint-plugin-jsonc": "^2.16.0",
|
|
32
31
|
"eslint-plugin-markdown": "^5.1.0",
|
|
33
32
|
"eslint-plugin-math": "^0.6.0",
|
|
34
33
|
"eslint-plugin-n": "^17.10.3",
|
|
35
|
-
"eslint-plugin-perfectionist": "^3.
|
|
34
|
+
"eslint-plugin-perfectionist": "^3.8.0",
|
|
36
35
|
"eslint-plugin-pinia": "^0.4.1",
|
|
37
36
|
"eslint-plugin-promise": "^7.1.0",
|
|
38
37
|
"eslint-plugin-regexp": "^2.6.0",
|
|
@@ -40,10 +39,10 @@
|
|
|
40
39
|
"eslint-plugin-vue": "^9.28.0",
|
|
41
40
|
"eslint-plugin-vue-scoped-css": "^2.8.1",
|
|
42
41
|
"eslint-plugin-vuetify": "^2.4.0",
|
|
43
|
-
"globals": "^15.
|
|
42
|
+
"globals": "^15.10.0",
|
|
44
43
|
"jsonc-eslint-parser": "^2.4.0",
|
|
45
44
|
"local-pkg": "^0.5.0",
|
|
46
|
-
"typescript-eslint": "^8.
|
|
45
|
+
"typescript-eslint": "^8.8.0",
|
|
47
46
|
"vue-eslint-parser": "^9.4.3"
|
|
48
47
|
},
|
|
49
48
|
"devDependencies": {
|
|
@@ -52,7 +51,7 @@
|
|
|
52
51
|
"@types/eslint__js": "^8.42.3",
|
|
53
52
|
"@types/node": "^22.7.4",
|
|
54
53
|
"bumpp": "^9.6.1",
|
|
55
|
-
"eslint": "^9.
|
|
54
|
+
"eslint": "^9.12.0",
|
|
56
55
|
"eslint-plugin-eslint-plugin": "^6.2.0",
|
|
57
56
|
"tsup": "^8.3.0",
|
|
58
57
|
"tsx": "^4.19.1",
|
|
@@ -86,7 +85,7 @@
|
|
|
86
85
|
},
|
|
87
86
|
"type": "module",
|
|
88
87
|
"types": "dist/index.d.ts",
|
|
89
|
-
"version": "0.1
|
|
88
|
+
"version": "0.2.1",
|
|
90
89
|
"scripts": {
|
|
91
90
|
"build": "tsup",
|
|
92
91
|
"lint": "eslint .",
|