xo 0.55.1 → 0.56.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.
@@ -314,6 +314,8 @@ module.exports = {
314
314
  // TypeScript doesn't yet support using extensions and fails with error TS2691.
315
315
  '.ts': 'never',
316
316
  '.tsx': 'never',
317
+ '.mts': 'never',
318
+ '.cts': 'never',
317
319
  },
318
320
  ],
319
321
  'n/no-mixed-requires': [
package/lib/constants.js CHANGED
@@ -24,6 +24,8 @@ const MERGE_OPTIONS_CONCAT = [
24
24
  const TYPESCRIPT_EXTENSION = [
25
25
  'ts',
26
26
  'tsx',
27
+ 'mts',
28
+ 'cts',
27
29
  ];
28
30
 
29
31
  const DEFAULT_EXTENSION = [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xo",
3
- "version": "0.55.1",
3
+ "version": "0.56.0",
4
4
  "description": "JavaScript/TypeScript linter (ESLint wrapper) with great defaults",
5
5
  "license": "MIT",
6
6
  "repository": "xojs/xo",
package/readme.md CHANGED
@@ -315,7 +315,7 @@ Setting this to an object enables the resolver and passes the object as configur
315
315
 
316
316
  ## TypeScript
317
317
 
318
- XO will automatically lint TypeScript files (`.ts`, `.d.ts` and `.tsx`) with the rules defined in [eslint-config-xo-typescript#use-with-xo](https://github.com/xojs/eslint-config-xo-typescript#use-with-xo).
318
+ XO will automatically lint TypeScript files (`.ts`, `.mts`, `.cts`, `.d.ts` and `.tsx`) with the rules defined in [eslint-config-xo-typescript#use-with-xo](https://github.com/xojs/eslint-config-xo-typescript#use-with-xo).
319
319
 
320
320
  XO will handle the [@typescript-eslint/parser `project` option](https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/parser#parseroptionsproject) automatically even if you don't have a `tsconfig.json` in your project.
321
321