Skip to content

Commit

Permalink
feat: Don't run prettier twice if eslint-plugin-prettier is installed
Browse files Browse the repository at this point in the history
Filter out `prettier/prettier` from the rules we give `eslint` as we already have or will run `prettier` on our own.
  • Loading branch information
zimme committed Dec 28, 2017
1 parent df33c3b commit 9945683
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ function getFixableRules(eslintConfig) {
const rules = linter.getRules();
const fixableRules = [];
for (const [name, rule] of rules) {
if (isRuleFixable(rule)) {
if (name !== "prettier/prettier" && isRuleFixable(rule)) {
fixableRules.push(name);
}
}
Expand Down

0 comments on commit 9945683

Please sign in to comment.