Skip to content

Commit

Permalink
Breaking: don't export getRecommendedConfig()
Browse files Browse the repository at this point in the history
\### Rationale
Don't export more than is necessary. This function is not used anywhere
else and doesn't have the intention to.

Breaking change since it removes an external interface another package
might rely on.
  • Loading branch information
codejedi365 committed Oct 30, 2021
1 parent edbe37a commit 2482b5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import type { Linter } from "eslint";
import rulebook from "./rules";

export const generateRecommendedConfig = (): Partial<Linter.RulesRecord> => {
const generateRecommendedConfig = (): Partial<Linter.RulesRecord> => {
return Object.entries(rulebook.rules).reduce((memo, [name, rule]) => {
return !rule.meta.docs
? memo
Expand Down

0 comments on commit 2482b5c

Please sign in to comment.