@html-validate/eslint-config 9.6.1 → 9.6.3
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/cli.mjs +1 -1
- package/dist/cli.mjs.map +1 -1
- package/index.mjs +1 -0
- package/package.json +2 -2
- package/template/eslint.config.mjs.njk +4 -0
package/index.mjs
CHANGED
|
@@ -305,6 +305,7 @@ export default [
|
|
|
305
305
|
"sonarjs/prefer-regexp-exec": "off", // prefer @typescript-eslint/prefer-regexp-exec
|
|
306
306
|
"sonarjs/prefer-single-boolean-return": "off", // prefer to use multiple returns even for booleans (looks better and can yield performance increase
|
|
307
307
|
"sonarjs/redundant-type-aliases": "off", // "redundant" type aliases helps with self-documenting code
|
|
308
|
+
"sonarjs/super-linear-regex": "off", // covered by regexp/no-super-linear-backtracking
|
|
308
309
|
"sonarjs/todo-tag": "off", // want to be able to leave todo tasks
|
|
309
310
|
"sonarjs/unused-import": "off", // already covered by @typescript-eslint/no-unused-vars
|
|
310
311
|
"sonarjs/unused-named-groups": "off", // named groups can help readability even if not used
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@html-validate/eslint-config",
|
|
3
|
-
"version": "9.6.
|
|
3
|
+
"version": "9.6.3",
|
|
4
4
|
"description": "Eslint sharable config used by the various HTML-validate packages",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint"
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"publishConfig": {
|
|
66
66
|
"access": "public"
|
|
67
67
|
},
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "84d2a32e02d756e8e0372da9119ef3d336bcb771"
|
|
69
69
|
}
|
|
@@ -24,6 +24,7 @@ import vitestConfig from "@html-validate/eslint-config-vitest";
|
|
|
24
24
|
import vueConfig from "@html-validate/eslint-config-vue";
|
|
25
25
|
{% endif %}
|
|
26
26
|
|
|
27
|
+
{% if typescript or typeinfo or vue or jest or vitest or cypress %}
|
|
27
28
|
export default [
|
|
28
29
|
...defaultConfig,
|
|
29
30
|
{% if typescript %}
|
|
@@ -84,3 +85,6 @@ export default [
|
|
|
84
85
|
},
|
|
85
86
|
{% endif %}
|
|
86
87
|
];
|
|
88
|
+
{% else %}
|
|
89
|
+
export default defaultConfig;
|
|
90
|
+
{% endif %}
|