Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix(eslint-plugin-tslint): fix tslintConfig memoization key (#1719)
Fixes #1692
  • Loading branch information
pelepelin committed Mar 16, 2020
1 parent 3814d4e commit abf1a2f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions packages/eslint-plugin-tslint/src/rules/config.ts
Expand Up @@ -48,10 +48,12 @@ const tslintConfig = memoize(
rulesDirectory: tslintRulesDirectory ?? [],
});
},
(lintFile: string | undefined, tslintRules = {}, tslintRulesDirectory = []) =>
`${lintFile}_${Object.keys(tslintRules).join(',')}_${
tslintRulesDirectory.length
}`,
(
lintFile: string | undefined,
tslintRules = {},
tslintRulesDirectory: string[] = [],
) =>
`${lintFile}_${JSON.stringify(tslintRules)}_${tslintRulesDirectory.join()}`,
);

export default createRule<Options, MessageIds>({
Expand Down

0 comments on commit abf1a2f

Please sign in to comment.