Skip to content

Commit

Permalink
tools: add support for import source syntax in linter
Browse files Browse the repository at this point in the history
  • Loading branch information
aduh95 committed Feb 10, 2025
1 parent 3844e7e commit 50a20ea
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
2 changes: 2 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import nodeCore from './tools/eslint/eslint-plugin-node-core.js';
const js = requireEslintTool('@eslint/js');
const babelEslintParser = requireEslintTool('@babel/eslint-parser');
const babelPluginSyntaxImportAttributes = resolveEslintTool('@babel/plugin-syntax-import-attributes');
const babelPluginSyntaxImportSource = resolveEslintTool('@babel/plugin-syntax-import-source');
const jsdoc = requireEslintTool('eslint-plugin-jsdoc');
const markdown = requireEslintTool('eslint-plugin-markdown');
const stylisticJs = requireEslintTool('@stylistic/eslint-plugin-js');
Expand Down Expand Up @@ -74,6 +75,7 @@ export default [
babelOptions: {
plugins: [
babelPluginSyntaxImportAttributes,
babelPluginSyntaxImportSource,
],
},
requireConfigFile: false,
Expand Down
16 changes: 16 additions & 0 deletions tools/eslint/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions tools/eslint/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"@babel/core": "^7.26.0",
"@babel/eslint-parser": "^7.25.9",
"@babel/plugin-syntax-import-attributes": "^7.26.0",
"@babel/plugin-syntax-import-source": "^7.25.9",
"@stylistic/eslint-plugin-js": "^2.12.1",
"eslint": "^9.17.0",
"eslint-formatter-tap": "^8.40.0",
Expand Down

0 comments on commit 50a20ea

Please sign in to comment.