diff options
author | Antoine du Hamel <duhamelantoine1995@gmail.com> | 2021-08-28 16:58:56 +0300 |
---|---|---|
committer | Michaƫl Zasso <targos@protonmail.com> | 2021-09-06 10:19:25 +0300 |
commit | d92bd9a982a7aded3bcc99ca9af322584db58d75 (patch) | |
tree | f6a625e514bf4394a8bfe6fd6fae9ded0468bcca /.eslintrc.js | |
parent | 879dc4658e9fe09bb40e08fa1d62680306e3f434 (diff) |
tools: add support for import assertions in linter
PR-URL: https://github.com/nodejs/node/pull/39924
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Bradley Farias <bradley.meck@gmail.com>
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Zijian Liu <lxxyxzj@gmail.com>
Diffstat (limited to '.eslintrc.js')
-rw-r--r-- | .eslintrc.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/.eslintrc.js b/.eslintrc.js index f5100fd3cc9..e84c7408d11 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -18,6 +18,7 @@ const hacks = [ 'eslint-plugin-markdown', '@babel/eslint-parser', '@babel/plugin-syntax-class-properties', + '@babel/plugin-syntax-import-assertions', '@babel/plugin-syntax-top-level-await', ]; Module._findPath = (request, paths, isMain) => { @@ -41,6 +42,7 @@ module.exports = { babelOptions: { plugins: [ Module._findPath('@babel/plugin-syntax-class-properties'), + Module._findPath('@babel/plugin-syntax-import-assertions'), Module._findPath('@babel/plugin-syntax-top-level-await'), ], }, |