@darksheep/eslint 6.7.4 → 6.7.6
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 +23 -0
- package/package.json +13 -13
- package/src/configs/react.js +15 -0
- package/src/index.js +2 -0
- package/src/plugins/react.js +1 -1
- package/types/src/configs/react.d.ts +5 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [6.7.6](https://github.com/DarkSheepSoftware/eslint/compare/v6.7.5...v6.7.6) (2025-01-11)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### 🩹 Fixes
|
|
7
|
+
|
|
8
|
+
* Remove no-keyword-prefix in react ([#804](https://github.com/DarkSheepSoftware/eslint/issues/804)) ([4f20ead](https://github.com/DarkSheepSoftware/eslint/commit/4f20ead038d450ecac3e7d2ffeec47dbc9f876ae))
|
|
9
|
+
|
|
10
|
+
## [6.7.5](https://github.com/DarkSheepSoftware/eslint/compare/v6.7.4...v6.7.5) (2025-01-11)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### 🩹 Fixes
|
|
14
|
+
|
|
15
|
+
* changed jsx-no-bind rule from error to warn ([#803](https://github.com/DarkSheepSoftware/eslint/issues/803)) ([a3d044d](https://github.com/DarkSheepSoftware/eslint/commit/a3d044d8d6d0aeaf1b7e5beac9b392cdf1ab64cf))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### 📦 Dependencies
|
|
19
|
+
|
|
20
|
+
* **pkg:** update dependency eslint-plugin-package-json to v0.19.0 ([#796](https://github.com/DarkSheepSoftware/eslint/issues/796)) ([ac7dc84](https://github.com/DarkSheepSoftware/eslint/commit/ac7dc84dd9eeb8bcbae62b414aa901a78e6a2ab4))
|
|
21
|
+
* **pkg:** update dependency eslint-plugin-perfectionist to v4.6.0 ([#798](https://github.com/DarkSheepSoftware/eslint/issues/798)) ([3661f61](https://github.com/DarkSheepSoftware/eslint/commit/3661f61d3dd70725066975320d0f17b3a33616a3))
|
|
22
|
+
* **pkg:** update dependency eslint-plugin-react to v7.37.3 ([#793](https://github.com/DarkSheepSoftware/eslint/issues/793)) ([c761277](https://github.com/DarkSheepSoftware/eslint/commit/c761277cf4cfeb7206e2549119d2e2979c8fc721))
|
|
23
|
+
* **pkg:** update eslint monorepo to v9.18.0 ([#801](https://github.com/DarkSheepSoftware/eslint/issues/801)) ([60b2eac](https://github.com/DarkSheepSoftware/eslint/commit/60b2eac58e73eaf28c0cb2a77ed785c443a49dfa))
|
|
24
|
+
* **pkg:** update typescript-eslint monorepo to v8.19.1 ([#792](https://github.com/DarkSheepSoftware/eslint/issues/792)) ([4434a97](https://github.com/DarkSheepSoftware/eslint/commit/4434a97672a2bf87398f379682744fc2c49c0769))
|
|
25
|
+
|
|
3
26
|
## [6.7.4](https://github.com/DarkSheepSoftware/eslint/compare/v6.7.3...v6.7.4) (2024-12-21)
|
|
4
27
|
|
|
5
28
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@darksheep/eslint",
|
|
3
|
-
"version": "6.7.
|
|
3
|
+
"version": "6.7.6",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/DarkSheepSoftware/eslint"
|
|
@@ -24,18 +24,18 @@
|
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@darksheep/environment": "3.1.0",
|
|
26
26
|
"@eslint-community/eslint-plugin-eslint-comments": "4.4.1",
|
|
27
|
-
"@eslint/js": "9.
|
|
27
|
+
"@eslint/js": "9.18.0",
|
|
28
28
|
"@stylistic/eslint-plugin": "2.12.1",
|
|
29
|
-
"@typescript-eslint/eslint-plugin": "8.
|
|
30
|
-
"@typescript-eslint/parser": "8.
|
|
29
|
+
"@typescript-eslint/eslint-plugin": "8.19.1",
|
|
30
|
+
"@typescript-eslint/parser": "8.19.1",
|
|
31
31
|
"editorconfig": "2.0.0",
|
|
32
32
|
"eslint-plugin-jsdoc": "50.6.1",
|
|
33
33
|
"eslint-plugin-jsonc": "2.18.2",
|
|
34
34
|
"eslint-plugin-n": "17.15.1",
|
|
35
|
-
"eslint-plugin-package-json": "0.
|
|
36
|
-
"eslint-plugin-perfectionist": "4.
|
|
35
|
+
"eslint-plugin-package-json": "0.19.0",
|
|
36
|
+
"eslint-plugin-perfectionist": "4.6.0",
|
|
37
37
|
"eslint-plugin-promise": "7.2.1",
|
|
38
|
-
"eslint-plugin-react": "7.37.
|
|
38
|
+
"eslint-plugin-react": "7.37.3",
|
|
39
39
|
"eslint-plugin-regexp": "2.7.0",
|
|
40
40
|
"eslint-plugin-security": "3.0.1",
|
|
41
41
|
"eslint-plugin-unicorn": "56.0.1",
|
|
@@ -45,10 +45,10 @@
|
|
|
45
45
|
"yaml-eslint-parser": "1.2.3"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@darksheep/eslint-formatter-github": "2.0
|
|
48
|
+
"@darksheep/eslint-formatter-github": "2.1.0",
|
|
49
49
|
"@types/node": "~22.10.0",
|
|
50
|
-
"eslint": "~9.
|
|
51
|
-
"type-fest": "~4.
|
|
50
|
+
"eslint": "~9.18.0",
|
|
51
|
+
"type-fest": "~4.32.0",
|
|
52
52
|
"typescript": "~5.7.0"
|
|
53
53
|
},
|
|
54
54
|
"peerDependenciesMeta": {
|
|
@@ -59,12 +59,12 @@
|
|
|
59
59
|
"optional": true
|
|
60
60
|
}
|
|
61
61
|
},
|
|
62
|
-
"packageManager": "yarn@4.
|
|
62
|
+
"packageManager": "yarn@4.6.0",
|
|
63
63
|
"engines": {
|
|
64
64
|
"node": "^20 || ^22"
|
|
65
65
|
},
|
|
66
66
|
"volta": {
|
|
67
|
-
"node": "22.
|
|
68
|
-
"yarn": "4.
|
|
67
|
+
"node": "22.13.0",
|
|
68
|
+
"yarn": "4.6.0"
|
|
69
69
|
}
|
|
70
70
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Get basic ESLint style config.
|
|
3
|
+
* @returns {Promise<import('eslint').Linter.Config[]>}
|
|
4
|
+
*/
|
|
5
|
+
export async function createReactConfig() {
|
|
6
|
+
return [
|
|
7
|
+
{
|
|
8
|
+
name: 'custom/react',
|
|
9
|
+
files: [ '*.jsx', '*.tsx' ],
|
|
10
|
+
rules: {
|
|
11
|
+
'unicorn/no-keyword-prefix': 'off',
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
];
|
|
15
|
+
}
|
package/src/index.js
CHANGED
|
@@ -5,6 +5,7 @@ import { createEslintComplexityConfig } from './configs/eslint-complexity.js';
|
|
|
5
5
|
import { createEslintIgnoresConfig } from './configs/eslint-ignores.js';
|
|
6
6
|
import { createEslintRecommendsConfig } from './configs/eslint-recommended.js';
|
|
7
7
|
import { createStyleConfig } from './configs/eslint-style.js';
|
|
8
|
+
import { createReactConfig } from './configs/react.js';
|
|
8
9
|
import { createEslintCommentsConfig } from './plugins/eslint-comments.js';
|
|
9
10
|
import { createEslintJSDocConfig } from './plugins/jsdoc.js';
|
|
10
11
|
import { createEslintJsonConfig } from './plugins/json.js';
|
|
@@ -37,6 +38,7 @@ const configBuilders = [
|
|
|
37
38
|
createEslintPromiseConfig,
|
|
38
39
|
createEslintTypescriptConfig,
|
|
39
40
|
createEslintReactConfig,
|
|
41
|
+
createReactConfig,
|
|
40
42
|
createEslintSecurityConfig,
|
|
41
43
|
createEslintUnicornConfig,
|
|
42
44
|
createEslintRegexpConfig,
|
package/src/plugins/react.js
CHANGED
|
@@ -23,7 +23,7 @@ const rules = {
|
|
|
23
23
|
'react/jsx-handler-names': 'off',
|
|
24
24
|
'react/jsx-key': 'error',
|
|
25
25
|
'react/jsx-max-depth': 'off',
|
|
26
|
-
'react/jsx-no-bind': '
|
|
26
|
+
'react/jsx-no-bind': 'warn',
|
|
27
27
|
'react/jsx-no-comment-textnodes': 'error',
|
|
28
28
|
'react/jsx-no-constructed-context-values': 'off',
|
|
29
29
|
'react/jsx-no-duplicate-props': 'error',
|