Skip to content

Commit

Permalink
chore(eslint-plugin-tslint): take rule options from create parameter (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaKGoldberg committed Nov 25, 2022
1 parent 87a2736 commit d69fdf4
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions packages/eslint-plugin-tslint/src/rules/config.ts
Expand Up @@ -98,18 +98,13 @@ export default createRule<Options, MessageIds>({
],
},
defaultOptions: [{}],
create(context) {
create(
context,
[{ rules: tslintRules, rulesDirectory: tslintRulesDirectory, lintFile }],
) {
const fileName = context.getFilename();
const sourceCode = context.getSourceCode().text;
const parserServices = ESLintUtils.getParserServices(context);

/**
* The TSLint rules configuration passed in by the user
*/
const [
{ rules: tslintRules, rulesDirectory: tslintRulesDirectory, lintFile },
] = context.options;

const program = parserServices.program;

/**
Expand Down

0 comments on commit d69fdf4

Please sign in to comment.