Skip to content

Commit

Permalink
Hoist import-x for better extendability
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronMoat committed Sep 22, 2024
1 parent 2f4b59e commit 2c4324a
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions base.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,18 @@ const settings = {

module.exports = [
eslintConfigPrettier,
{
plugins: {
'import-x': importX,
},
},
importX.flatConfigs.typescript,
{
...importX.flatConfigs.errors,
rules: importX.flatConfigs.errors.rules,
files: [`**/*.{${jsExtensions}}`],
},
{
...importX.flatConfigs.warnings,
rules: importX.flatConfigs.warnings.rules,
files: [`**/*.{${jsExtensions}}`],
},
{
Expand All @@ -125,9 +130,6 @@ module.exports = [
),
{
files: [`**/*.{${tsExtensions}}`],
plugins: {
'import-x': importX,
},

languageOptions: {
parser: tseslint.parser,
Expand Down

0 comments on commit 2c4324a

Please sign in to comment.