eslint-config-fabulator 7.0.4 → 7.1.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/CHANGELOG.md +35 -0
- package/index.js +20 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,41 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
All notable changes to this project will be documented in this file.
|
|
3
3
|
|
|
4
|
+
## v7.1.0 (2026-12-01)
|
|
5
|
+
### Changed
|
|
6
|
+
- [5a1a0fd](https://github.com/fabulator/eslint-config-fabulator/commit/5a1a0fd0485dd565560b3085f8e8a7100d4d0714) Relax eqeqeq, nullish coalescing, process exit and boundary types rules (#254)
|
|
7
|
+
|
|
8
|
+
* Changed: Relax eqeqeq, nullish coalescing, process exit and boundary types rules
|
|
9
|
+
|
|
10
|
+
- eqeqeq ignores comparisons with null (`== null` checks null and undefined)
|
|
11
|
+
- disable @typescript-eslint/prefer-nullish-coalescing
|
|
12
|
+
- disable unicorn/no-process-exit (servers exit on shutdown signals)
|
|
13
|
+
- disable @typescript-eslint/explicit-module-boundary-types
|
|
14
|
+
- disable no-unsafe-argument and no-unsafe-assignment in test files (expect matchers return any)
|
|
15
|
+
|
|
16
|
+
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
|
17
|
+
|
|
18
|
+
* Changed: Use smart mode for eqeqeq
|
|
19
|
+
|
|
20
|
+
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
|
21
|
+
|
|
22
|
+
---------
|
|
23
|
+
|
|
24
|
+
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
|
|
25
|
+
|
|
26
|
+
## v7.0.5 (2026-11-30)
|
|
27
|
+
### Fixed
|
|
28
|
+
- [26c9fa6](https://github.com/fabulator/eslint-config-fabulator/commit/26c9fa6781aa8449b906a1024260ab697b975448) Disable unicorn rules prefer-https and text-encoding-identifier-case (#253)
|
|
29
|
+
|
|
30
|
+
Autofix of prefer-https rewrites XML namespace URIs to https and breaks
|
|
31
|
+
output; text-encoding-identifier-case reports UTF-8 where it is correct
|
|
32
|
+
(XML, HTTP, HTML).
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
Claude-Session: https://claude.ai/code/session_01DQw8hyVyg6JjHvXph1RKBY
|
|
36
|
+
|
|
37
|
+
Co-authored-by: Claude <noreply@anthropic.com>
|
|
38
|
+
|
|
4
39
|
## v7.0.4 (2026-11-30)
|
|
5
40
|
### Fixed
|
|
6
41
|
- [cc00b39](https://github.com/fabulator/eslint-config-fabulator/commit/cc00b399a3254386461ed0d368b8c6ab8cc0643b) Disable unicorn rules (#252)
|
package/index.js
CHANGED
|
@@ -122,6 +122,14 @@ const config = defineConfig([
|
|
|
122
122
|
'unicorn/no-return-array-push': 'off',
|
|
123
123
|
'unicorn/require-array-sort-compare': 'off',
|
|
124
124
|
'unicorn/no-negated-array-predicate': 'off',
|
|
125
|
+
// Servers and workers legitimately exit on shutdown signals or fatal startup errors.
|
|
126
|
+
'unicorn/no-process-exit': 'off',
|
|
127
|
+
// `http://` URIs are often identifiers, not links (XML namespaces, schema URIs) – the autofix
|
|
128
|
+
// rewrites them to `https://` and breaks the output.
|
|
129
|
+
'unicorn/prefer-https': 'off',
|
|
130
|
+
// Targets Node `Buffer`/`fs` APIs but also reports `UTF-8` passed to XML, HTTP or HTML,
|
|
131
|
+
// where `UTF-8` is the correct name.
|
|
132
|
+
'unicorn/text-encoding-identifier-case': 'off',
|
|
125
133
|
},
|
|
126
134
|
},
|
|
127
135
|
{
|
|
@@ -130,7 +138,8 @@ const config = defineConfig([
|
|
|
130
138
|
'no-irregular-whitespace': 'off',
|
|
131
139
|
'no-console': 'error',
|
|
132
140
|
'no-unused-vars': ['error', UNUSED_VARS_OPTIONS],
|
|
133
|
-
|
|
141
|
+
// `smart` allows `== null` (checks both `null` and `undefined`), `typeof` and literal comparisons.
|
|
142
|
+
eqeqeq: ['error', 'smart'],
|
|
134
143
|
'no-nested-ternary': 'error',
|
|
135
144
|
'no-param-reassign': 'error',
|
|
136
145
|
'object-shorthand': 'error',
|
|
@@ -256,12 +265,20 @@ const config = defineConfig([
|
|
|
256
265
|
'@typescript-eslint/prefer-optional-chain': 'error',
|
|
257
266
|
'@typescript-eslint/consistent-type-exports': 'error',
|
|
258
267
|
'@typescript-eslint/consistent-type-imports': 'error',
|
|
259
|
-
//
|
|
260
|
-
'@typescript-eslint/
|
|
268
|
+
// `||` fallbacks for falsy values (`''`, `0`) are often intended; `??` is not always the safer choice.
|
|
269
|
+
'@typescript-eslint/prefer-nullish-coalescing': 'off',
|
|
261
270
|
'@typescript-eslint/no-import-type-side-effects': 'error',
|
|
262
271
|
'@typescript-eslint/switch-exhaustiveness-check': 'error',
|
|
263
272
|
},
|
|
264
273
|
},
|
|
274
|
+
{
|
|
275
|
+
// `expect.any()`, `expect.objectContaining()` and similar matchers return `any`.
|
|
276
|
+
files: TEST_FILES,
|
|
277
|
+
rules: {
|
|
278
|
+
'@typescript-eslint/no-unsafe-argument': 'off',
|
|
279
|
+
'@typescript-eslint/no-unsafe-assignment': 'off',
|
|
280
|
+
},
|
|
281
|
+
},
|
|
265
282
|
{
|
|
266
283
|
languageOptions: {
|
|
267
284
|
globals: { ...globals.browser, ...globals.node },
|