eslint-config-fabulator 7.0.5 → 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.
Files changed (3) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/index.js +14 -3
  3. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,6 +1,28 @@
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
+
4
26
  ## v7.0.5 (2026-11-30)
5
27
  ### Fixed
6
28
  - [26c9fa6](https://github.com/fabulator/eslint-config-fabulator/commit/26c9fa6781aa8449b906a1024260ab697b975448) Disable unicorn rules prefer-https and text-encoding-identifier-case (#253)
package/index.js CHANGED
@@ -122,6 +122,8 @@ 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',
125
127
  // `http://` URIs are often identifiers, not links (XML namespaces, schema URIs) – the autofix
126
128
  // rewrites them to `https://` and breaks the output.
127
129
  'unicorn/prefer-https': 'off',
@@ -136,7 +138,8 @@ const config = defineConfig([
136
138
  'no-irregular-whitespace': 'off',
137
139
  'no-console': 'error',
138
140
  'no-unused-vars': ['error', UNUSED_VARS_OPTIONS],
139
- eqeqeq: ['error', 'always'],
141
+ // `smart` allows `== null` (checks both `null` and `undefined`), `typeof` and literal comparisons.
142
+ eqeqeq: ['error', 'smart'],
140
143
  'no-nested-ternary': 'error',
141
144
  'no-param-reassign': 'error',
142
145
  'object-shorthand': 'error',
@@ -262,12 +265,20 @@ const config = defineConfig([
262
265
  '@typescript-eslint/prefer-optional-chain': 'error',
263
266
  '@typescript-eslint/consistent-type-exports': 'error',
264
267
  '@typescript-eslint/consistent-type-imports': 'error',
265
- // Explicit signatures let readers (and AI agents) understand a module without its implementation.
266
- '@typescript-eslint/explicit-module-boundary-types': 'error',
268
+ // `||` fallbacks for falsy values (`''`, `0`) are often intended; `??` is not always the safer choice.
269
+ '@typescript-eslint/prefer-nullish-coalescing': 'off',
267
270
  '@typescript-eslint/no-import-type-side-effects': 'error',
268
271
  '@typescript-eslint/switch-exhaustiveness-check': 'error',
269
272
  },
270
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
+ },
271
282
  {
272
283
  languageOptions: {
273
284
  globals: { ...globals.browser, ...globals.node },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-fabulator",
3
- "version": "7.0.5",
3
+ "version": "7.1.0",
4
4
  "description": "Shared ESLint config for fabulator projects",
5
5
  "type": "module",
6
6
  "keywords": [