@html-validate/eslint-config 9.7.1 → 9.8.0
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 +3 -3
- package/dist/cli.mjs.map +1 -1
- package/index.mjs +2 -5
- package/package.json +4 -4
package/index.mjs
CHANGED
|
@@ -101,10 +101,7 @@ export default function defaultConfig(options) {
|
|
|
101
101
|
if (rule.startsWith("standard/")) {
|
|
102
102
|
return false;
|
|
103
103
|
}
|
|
104
|
-
|
|
105
|
-
return false;
|
|
106
|
-
}
|
|
107
|
-
return true;
|
|
104
|
+
return !rule.startsWith("unicorn/");
|
|
108
105
|
}),
|
|
109
106
|
...eslintPluginPrettier.configs.recommended.rules,
|
|
110
107
|
...importX.flatConfigs.errors.rules,
|
|
@@ -147,6 +144,7 @@ export default function defaultConfig(options) {
|
|
|
147
144
|
],
|
|
148
145
|
"unicorn/prefer-minimal-ternary": "off", // situational, i dont think `foo[expr ? "x": "y"].bar` is more readable than `expr ? foo.x.bar : foo.y.bar`.
|
|
149
146
|
"unicorn/import-style": "off", // off for now
|
|
147
|
+
"unicorn/name-replacements": "off", // maybe later
|
|
150
148
|
"unicorn/no-abusive-eslint-disable": "off", // covered by eslint-plugin-eslint-comments
|
|
151
149
|
"unicorn/no-array-callback-reference": "off", // opinionated, prefer to allow passing function references to array methods (and for most part TypeScript will handle this)
|
|
152
150
|
"unicorn/no-array-reduce": "off", // allow usage of reduce()
|
|
@@ -196,7 +194,6 @@ export default function defaultConfig(options) {
|
|
|
196
194
|
"unicorn/prefer-spread": "off", // for now
|
|
197
195
|
"unicorn/prefer-string-raw": "off", // for now
|
|
198
196
|
"unicorn/prefer-ternary": "off",
|
|
199
|
-
"unicorn/prevent-abbreviations": "off",
|
|
200
197
|
"unicorn/relative-url-style": "warn",
|
|
201
198
|
"unicorn/require-css-escape": "off", // would be useful but we dont have CSS.escape()
|
|
202
199
|
"unicorn/require-module-attributes": "off",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@html-validate/eslint-config",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.8.0",
|
|
4
4
|
"description": "Eslint sharable config used by the various HTML-validate packages",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint"
|
|
@@ -44,13 +44,13 @@
|
|
|
44
44
|
"eslint-formatter-gitlab": "7.2.0",
|
|
45
45
|
"eslint-import-resolver-typescript": "4.4.5",
|
|
46
46
|
"eslint-plugin-array-func": "5.1.1",
|
|
47
|
-
"eslint-plugin-import-x": "4.
|
|
47
|
+
"eslint-plugin-import-x": "4.17.0",
|
|
48
48
|
"eslint-plugin-n": "18.1.0",
|
|
49
49
|
"eslint-plugin-prettier": "5.5.6",
|
|
50
50
|
"eslint-plugin-regexp": "3.1.0",
|
|
51
51
|
"eslint-plugin-security": "4.0.1",
|
|
52
52
|
"eslint-plugin-sonarjs": "4.1.0",
|
|
53
|
-
"eslint-plugin-unicorn": "
|
|
53
|
+
"eslint-plugin-unicorn": "68.0.0",
|
|
54
54
|
"find-up": "8.0.0",
|
|
55
55
|
"globals": "17.3.0",
|
|
56
56
|
"nunjucks": "3.2.4"
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"publishConfig": {
|
|
66
66
|
"access": "public"
|
|
67
67
|
},
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "447d55f866648691bee03a596f0e3147f7c4aa86"
|
|
69
69
|
}
|