@radham/eslint-config 4.0.0 → 5.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,24 @@ 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
+ [5.0.0] - 2025-09-26
10
+ --------------------
11
+
12
+ ### Added
13
+
14
+ - The [no-only-tests](https://github.com/levibuzolic/eslint-plugin-no-only-tests) plugin and corresponding rule.
15
+
16
+ ### Changed
17
+
18
+ - Simplified the installation process by moving most of the peer dependencies to dependencies.
19
+
20
+ [4.0.1] - 2025-09-15
21
+ --------------------
22
+
23
+ ### Fixed
24
+
25
+ - Update `eslint` peer dependency to compatible version.
26
+
9
27
  [4.0.0] - 2025-09-15
10
28
  --------------------
11
29
 
@@ -49,6 +67,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
49
67
 
50
68
  - Initial release.
51
69
 
70
+ [5.0.0]: https://github.com/jbenner-radham/eslint-config/compare/v4.0.1...v5.0.0
71
+ [4.0.1]: https://github.com/jbenner-radham/eslint-config/compare/v4.0.0...v4.0.1
52
72
  [4.0.0]: https://github.com/jbenner-radham/eslint-config/compare/v3.0.0...v4.0.0
53
73
  [3.0.0]: https://github.com/jbenner-radham/eslint-config/compare/v2.0.0...v3.0.0
54
74
  [2.0.0]: https://github.com/jbenner-radham/eslint-config/compare/v1.0.1...v2.0.0
package/README.md CHANGED
@@ -7,7 +7,7 @@ Install
7
7
  -------
8
8
 
9
9
  ```shell
10
- npm install --save-dev @radham/eslint-config @eslint/js @stylistic/eslint-plugin eslint-plugin-sort typescript-eslint
10
+ npm install --save-dev @radham/eslint-config
11
11
  ```
12
12
 
13
13
  Usage
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@radham/eslint-config",
3
- "version": "4.0.0",
3
+ "version": "5.0.0",
4
4
  "description": "A shareable ESLint config with Stylistic.",
5
5
  "keywords": [
6
6
  "eslint",
@@ -17,22 +17,25 @@
17
17
  "src",
18
18
  "CHANGELOG.md"
19
19
  ],
20
- "devDependencies": {
21
- "@eslint/js": "^9.34.0",
22
- "@eslint/markdown": "^7.2.0",
23
- "@stylistic/eslint-plugin": "^5.2.3",
24
- "eslint": "^9.34.0",
20
+ "dependencies": {
21
+ "@eslint/compat": "^1.4.0",
22
+ "@eslint/js": "^9.36.0",
23
+ "@stylistic/eslint-plugin": "^5.4.0",
24
+ "eslint-plugin-no-only-tests": "^3.3.0",
25
25
  "eslint-plugin-sort": "^4.0.0",
26
- "globals": "^16.3.0",
26
+ "typescript-eslint": "^8.44.1"
27
+ },
28
+ "devDependencies": {
29
+ "@eslint/markdown": "^7.3.0",
30
+ "eslint": "^9.36.0",
31
+ "globals": "^16.4.0",
32
+ "husky": "^9.1.7",
33
+ "lint-staged": "^16.2.1",
27
34
  "np": "^10.2.0",
28
- "typescript-eslint": "^8.40.0"
35
+ "sort-package-json": "^3.4.0"
29
36
  },
30
37
  "peerDependencies": {
31
- "@eslint/js": ">=9",
32
- "@stylistic/eslint-plugin": ">=5",
33
- "eslint": ">=9",
34
- "eslint-plugin-sort": ">=4",
35
- "typescript-eslint": ">=8"
38
+ "eslint": ">=9.35.0"
36
39
  },
37
40
  "scripts": {
38
41
  "np": "np --no-2fa --no-tests",
package/src/index.js CHANGED
@@ -1,6 +1,8 @@
1
+ import { fixupPluginRules } from '@eslint/compat';
1
2
  import js from '@eslint/js';
2
3
  import stylistic from '@stylistic/eslint-plugin';
3
4
  import { defineConfig } from 'eslint/config';
5
+ import noOnlyTests from 'eslint-plugin-no-only-tests';
4
6
  import sort from 'eslint-plugin-sort';
5
7
  import tseslint from 'typescript-eslint';
6
8
 
@@ -8,7 +10,7 @@ export default defineConfig([
8
10
  sort.configs['flat/recommended'],
9
11
  tseslint.configs.recommended,
10
12
  {
11
- plugins: { '@stylistic': stylistic, js },
13
+ plugins: { '@stylistic': stylistic, 'no-only-tests': fixupPluginRules(noOnlyTests), js },
12
14
  extends: ['js/recommended'],
13
15
  rules: {
14
16
  '@stylistic/arrow-parens': ['error', 'as-needed'],
@@ -82,6 +84,7 @@ export default defineConfig([
82
84
  caughtErrorsIgnorePattern: '^_',
83
85
  destructuredArrayIgnorePattern: '^_'
84
86
  }],
87
+ 'no-only-tests/no-only-tests': 'error',
85
88
  'sort/destructuring-properties': 'off',
86
89
  'sort/exports': [
87
90
  'error',