Skip to content

Commit

Permalink
feat: Parse import asserts
Browse files Browse the repository at this point in the history
  • Loading branch information
3y3 committed Sep 5, 2024
1 parent 28d125d commit 8f314eb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions eslint-common-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 8f314eb

Please sign in to comment.