xo 0.59.2 → 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.
@@ -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',
@@ -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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xo",
3
- "version": "0.59.2",
3
+ "version": "0.59.3",
4
4
  "description": "JavaScript/TypeScript linter (ESLint wrapper) with great defaults",
5
5
  "license": "MIT",
6
6
  "repository": "xojs/xo",