Skip to content

Commit 97c02a8

Browse files
committed
chore: fix type error
1 parent f82aca9 commit 97c02a8

File tree

6 files changed

+7
-1
lines changed

6 files changed

+7
-1
lines changed

tests/lib/as-parser.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ describe("eslint-plugin-jsonc as parser", () => {
1414
it("should parse '.json6'", async () => {
1515
const engine = new ESLint({
1616
cwd: TEST_CWD,
17+
// @ts-expect-error -- old ESLint
1718
extensions: [".js", ".json6"],
1819
plugins: {
1920
"eslint-plugin-jsonc": plugin as never,

tests/lib/auto-rule.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,15 @@ describe("auto rule", () => {
2929

3030
const engine = new ESLint({
3131
cwd: TEST_CWD,
32+
// @ts-expect-error -- old ESLint
3233
extensions: [".js", ".json"],
3334
plugins: {
3435
"eslint-plugin-jsonc": plugin as never,
3536
},
3637
});
3738
const fixEngine = new ESLint({
3839
cwd: TEST_CWD,
40+
// @ts-expect-error -- old ESLint
3941
extensions: [".js", ".json"],
4042
plugins: {
4143
"eslint-plugin-jsonc": plugin as never,

tests/lib/configs/recommended-with-json.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ describe("`recommended-with-json` config", () => {
1010
svelte: plugin as never,
1111
},
1212
baseConfig: {
13+
// @ts-expect-error -- old ESLint
1314
parserOptions: {
1415
ecmaVersion: 2020,
1516
},

tests/lib/eslint-plugin.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ describe("Integration with eslint-plugin-jsonc", () => {
1414
it("should lint without errors", async () => {
1515
const engine = new ESLint({
1616
cwd: TEST_CWD,
17+
// @ts-expect-error -- old ESLint
1718
extensions: [".js", ".json"],
1819
plugins: {
1920
"eslint-plugin-jsonc": plugin as never,

tests/lib/rules/auto.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ function run(tests: {
7272
plugins: {
7373
"eslint-plugin-jsonc": plugin as any,
7474
},
75+
// @ts-expect-error -- old ESLint
7576
overrideConfig: parser
7677
? {
7778
...config,
@@ -86,6 +87,7 @@ function run(tests: {
8687
"eslint-plugin-jsonc": plugin as any,
8788
},
8889
fix: true,
90+
// @ts-expect-error -- old ESLint
8991
overrideConfig: parser
9092
? {
9193
...config,

tests/lib/rules/no-useless-escape.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ tester.run("no-useless-escape", rule as any, {
4343
],
4444
},
4545
],
46-
// @ts-expect-error
4746
languageOptions: {
4847
parser: vueParser,
4948
},

0 commit comments

Comments
 (0)