Skip to content

Commit

Permalink
chore: update tests to use eslintrc options
Browse files Browse the repository at this point in the history
  • Loading branch information
aladdin-add committed Jan 9, 2024
1 parent 5fc2198 commit 9ddd351
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/lib/rules/no-callback-literal.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

const RuleTester = require("eslint").RuleTester
const rule = require("../../../lib/rules/no-callback-literal")
const tsParser = require("@typescript-eslint/parser")

const ruleTester = new RuleTester({ env: { node: true, es6: true } })
ruleTester.run("no-callback-literal", rule, {
Expand Down Expand Up @@ -44,7 +43,7 @@ ruleTester.run("no-callback-literal", rule, {
// https://github.com/eslint-community/eslint-plugin-n/issues/162
{
code: "cb(e as Error)",
languageOptions: { parser: tsParser },
parser: require.resolve("@typescript-eslint/parser"),
},
],

Expand Down

0 comments on commit 9ddd351

Please sign in to comment.