Skip to content

Commit

Permalink
feat: Support TypeScript 4.7 file extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
ntucker committed May 18, 2022
1 parent 1df3f57 commit a15c39c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/eslint-plugin/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const config = {
},
overrides: [
{
files: ['**/*.ts?(x)'],
files: ['**/*.(m|c)?ts?(x)'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-plugin/typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module.exports = {
extends: ['./base.js'],
overrides: [
{
files: ['**/*.ts?(x)'],
files: ['**/*.(m|c)?ts?(x)'],
parser: '@typescript-eslint/parser',
settings: {
'import/resolver': {
Expand Down
2 changes: 1 addition & 1 deletion packages/webpack-config-anansi/src/base/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default function makeBaseConfig({
const resolve = {
modules,
// TODO: remove '.js', '.json', '.wasm' once '...' is well supported in plugins like linaria
extensions: ['.ts', '.tsx', '.js', '.json', '.wasm', '...'],
extensions: ['.ts', '.tsx', '.mts', '.cts', '.js', '.json', '.wasm', '...'],
fallback: NODE_ALIAS,
plugins:
tsconfigPathsOptions !== false
Expand Down

0 comments on commit a15c39c

Please sign in to comment.