typescript-eslint 8.35.2-alpha.8 → 8.36.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/dist/config-helper.js +9 -2
- package/package.json +4 -4
package/dist/config-helper.js
CHANGED
|
@@ -68,11 +68,17 @@ function configImpl(...configs) {
|
|
|
68
68
|
}
|
|
69
69
|
if (extension == null || typeof extension !== 'object') {
|
|
70
70
|
nonObjectExtensions.push(extensionIndex);
|
|
71
|
+
continue;
|
|
72
|
+
}
|
|
73
|
+
// https://github.com/eslint/rewrite/blob/82d07fd0e8e06780b552a41f8bcbe2a4f8741d42/packages/config-helpers/src/define-config.js#L448-L450
|
|
74
|
+
if ('basePath' in extension) {
|
|
75
|
+
throw new TypeError(`tseslint.config(): Config at index ${configIndex}${nameErrorPhrase} has an 'extends' array that contains a config with a 'basePath' property at index ${extensionIndex}.` +
|
|
76
|
+
` 'basePath' in 'extends' is not allowed.`);
|
|
71
77
|
}
|
|
72
78
|
}
|
|
73
79
|
if (nonObjectExtensions.length > 0) {
|
|
74
80
|
const extensionIndices = nonObjectExtensions.join(', ');
|
|
75
|
-
throw new
|
|
81
|
+
throw new TypeError(`tseslint.config(): Config at index ${configIndex}${nameErrorPhrase} contains non-object` +
|
|
76
82
|
` extensions at the following indices: ${extensionIndices}.`);
|
|
77
83
|
}
|
|
78
84
|
const configArray = [];
|
|
@@ -93,6 +99,7 @@ function configImpl(...configs) {
|
|
|
93
99
|
...extension,
|
|
94
100
|
...(config.files ? { files: config.files } : {}),
|
|
95
101
|
...(config.ignores ? { ignores: config.ignores } : {}),
|
|
102
|
+
...(config.basePath ? { basePath: config.basePath } : {}),
|
|
96
103
|
...(resolvedConfigName !== '' ? { name: resolvedConfigName } : {}),
|
|
97
104
|
});
|
|
98
105
|
}
|
|
@@ -112,5 +119,5 @@ function configImpl(...configs) {
|
|
|
112
119
|
* the return value can still be true.
|
|
113
120
|
*/
|
|
114
121
|
function isPossiblyGlobalIgnores(config) {
|
|
115
|
-
return Object.keys(config).every(key => ['name', 'ignores'].includes(key));
|
|
122
|
+
return Object.keys(config).every(key => ['name', 'ignores', 'basePath'].includes(key));
|
|
116
123
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "typescript-eslint",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.36.0",
|
|
4
4
|
"description": "Tooling which enables you to use TypeScript with ESLint",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -50,9 +50,9 @@
|
|
|
50
50
|
"typecheck": "yarn run -BT nx typecheck"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@typescript-eslint/eslint-plugin": "8.
|
|
54
|
-
"@typescript-eslint/parser": "8.
|
|
55
|
-
"@typescript-eslint/utils": "8.
|
|
53
|
+
"@typescript-eslint/eslint-plugin": "8.36.0",
|
|
54
|
+
"@typescript-eslint/parser": "8.36.0",
|
|
55
|
+
"@typescript-eslint/utils": "8.36.0"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|
|
58
58
|
"eslint": "^8.57.0 || ^9.0.0",
|