Skip to content

Commit

Permalink
Drop ESLINT_NO_IMPORTS (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
fregante authored Oct 7, 2023
1 parent f0990fb commit 6315869
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -315,21 +315,4 @@ config.overrides.push({
},
});

if (process.env.ESLINT_NO_IMPORTS) {
for (const key of Object.keys(config.rules)) {
if (key.startsWith("import/")) {
delete config.rules[key];
}
}

const list = new Set(config.extends);
for (const plugin of list) {
if (plugin.startsWith("plugin:import/")) {
list.delete(plugin);
}
}

config.extends = [...list];
}

module.exports = config;

0 comments on commit 6315869

Please sign in to comment.