@iqrf/eslint-config 0.2.8 → 0.2.10
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 +57 -8
- package/package.json +20 -20
package/dist/index.js
CHANGED
|
@@ -130,13 +130,16 @@ var javascript = (options) => [
|
|
|
130
130
|
window: "readonly"
|
|
131
131
|
},
|
|
132
132
|
parserOptions: {
|
|
133
|
+
ecmaVersion: 2022,
|
|
133
134
|
sourceType: "module"
|
|
134
135
|
},
|
|
135
136
|
sourceType: "module"
|
|
136
137
|
},
|
|
137
138
|
rules: {
|
|
138
139
|
...pluginEslint.configs.recommended.rules,
|
|
140
|
+
"array-callback-return": "error",
|
|
139
141
|
"comma-dangle": "off",
|
|
142
|
+
"default-case-last": "error",
|
|
140
143
|
"eqeqeq": [
|
|
141
144
|
"error",
|
|
142
145
|
"always"
|
|
@@ -152,9 +155,38 @@ var javascript = (options) => [
|
|
|
152
155
|
"error",
|
|
153
156
|
"unix"
|
|
154
157
|
],
|
|
155
|
-
"no-
|
|
158
|
+
"no-alert": "error",
|
|
159
|
+
"no-array-constructor": "error",
|
|
160
|
+
"no-caller": "error",
|
|
161
|
+
"no-console": [
|
|
162
|
+
"warn",
|
|
163
|
+
{ allow: ["warn", "error"] }
|
|
164
|
+
],
|
|
165
|
+
"no-eval": "error",
|
|
166
|
+
"no-extra-bind": "error",
|
|
167
|
+
"no-implied-eval": "error",
|
|
168
|
+
"no-invalid-regexp": "error",
|
|
169
|
+
"no-iterator": "error",
|
|
170
|
+
"no-lonely-if": "error",
|
|
171
|
+
"no-new": "error",
|
|
172
|
+
"no-new-func": "error",
|
|
173
|
+
"no-new-wrappers": "error",
|
|
174
|
+
"no-proto": "error",
|
|
175
|
+
"no-template-curly-in-string": "error",
|
|
176
|
+
"no-throw-literal": "error",
|
|
177
|
+
"no-unmodified-loop-condition": "error",
|
|
156
178
|
"no-unused-vars": options.typescript ? "off" : "warn",
|
|
179
|
+
"no-unreachable-loop": "error",
|
|
180
|
+
"no-useless-call": "error",
|
|
181
|
+
"no-useless-computed-key": "error",
|
|
182
|
+
"no-useless-concat": "error",
|
|
183
|
+
"no-useless-rename": "error",
|
|
184
|
+
"no-useless-return": "error",
|
|
185
|
+
"no-var": "error",
|
|
157
186
|
"prefer-const": "error",
|
|
187
|
+
"prefer-exponentiation-operator": "error",
|
|
188
|
+
"prefer-rest-params": "error",
|
|
189
|
+
"prefer-spread": "error",
|
|
158
190
|
"prefer-template": "error",
|
|
159
191
|
"quotes": [
|
|
160
192
|
"error",
|
|
@@ -163,6 +195,15 @@ var javascript = (options) => [
|
|
|
163
195
|
"semi": [
|
|
164
196
|
"error",
|
|
165
197
|
"always"
|
|
198
|
+
],
|
|
199
|
+
"unicode-bom": [
|
|
200
|
+
"error",
|
|
201
|
+
"never"
|
|
202
|
+
],
|
|
203
|
+
"vars-on-top": "warn",
|
|
204
|
+
"yoda": [
|
|
205
|
+
"error",
|
|
206
|
+
"never"
|
|
166
207
|
]
|
|
167
208
|
}
|
|
168
209
|
}
|
|
@@ -617,9 +658,14 @@ var vitest = [
|
|
|
617
658
|
},
|
|
618
659
|
rules: {
|
|
619
660
|
...pluginVitest.configs.recommended.rules,
|
|
661
|
+
"vitest/consistent-test-it": [
|
|
662
|
+
"error",
|
|
663
|
+
{ fn: "test" }
|
|
664
|
+
],
|
|
620
665
|
"vitest/no-alias-methods": "warn",
|
|
621
666
|
"vitest/no-duplicate-hooks": "warn",
|
|
622
667
|
"vitest/no-focused-tests": "warn",
|
|
668
|
+
"vitest/no-test-return-statement": "error",
|
|
623
669
|
"vitest/prefer-called-with": "warn",
|
|
624
670
|
"vitest/prefer-comparison-matcher": "warn",
|
|
625
671
|
"vitest/prefer-each": "warn",
|
|
@@ -630,11 +676,12 @@ var vitest = [
|
|
|
630
676
|
"vitest/prefer-hooks-on-top": "warn",
|
|
631
677
|
"vitest/prefer-mock-promise-shorthand": "warn",
|
|
632
678
|
"vitest/prefer-spy-on": "warn",
|
|
633
|
-
"vitest/prefer-
|
|
634
|
-
"vitest/prefer-to-be-truthy": "warn",
|
|
679
|
+
"vitest/prefer-strict-boolean-matchers": "warn",
|
|
635
680
|
"vitest/prefer-to-contain": "warn",
|
|
636
681
|
"vitest/prefer-to-have-length": "warn",
|
|
637
|
-
"vitest/require-
|
|
682
|
+
"vitest/require-mock-type-parameters": "error",
|
|
683
|
+
"vitest/require-to-throw-message": "warn",
|
|
684
|
+
"vitest/require-top-level-describe": "warn"
|
|
638
685
|
},
|
|
639
686
|
settings: {
|
|
640
687
|
vitest: {
|
|
@@ -668,15 +715,17 @@ var configs2 = getVueVersion() === 3 ? [
|
|
|
668
715
|
var vuetifyConfigs = [
|
|
669
716
|
...pluginVuetify.configs["flat/base"],
|
|
670
717
|
...pluginVuetify.configs["flat/recommended"]
|
|
671
|
-
]
|
|
718
|
+
].map((config) => {
|
|
719
|
+
if ("plugins" in config && config.plugins !== void 0 && "vue" in config.plugins) {
|
|
720
|
+
delete config.plugins.vue;
|
|
721
|
+
}
|
|
722
|
+
return config;
|
|
723
|
+
});
|
|
672
724
|
var vue = (options) => [
|
|
673
725
|
...configs2,
|
|
674
726
|
...options.vuetify ? vuetifyConfigs : [],
|
|
675
727
|
{
|
|
676
728
|
files: ["**/*.vue"],
|
|
677
|
-
plugins: {
|
|
678
|
-
vue: pluginVue
|
|
679
|
-
},
|
|
680
729
|
languageOptions: {
|
|
681
730
|
ecmaVersion: 2022,
|
|
682
731
|
parser: parserVue,
|
package/package.json
CHANGED
|
@@ -15,42 +15,42 @@
|
|
|
15
15
|
],
|
|
16
16
|
"description": "ESLint configuration for IQRF projects",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@eslint/js": "^9.
|
|
19
|
-
"@intlify/eslint-plugin-vue-i18n": "^
|
|
20
|
-
"@stylistic/eslint-plugin": "^4.
|
|
21
|
-
"@typescript-eslint/parser": "^8.
|
|
22
|
-
"@vitest/eslint-plugin": "^1.1.
|
|
18
|
+
"@eslint/js": "^9.22.0",
|
|
19
|
+
"@intlify/eslint-plugin-vue-i18n": "^4.0.0",
|
|
20
|
+
"@stylistic/eslint-plugin": "^4.2.0",
|
|
21
|
+
"@typescript-eslint/parser": "^8.26.1",
|
|
22
|
+
"@vitest/eslint-plugin": "^1.1.37",
|
|
23
23
|
"eslint-config-flat-gitignore": "^2.1.0",
|
|
24
|
-
"eslint-import-resolver-typescript": "^3.
|
|
25
|
-
"eslint-plugin-cypress": "^4.
|
|
24
|
+
"eslint-import-resolver-typescript": "^3.9.1",
|
|
25
|
+
"eslint-plugin-cypress": "^4.2.0",
|
|
26
26
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
27
|
-
"eslint-plugin-import-x": "^4.
|
|
28
|
-
"eslint-plugin-jsdoc": "^50.6.
|
|
27
|
+
"eslint-plugin-import-x": "^4.8.0",
|
|
28
|
+
"eslint-plugin-jsdoc": "^50.6.6",
|
|
29
29
|
"eslint-plugin-jsonc": "^2.19.1",
|
|
30
30
|
"eslint-plugin-markdown": "^5.1.0",
|
|
31
31
|
"eslint-plugin-math": "^0.6.0",
|
|
32
|
-
"eslint-plugin-n": "^17.
|
|
33
|
-
"eslint-plugin-perfectionist": "^4.
|
|
32
|
+
"eslint-plugin-n": "^17.16.2",
|
|
33
|
+
"eslint-plugin-perfectionist": "^4.10.1",
|
|
34
34
|
"eslint-plugin-pinia": "^0.4.1",
|
|
35
35
|
"eslint-plugin-promise": "^7.2.1",
|
|
36
36
|
"eslint-plugin-regexp": "^2.7.0",
|
|
37
37
|
"eslint-plugin-unicorn": "^57.0.0",
|
|
38
|
-
"eslint-plugin-vue": "^
|
|
38
|
+
"eslint-plugin-vue": "^10.0.0",
|
|
39
39
|
"eslint-plugin-vue-scoped-css": "^2.9.0",
|
|
40
40
|
"eslint-plugin-vuetify": "^2.5.1",
|
|
41
41
|
"globals": "^16.0.0",
|
|
42
|
-
"local-pkg": "^1.
|
|
43
|
-
"typescript-eslint": "^8.
|
|
44
|
-
"vue-eslint-parser": "^
|
|
42
|
+
"local-pkg": "^1.1.1",
|
|
43
|
+
"typescript-eslint": "^8.26.1",
|
|
44
|
+
"vue-eslint-parser": "^10.1.1"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@types/node": "^22.13.
|
|
48
|
-
"bumpp": "^10.0
|
|
49
|
-
"eslint": "^9.
|
|
47
|
+
"@types/node": "^22.13.10",
|
|
48
|
+
"bumpp": "^10.1.0",
|
|
49
|
+
"eslint": "^9.22.0",
|
|
50
50
|
"eslint-plugin-eslint-plugin": "^6.4.0",
|
|
51
51
|
"tsup": "^8.4.0",
|
|
52
52
|
"tsx": "^4.19.3",
|
|
53
|
-
"typescript": "^5.
|
|
53
|
+
"typescript": "^5.8.2"
|
|
54
54
|
},
|
|
55
55
|
"engines": {
|
|
56
56
|
"node": "^18.18.0 || >=20.0.0"
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
},
|
|
81
81
|
"type": "module",
|
|
82
82
|
"types": "dist/index.d.ts",
|
|
83
|
-
"version": "0.2.
|
|
83
|
+
"version": "0.2.10",
|
|
84
84
|
"scripts": {
|
|
85
85
|
"build": "tsup",
|
|
86
86
|
"lint": "eslint .",
|