@radham/eslint-config 8.1.0 → 10.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 +24 -0
- package/package.json +17 -8
- package/src/index.js +31 -1
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
|
+
[10.0.0] - 2025-11-14
|
|
10
|
+
---------------------
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- Added `args` and `pkg` to the allow list of the `unicorn/prevent-abbreviations` rule.
|
|
15
|
+
|
|
16
|
+
[9.0.0] - 2025-11-06
|
|
17
|
+
--------------------
|
|
18
|
+
|
|
19
|
+
### Added
|
|
20
|
+
|
|
21
|
+
- The `eslint-plugin-unicorn` package with the `unopinionated` ruleset and some additional custom
|
|
22
|
+
configuration.
|
|
23
|
+
|
|
24
|
+
### Changed
|
|
25
|
+
|
|
26
|
+
- Upgraded the `@eslint/compat` dependency from `1.4.0` to `1.4.1`.
|
|
27
|
+
- Upgraded the `@eslint/js` dependency from `9.38.0` to `9.39.1`.
|
|
28
|
+
- Upgraded the `@eslint/markdown` dependency from `7.5.0` to `7.5.1`.
|
|
29
|
+
- Upgraded the `typescript-eslint` dependency from `8.46.2` to `8.46.3`.
|
|
30
|
+
|
|
9
31
|
[8.1.0] - 2025-10-24
|
|
10
32
|
--------------------
|
|
11
33
|
|
|
@@ -105,6 +127,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
105
127
|
|
|
106
128
|
- Initial release.
|
|
107
129
|
|
|
130
|
+
[10.0.0]: https://github.com/jbenner-radham/eslint-config/compare/v9.0.0...v10.0.0
|
|
131
|
+
[9.0.0]: https://github.com/jbenner-radham/eslint-config/compare/v8.1.0...v9.0.0
|
|
108
132
|
[8.1.0]: https://github.com/jbenner-radham/eslint-config/compare/v8.0.0...v8.1.0
|
|
109
133
|
[8.0.0]: https://github.com/jbenner-radham/eslint-config/compare/v7.0.0...v8.0.0
|
|
110
134
|
[7.0.0]: https://github.com/jbenner-radham/eslint-config/compare/v6.0.0...v7.0.0
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@radham/eslint-config",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "10.0.0",
|
|
4
4
|
"description": "A shareable ESLint config with Stylistic.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -9,6 +9,14 @@
|
|
|
9
9
|
"stylistic",
|
|
10
10
|
"typescript"
|
|
11
11
|
],
|
|
12
|
+
"homepage": "https://github.com/jbenner-radham/eslint-config#readme",
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/jbenner-radham/eslint-config/issues"
|
|
15
|
+
},
|
|
16
|
+
"repository": {
|
|
17
|
+
"type": "git",
|
|
18
|
+
"url": "git+https://github.com/jbenner-radham/eslint-config.git"
|
|
19
|
+
},
|
|
12
20
|
"license": "BSD-3-Clause",
|
|
13
21
|
"author": "James Benner <hello@jamesbenner.com> (https://www.jamesbenner.com/)",
|
|
14
22
|
"type": "module",
|
|
@@ -18,18 +26,19 @@
|
|
|
18
26
|
"CHANGELOG.md"
|
|
19
27
|
],
|
|
20
28
|
"dependencies": {
|
|
21
|
-
"@eslint/compat": "^1.4.
|
|
22
|
-
"@eslint/js": "^9.
|
|
23
|
-
"@eslint/markdown": "^7.5.
|
|
29
|
+
"@eslint/compat": "^1.4.1",
|
|
30
|
+
"@eslint/js": "^9.39.1",
|
|
31
|
+
"@eslint/markdown": "^7.5.1",
|
|
24
32
|
"@stylistic/eslint-plugin": "^5.5.0",
|
|
25
33
|
"eslint-plugin-no-only-tests": "^3.3.0",
|
|
26
34
|
"eslint-plugin-sort": "^4.0.0",
|
|
27
|
-
"
|
|
35
|
+
"eslint-plugin-unicorn": "^62.0.0",
|
|
36
|
+
"typescript-eslint": "^8.46.3"
|
|
28
37
|
},
|
|
29
38
|
"devDependencies": {
|
|
30
|
-
"@eslint/json": "^0.
|
|
31
|
-
"eslint": "^9.
|
|
32
|
-
"globals": "^16.
|
|
39
|
+
"@eslint/json": "^0.14.0",
|
|
40
|
+
"eslint": "^9.39.1",
|
|
41
|
+
"globals": "^16.5.0",
|
|
33
42
|
"husky": "^9.1.7",
|
|
34
43
|
"lint-staged": "^16.2.6",
|
|
35
44
|
"np": "^10.2.0",
|
package/src/index.js
CHANGED
|
@@ -4,13 +4,19 @@ import stylistic from '@stylistic/eslint-plugin';
|
|
|
4
4
|
import { defineConfig } from 'eslint/config';
|
|
5
5
|
import noOnlyTests from 'eslint-plugin-no-only-tests';
|
|
6
6
|
import sort from 'eslint-plugin-sort';
|
|
7
|
+
import unicorn from 'eslint-plugin-unicorn';
|
|
7
8
|
import tseslint from 'typescript-eslint';
|
|
8
9
|
|
|
9
10
|
export default defineConfig([
|
|
10
11
|
sort.configs['flat/recommended'],
|
|
11
12
|
tseslint.configs.recommended,
|
|
13
|
+
unicorn.configs.unopinionated,
|
|
12
14
|
{
|
|
13
|
-
plugins: {
|
|
15
|
+
plugins: {
|
|
16
|
+
'@stylistic': stylistic,
|
|
17
|
+
'no-only-tests': fixupPluginRules(noOnlyTests),
|
|
18
|
+
js
|
|
19
|
+
},
|
|
14
20
|
extends: ['js/recommended'],
|
|
15
21
|
rules: {
|
|
16
22
|
'@stylistic/arrow-parens': ['error', 'as-needed'],
|
|
@@ -108,8 +114,32 @@ export default defineConfig([
|
|
|
108
114
|
],
|
|
109
115
|
'sort/import-members': ['error', { caseSensitive: false, natural: true }],
|
|
110
116
|
'sort/object-properties': 'off',
|
|
117
|
+
'unicorn/better-regex': ['error', { sortCharacterClasses: true }],
|
|
118
|
+
'unicorn/catch-error-name': 'error',
|
|
119
|
+
'unicorn/consistent-destructuring': 'error',
|
|
120
|
+
'unicorn/consistent-empty-array-spread': 'error',
|
|
121
|
+
'unicorn/custom-error-definition': 'error',
|
|
122
|
+
'unicorn/empty-brace-spaces': 'error',
|
|
123
|
+
'unicorn/expiring-todo-comments': 'off',
|
|
124
|
+
'unicorn/filename-case': ['error', {
|
|
125
|
+
cases: { kebabCase: true, pascalCase: true }
|
|
126
|
+
}],
|
|
127
|
+
'unicorn/no-await-expression-member': 'error',
|
|
128
|
+
'unicorn/no-for-loop': 'error',
|
|
129
|
+
'unicorn/no-nested-ternary': 'error',
|
|
130
|
+
'unicorn/no-static-only-class': 'off',
|
|
131
|
+
'unicorn/no-useless-length-check': 'off',
|
|
132
|
+
'unicorn/prefer-set-has': 'off',
|
|
133
|
+
'unicorn/prefer-set-size': 'off',
|
|
134
|
+
'unicorn/prevent-abbreviations': ['error', {
|
|
135
|
+
allowList: {
|
|
136
|
+
args: true, // `arguments` is a reserved word.
|
|
137
|
+
pkg: true // `package` is a reserved word.
|
|
138
|
+
}
|
|
139
|
+
}],
|
|
111
140
|
camelcase: 'error',
|
|
112
141
|
eqeqeq: ['error', 'smart'],
|
|
142
|
+
'no-nested-ternary': 'off',
|
|
113
143
|
'no-unused-vars': 'off',
|
|
114
144
|
'no-var': 'error',
|
|
115
145
|
'prefer-const': ['error', { destructuring: 'any', ignoreReadBeforeAssign: false }],
|