Skip to content

Commit

Permalink
Chore: add a todo
Browse files Browse the repository at this point in the history
  • Loading branch information
aladdin-add committed Apr 19, 2021
1 parent 30f3ba6 commit 7c90991
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/no-autofix/lib/rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ Object.keys(builtinRules).reduce((acc, cur) => {

// support 3rd-party plugins
// TODO: find a safer way, as this is no reliable(depends on the package manager)
// TODO: support scoped package. e.g. @typescript-eslint/eslint-plugin
const root = findUp.sync("package.json", { cwd: path.join(__dirname, "../../") });
const mdir = path.join(root, "../node_modules/");
const plugins = fs.readdirSync(mdir).filter(it => /^eslint-plugin/u.test(it));
Expand Down

0 comments on commit 7c90991

Please sign in to comment.