Skip to content

Commit

Permalink
feat: babel import assertions plugin (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
AyAyEm committed Nov 28, 2022
1 parent f111182 commit a450f8a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
8 changes: 6 additions & 2 deletions esm.js
Expand Up @@ -2,7 +2,7 @@

module.exports = {
rules: {
'import/extensions': 0,
'import/extensions': ['error', 'always'],
},
extends: ['@wfcd'],
parser: '@babel/eslint-parser',
Expand All @@ -13,7 +13,11 @@ module.exports = {
modules: true,
},
babelOptions: {
plugins: ['@babel/plugin-proposal-class-properties', '@babel/plugin-proposal-private-methods'],
plugins: [
'@babel/plugin-proposal-class-properties',
'@babel/plugin-proposal-private-methods',
'@babel/plugin-syntax-import-assertions',
],
},
},
};
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -34,6 +34,7 @@
"@babel/eslint-parser": "^7.19.1",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/plugin-proposal-private-methods": "^7.18.6",
"@babel/plugin-syntax-import-assertions": "^7.20.0",
"@babel/preset-env": "^7.19.1",
"@typescript-eslint/eslint-plugin": "^5.38.0",
"@typescript-eslint/parser": "^5.38.0",
Expand Down

0 comments on commit a450f8a

Please sign in to comment.