@html-validate/eslint-config 9.4.2 → 9.4.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/dist/cli.mjs +1 -1
- package/dist/cli.mjs.map +1 -1
- package/index.mjs +9 -2
- package/package.json +2 -2
package/index.mjs
CHANGED
|
@@ -120,7 +120,14 @@ export default [
|
|
|
120
120
|
"unicorn/escape-case": "off", // typically not useful for this organisation
|
|
121
121
|
"unicorn/expiring-todo-comments": "off", // could be useful later
|
|
122
122
|
"unicorn/explicit-length-check": ["error", { "non-zero": "greater-than" }],
|
|
123
|
-
"unicorn/filename-case": [
|
|
123
|
+
"unicorn/filename-case": [
|
|
124
|
+
// enforce kebab-case in filenames
|
|
125
|
+
"error",
|
|
126
|
+
{
|
|
127
|
+
case: "kebabCase",
|
|
128
|
+
ignore: ["^__(fixtures|mocks|snapshots)__$", "^Gruntfile.js$"],
|
|
129
|
+
},
|
|
130
|
+
],
|
|
124
131
|
"unicorn/import-style": "off", // off for now
|
|
125
132
|
"unicorn/isolated-functions": "error",
|
|
126
133
|
"unicorn/new-for-builtins": "error",
|
|
@@ -168,7 +175,7 @@ export default [
|
|
|
168
175
|
"unicorn/no-static-only-class": "off",
|
|
169
176
|
"unicorn/no-thenable": "off",
|
|
170
177
|
"unicorn/no-this-assignment": "error",
|
|
171
|
-
"unicorn/no-this-outside-of-class": "
|
|
178
|
+
"unicorn/no-this-outside-of-class": "off", // disagree somewhat with the rule, flags stateful objects
|
|
172
179
|
"unicorn/no-typeof-undefined": "error",
|
|
173
180
|
"unicorn/no-unnecessary-array-flat-depth": "error",
|
|
174
181
|
"unicorn/no-unnecessary-array-splice-count": "error",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@html-validate/eslint-config",
|
|
3
|
-
"version": "9.4.
|
|
3
|
+
"version": "9.4.4",
|
|
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": "a1d27d3cb1b18fdcaa83e8a9ff915a30d0b09fe9"
|
|
69
69
|
}
|