From 8f314ebec4ede6d48f77ea8258f2c3dfc16247a8 Mon Sep 17 00:00:00 2001 From: 3y3 <3y3@ya.ru> Date: Thu, 5 Sep 2024 20:58:02 +0300 Subject: [PATCH] feat: Parse import asserts --- eslint-common-config.js | 8 ++++++++ package.json | 1 + 2 files changed, 9 insertions(+) diff --git a/eslint-common-config.js b/eslint-common-config.js index d5cf431..97df60a 100644 --- a/eslint-common-config.js +++ b/eslint-common-config.js @@ -4,6 +4,14 @@ module.exports = { '@gravity-ui/eslint-config', process.env.npm_command && '@gravity-ui/eslint-config/prettier', ].filter(Boolean), + parserOptions: { + requireConfigFile: false, + babelOptions: { + plugins: [ + '@babel/plugin-syntax-import-assertions' + ] + } + }, overrides: [{ files: [ '.eslintrc.js', diff --git a/package.json b/package.json index 06df7c4..444f632 100644 --- a/package.json +++ b/package.json @@ -26,6 +26,7 @@ "author": "", "license": "MIT", "dependencies": { + "@babel/plugin-syntax-import-assertions": "^7.25.6", "@gravity-ui/eslint-config": "^3.2.0", "@gravity-ui/prettier-config": "^1.1.0", "@gravity-ui/stylelint-config": "^4.0.1",