xo 0.59.1 → 0.59.3
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/config/plugins.cjs +0 -7
- package/lib/options-manager.js +2 -2
- package/package.json +1 -1
package/config/plugins.cjs
CHANGED
|
@@ -315,13 +315,6 @@ module.exports = {
|
|
|
315
315
|
'n/file-extension-in-import': [
|
|
316
316
|
'error',
|
|
317
317
|
'always',
|
|
318
|
-
{
|
|
319
|
-
// TypeScript doesn't yet support using extensions and fails with error TS2691.
|
|
320
|
-
'.ts': 'never',
|
|
321
|
-
'.tsx': 'never',
|
|
322
|
-
'.mts': 'never',
|
|
323
|
-
'.cts': 'never',
|
|
324
|
-
},
|
|
325
318
|
],
|
|
326
319
|
'n/no-mixed-requires': [
|
|
327
320
|
'error',
|
package/lib/options-manager.js
CHANGED
|
@@ -116,8 +116,8 @@ const mergeWithFileConfig = async options => {
|
|
|
116
116
|
const {config: enginesOptions} = (await packageConfigExplorer.search(searchPath)) || {};
|
|
117
117
|
|
|
118
118
|
options = normalizeOptions({
|
|
119
|
-
...xoOptions,
|
|
120
119
|
...(enginesOptions && enginesOptions.node && semver.validRange(enginesOptions.node) ? {nodeVersion: enginesOptions.node} : {}),
|
|
120
|
+
...xoOptions,
|
|
121
121
|
...options,
|
|
122
122
|
});
|
|
123
123
|
options.extensions = [...DEFAULT_EXTENSION, ...(options.extensions || [])];
|
|
@@ -356,7 +356,7 @@ const buildXOConfig = options => config => {
|
|
|
356
356
|
if (options.nodeVersion) {
|
|
357
357
|
config.baseConfig.rules['n/no-unsupported-features/es-builtins'] ??= ['error', {version: options.nodeVersion}];
|
|
358
358
|
config.baseConfig.rules['n/no-unsupported-features/es-syntax'] ??= ['error', {version: options.nodeVersion, ignores: ['modules']}];
|
|
359
|
-
config.baseConfig.rules['n/no-unsupported-features/node-builtins'] ??= ['error', {version: options.nodeVersion}];
|
|
359
|
+
config.baseConfig.rules['n/no-unsupported-features/node-builtins'] ??= ['error', {version: options.nodeVersion, allowExperimental: true}];
|
|
360
360
|
}
|
|
361
361
|
|
|
362
362
|
if (options.space && !options.prettier) {
|