@html-validate/eslint-config 9.7.2 → 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/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
- if (rule.startsWith("unicorn/")) {
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.7.2",
3
+ "version": "9.8.0",
4
4
  "description": "Eslint sharable config used by the various HTML-validate packages",
5
5
  "keywords": [
6
6
  "eslint"
@@ -50,7 +50,7 @@
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": "67.0.0",
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": "858198736052d3de0419d744f9d60c146c538122"
68
+ "gitHead": "447d55f866648691bee03a596f0e3147f7c4aa86"
69
69
  }