linter-bundle 7.3.0 → 7.4.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 +10 -1
- package/eslint/react.mjs +2 -1
- package/eslint/rules/restricted-filenames.mjs +5 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -6,7 +6,16 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
-
[Show all code changes](https://github.com/jens-duttke/linter-bundle/compare/v7.
|
|
9
|
+
[Show all code changes](https://github.com/jens-duttke/linter-bundle/compare/v7.4.0...HEAD)
|
|
10
|
+
|
|
11
|
+
## [7.4.0] - 2025-03-23
|
|
12
|
+
|
|
13
|
+
### Changed
|
|
14
|
+
|
|
15
|
+
- [eslint] Updated `eslint` from `9.22.0` to `9.23.0`
|
|
16
|
+
- [eslint/react] Activated `allowExpressions` of the `@typescript-eslint/explicit-function-return-type`rule also for the React overrides
|
|
17
|
+
|
|
18
|
+
[Show all code changes](https://github.com/jens-duttke/linter-bundle/compare/v7.3.0...v7.4.0)
|
|
10
19
|
|
|
11
20
|
## [7.3.0] - 2025-03-20
|
|
12
21
|
|
package/eslint/react.mjs
CHANGED
|
@@ -42,7 +42,8 @@ export default [
|
|
|
42
42
|
'getSnapshotBeforeUpdate',
|
|
43
43
|
'render',
|
|
44
44
|
'shouldComponentUpdate'
|
|
45
|
-
]
|
|
45
|
+
],
|
|
46
|
+
allowExpressions: true
|
|
46
47
|
}],
|
|
47
48
|
'@typescript-eslint/no-empty-object-type': ['error', { // Empty interfaces for Component props should be allowed to make it directly visible, that a component has no props.
|
|
48
49
|
allowWithName: 'Props$'
|
|
@@ -54,8 +54,12 @@ export default {
|
|
|
54
54
|
},
|
|
55
55
|
create: (context) => {
|
|
56
56
|
const filePath = context.filename;
|
|
57
|
+
|
|
58
|
+
// The type is ensured by `meta.schema`
|
|
59
|
+
const contextOptions = /** @type {{ basePath: string, allowed?: string[]; disallowed?: string[]; }[]} */(context.options);
|
|
60
|
+
|
|
57
61
|
/** @type {{ basePath: string, allowed?: string[]; disallowed?: string[]; }[]} */
|
|
58
|
-
const options = (linterBundleConfig?.files?.restrictions ? [...linterBundleConfig.files.restrictions, ...
|
|
62
|
+
const options = (linterBundleConfig?.files?.restrictions ? [...linterBundleConfig.files.restrictions, ...contextOptions] : contextOptions);
|
|
59
63
|
|
|
60
64
|
for (const { basePath, allowed, disallowed } of options) {
|
|
61
65
|
const normalizedName = path.relative(path.join(process.cwd(), basePath), filePath);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "linter-bundle",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.4.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Ready-to use bundle of linting tools, containing configurations for ESLint, stylelint and markdownlint.",
|
|
6
6
|
"keywords": [
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@stylistic/eslint-plugin": "4.2.0",
|
|
45
45
|
"@stylistic/eslint-plugin-jsx": "4.2.0",
|
|
46
|
-
"eslint": "9.
|
|
46
|
+
"eslint": "9.23.0",
|
|
47
47
|
"eslint-formatter-unix": "8.40.0",
|
|
48
48
|
"eslint-import-resolver-typescript": "4.2.2",
|
|
49
49
|
"eslint-import-resolver-webpack": "0.13.10",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"devDependencies": {
|
|
79
79
|
"@types/eslint": "9.6.1",
|
|
80
80
|
"@types/micromatch": "4.0.9",
|
|
81
|
-
"@types/node": "22.13.
|
|
81
|
+
"@types/node": "22.13.11",
|
|
82
82
|
"stylelint-find-new-rules": "5.0.0",
|
|
83
83
|
"typescript": "5.8.2"
|
|
84
84
|
}
|