Skip to content

Commit f6e527b

Browse files
committed
tools: add support for import assertions in linter
1 parent fb7f5b4 commit f6e527b

File tree

888 files changed

+9933
-8387
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

888 files changed

+9933
-8387
lines changed

.eslintrc.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ const hacks = [
1818
'eslint-plugin-markdown',
1919
'@babel/eslint-parser',
2020
'@babel/plugin-syntax-class-properties',
21+
'@babel/plugin-syntax-import-assertions',
2122
'@babel/plugin-syntax-top-level-await',
2223
];
2324
Module._findPath = (request, paths, isMain) => {
@@ -41,6 +42,7 @@ module.exports = {
4142
babelOptions: {
4243
plugins: [
4344
Module._findPath('@babel/plugin-syntax-class-properties'),
45+
Module._findPath('@babel/plugin-syntax-import-assertions'),
4446
Module._findPath('@babel/plugin-syntax-top-level-await'),
4547
],
4648
},

tools/node_modules/@babel/core/lib/config/partial.js

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tools/node_modules/@babel/core/lib/config/validation/options.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tools/node_modules/@babel/core/lib/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)