@radham/eslint-config 2.0.0 → 4.0.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 CHANGED
@@ -6,6 +6,20 @@ All notable changes to this project will be documented in this file.
6
6
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
7
7
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
8
8
 
9
+ [4.0.0] - 2025-09-15
10
+ --------------------
11
+
12
+ ### Added
13
+
14
+ - Add `preserve-caught-error` rule.
15
+
16
+ [3.0.0] - 2025-09-08
17
+ --------------------
18
+
19
+ ### Changed
20
+
21
+ - Set an override on the `@stylistic/operator-linebreak` rule for the `|` operator to `'before'`.
22
+
9
23
  [2.0.0] - 2025-08-25
10
24
  --------------------
11
25
 
@@ -35,6 +49,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
35
49
 
36
50
  - Initial release.
37
51
 
52
+ [4.0.0]: https://github.com/jbenner-radham/eslint-config/compare/v3.0.0...v4.0.0
53
+ [3.0.0]: https://github.com/jbenner-radham/eslint-config/compare/v2.0.0...v3.0.0
38
54
  [2.0.0]: https://github.com/jbenner-radham/eslint-config/compare/v1.0.1...v2.0.0
39
55
  [1.0.1]: https://github.com/jbenner-radham/eslint-config/compare/v1.0.0...v1.0.1
40
56
  [1.0.0]: https://github.com/jbenner-radham/eslint-config/releases/tag/v1.0.0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@radham/eslint-config",
3
- "version": "2.0.0",
3
+ "version": "4.0.0",
4
4
  "description": "A shareable ESLint config with Stylistic.",
5
5
  "keywords": [
6
6
  "eslint",
package/src/index.js CHANGED
@@ -46,7 +46,7 @@ export default defineConfig([
46
46
  '@stylistic/object-curly-spacing': ['error', 'always'],
47
47
  '@stylistic/object-property-newline': ['error', { allowAllPropertiesOnSameLine: true }],
48
48
  '@stylistic/operator-linebreak': ['error', 'after', {
49
- overrides: { '?': 'before', ':': 'before' }
49
+ overrides: { '?': 'before', ':': 'before', '|': 'before' }
50
50
  }],
51
51
  '@stylistic/padded-blocks': ['error', 'never'],
52
52
  '@stylistic/padding-line-between-statements': [
@@ -98,7 +98,8 @@ export default defineConfig([
98
98
  eqeqeq: ['error', 'smart'],
99
99
  'no-unused-vars': 'off',
100
100
  'no-var': 'error',
101
- 'prefer-const': ['error', { destructuring: 'any', ignoreReadBeforeAssign: false }]
101
+ 'prefer-const': ['error', { destructuring: 'any', ignoreReadBeforeAssign: false }],
102
+ 'preserve-caught-error': 'error'
102
103
  }
103
104
  }
104
105
  ]);