Skip to content

Commit

Permalink
Merge pull request #200 from Automattic/add/esm-support
Browse files Browse the repository at this point in the history
feat: add ESM support
  • Loading branch information
sjinks committed May 9, 2024
2 parents e953aa5 + 03b522d commit f96b7f5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion configs/javascript.js
Expand Up @@ -254,7 +254,7 @@ module.exports = {
settings: {
'import/resolver': {
node: {
extensions: [ '.js', '.jsx', '.ts', '.tsx' ],
extensions: [ '.js', '.jsx', '.ts', '.tsx', '.cjs', '.mjs', '.cts', '.mts' ],
},
typescript: 'eslint-import-resolver-typescript',
},
Expand Down
4 changes: 2 additions & 2 deletions configs/typescript.js
Expand Up @@ -4,7 +4,7 @@
*/

module.exports = {
ignorePatterns: [ '**/*.d.ts' ],
ignorePatterns: [ '**/*.d.ts', '**/*.d.cts', '**/*.d.mts' ],

overrides: [
{
Expand All @@ -14,7 +14,7 @@ module.exports = {
'plugin:@typescript-eslint/strict',
],

files: [ '**/*.ts', '**/*.tsx' ],
files: [ '**/*.ts', '**/*.tsx', '**/*.cts', '**/*.mts' ],

parser: '@typescript-eslint/parser',

Expand Down
2 changes: 1 addition & 1 deletion configs/weak-typescript.js
Expand Up @@ -7,7 +7,7 @@
module.exports = {
overrides: [
{
files: [ '**/*.ts', '**/*.tsx' ],
files: [ '**/*.ts', '**/*.tsx', '**/*.cts', '**/*.mts' ],

/**
* Downgrade rules from the base preset to "warn". Do not disable rules (set
Expand Down

0 comments on commit f96b7f5

Please sign in to comment.