Skip to content

Commit

Permalink
chore: fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
ota-meshi committed Sep 12, 2024
1 parent f82aca9 commit 97c02a8
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions tests/lib/as-parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ describe("eslint-plugin-jsonc as parser", () => {
it("should parse '.json6'", async () => {
const engine = new ESLint({
cwd: TEST_CWD,
// @ts-expect-error -- old ESLint

Check failure on line 17 in tests/lib/as-parser.ts

View workflow job for this annotation

GitHub Actions / test-with-eslint6 (12.x)

Unused '@ts-expect-error' directive.
extensions: [".js", ".json6"],
plugins: {
"eslint-plugin-jsonc": plugin as never,
Expand Down
2 changes: 2 additions & 0 deletions tests/lib/auto-rule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,15 @@ describe("auto rule", () => {

const engine = new ESLint({
cwd: TEST_CWD,
// @ts-expect-error -- old ESLint
extensions: [".js", ".json"],
plugins: {
"eslint-plugin-jsonc": plugin as never,
},
});
const fixEngine = new ESLint({
cwd: TEST_CWD,
// @ts-expect-error -- old ESLint
extensions: [".js", ".json"],
plugins: {
"eslint-plugin-jsonc": plugin as never,
Expand Down
1 change: 1 addition & 0 deletions tests/lib/configs/recommended-with-json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ describe("`recommended-with-json` config", () => {
svelte: plugin as never,
},
baseConfig: {
// @ts-expect-error -- old ESLint
parserOptions: {
ecmaVersion: 2020,
},
Expand Down
1 change: 1 addition & 0 deletions tests/lib/eslint-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ describe("Integration with eslint-plugin-jsonc", () => {
it("should lint without errors", async () => {
const engine = new ESLint({
cwd: TEST_CWD,
// @ts-expect-error -- old ESLint
extensions: [".js", ".json"],
plugins: {
"eslint-plugin-jsonc": plugin as never,
Expand Down
2 changes: 2 additions & 0 deletions tests/lib/rules/auto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ function run(tests: {
plugins: {
"eslint-plugin-jsonc": plugin as any,
},
// @ts-expect-error -- old ESLint
overrideConfig: parser
? {
...config,
Expand All @@ -86,6 +87,7 @@ function run(tests: {
"eslint-plugin-jsonc": plugin as any,
},
fix: true,
// @ts-expect-error -- old ESLint
overrideConfig: parser
? {
...config,
Expand Down
1 change: 0 additions & 1 deletion tests/lib/rules/no-useless-escape.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ tester.run("no-useless-escape", rule as any, {
],
},
],
// @ts-expect-error
languageOptions: {
parser: vueParser,
},
Expand Down

0 comments on commit 97c02a8

Please sign in to comment.