@radham/eslint-config 1.0.0 → 2.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,28 @@ 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
+ [2.0.0] - 2025-08-25
10
+ --------------------
11
+
12
+ ### Added
13
+
14
+ - Set the `@typescript-eslint/no-unused-vars` options `argsIgnorePattern` and `destructuredArrayIgnorePattern` to `'^_'`.
15
+
16
+ ### Changed
17
+
18
+ - Update the `@typescript-eslint/no-unused-vars` option `caughtErrorsIgnorePattern` to `'^_'` from `'^_$'`.
19
+
20
+ [1.0.1] - 2025-08-25
21
+ --------------------
22
+
23
+ ### Changed
24
+
25
+ - Update the `@stylistic/quotes` option `allowTemplateLiterals` to a non-deprecated value.
26
+
27
+ ### Fixed
28
+
29
+ - Disable `no-unused-vars` so as not to conflict with `@typescript-eslint/no-unused-vars`.
30
+
9
31
  [1.0.0] - 2025-08-22
10
32
  --------------------
11
33
 
@@ -13,4 +35,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
13
35
 
14
36
  - Initial release.
15
37
 
38
+ [2.0.0]: https://github.com/jbenner-radham/eslint-config/compare/v1.0.1...v2.0.0
39
+ [1.0.1]: https://github.com/jbenner-radham/eslint-config/compare/v1.0.0...v1.0.1
16
40
  [1.0.0]: https://github.com/jbenner-radham/eslint-config/releases/tag/v1.0.0
package/README.md CHANGED
@@ -14,13 +14,15 @@ Usage
14
14
  -----
15
15
 
16
16
  ```javascript
17
- import { defineConfig } from 'eslint/config';
18
17
  import radham from '@radham/eslint-config';
18
+ import { defineConfig } from 'eslint/config';
19
+ import globals from 'globals';
19
20
 
20
21
  export default defineConfig([
21
22
  {
22
23
  files: ['**/*.ts'],
23
- extends: [radham]
24
+ extends: [radham],
25
+ languageOptions: { globals: globals.node /* or `globals.browser` */ }
24
26
  }
25
27
  ]);
26
28
  ```
@@ -28,4 +30,4 @@ export default defineConfig([
28
30
  License
29
31
  -------
30
32
 
31
- The BSD 3-Clause License (Revised). See the [license file](LICENSE) for details.
33
+ The BSD 3-Clause license. See the [license file](LICENSE) for details.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@radham/eslint-config",
3
- "version": "1.0.0",
3
+ "version": "2.0.0",
4
4
  "description": "A shareable ESLint config with Stylistic.",
5
5
  "keywords": [
6
6
  "eslint",
@@ -19,11 +19,12 @@
19
19
  ],
20
20
  "devDependencies": {
21
21
  "@eslint/js": "^9.34.0",
22
+ "@eslint/markdown": "^7.2.0",
22
23
  "@stylistic/eslint-plugin": "^5.2.3",
23
24
  "eslint": "^9.34.0",
24
25
  "eslint-plugin-sort": "^4.0.0",
26
+ "globals": "^16.3.0",
25
27
  "np": "^10.2.0",
26
- "prettier": "^3.6.2",
27
28
  "typescript-eslint": "^8.40.0"
28
29
  },
29
30
  "peerDependencies": {
package/src/index.js CHANGED
@@ -1,17 +1,15 @@
1
1
  import js from '@eslint/js';
2
- import sort from 'eslint-plugin-sort';
3
2
  import stylistic from '@stylistic/eslint-plugin';
4
- import tsEslint from 'typescript-eslint';
3
+ import { defineConfig } from 'eslint/config';
4
+ import sort from 'eslint-plugin-sort';
5
+ import tseslint from 'typescript-eslint';
5
6
 
6
- /** @type {import('eslint').Linter.Config[]} */
7
- const config = [
8
- js.configs.recommended,
7
+ export default defineConfig([
9
8
  sort.configs['flat/recommended'],
10
- ...tsEslint.configs.recommended,
9
+ tseslint.configs.recommended,
11
10
  {
12
- plugins: {
13
- '@stylistic': stylistic
14
- },
11
+ plugins: { '@stylistic': stylistic, js },
12
+ extends: ['js/recommended'],
15
13
  rules: {
16
14
  '@stylistic/arrow-parens': ['error', 'as-needed'],
17
15
  '@stylistic/arrow-spacing': ['error', { before: true, after: true }],
@@ -47,23 +45,16 @@ const config = [
47
45
  '@stylistic/no-whitespace-before-property': 'error',
48
46
  '@stylistic/object-curly-spacing': ['error', 'always'],
49
47
  '@stylistic/object-property-newline': ['error', { allowAllPropertiesOnSameLine: true }],
50
- '@stylistic/operator-linebreak': [
51
- 'error',
52
- 'after',
53
- {
54
- overrides: {
55
- '?': 'before',
56
- ':': 'before'
57
- }
58
- }
59
- ],
48
+ '@stylistic/operator-linebreak': ['error', 'after', {
49
+ overrides: { '?': 'before', ':': 'before' }
50
+ }],
60
51
  '@stylistic/padded-blocks': ['error', 'never'],
61
52
  '@stylistic/padding-line-between-statements': [
62
53
  'error',
63
54
  { blankLine: 'always', prev: '*', next: 'return' }
64
55
  ],
65
56
  '@stylistic/quote-props': ['error', 'as-needed'],
66
- '@stylistic/quotes': ['error', 'single', { allowTemplateLiterals: true }],
57
+ '@stylistic/quotes': ['error', 'single', { allowTemplateLiterals: 'always' }],
67
58
  '@stylistic/semi': ['error', 'always'],
68
59
  '@stylistic/semi-spacing': 'error',
69
60
  '@stylistic/semi-style': ['error', 'last'],
@@ -86,7 +77,11 @@ const config = [
86
77
  '@stylistic/type-generic-spacing': 'error',
87
78
  '@stylistic/type-named-tuple-spacing': 'error',
88
79
  '@stylistic/wrap-iife': ['error', 'inside'],
89
- '@typescript-eslint/no-unused-vars': ['error', { caughtErrorsIgnorePattern: '^_$' }],
80
+ '@typescript-eslint/no-unused-vars': ['error', {
81
+ argsIgnorePattern: '^_',
82
+ caughtErrorsIgnorePattern: '^_',
83
+ destructuredArrayIgnorePattern: '^_'
84
+ }],
90
85
  'sort/destructuring-properties': 'off',
91
86
  'sort/exports': [
92
87
  'error',
@@ -101,10 +96,9 @@ const config = [
101
96
  'sort/object-properties': 'off',
102
97
  camelcase: 'error',
103
98
  eqeqeq: ['error', 'smart'],
99
+ 'no-unused-vars': 'off',
104
100
  'no-var': 'error',
105
101
  'prefer-const': ['error', { destructuring: 'any', ignoreReadBeforeAssign: false }]
106
102
  }
107
103
  }
108
- ];
109
-
110
- export default config;
104
+ ]);