Skip to content

Commit ba31cc2

Browse files
authored
fix: update @eslint/core to v1.0.0 and adjust tests (#190)
* chore: update dependency @eslint/core to v1 * wip * wip * wip: remove `errors` in `valid` test case * wip: replace `ESLint.Plugin` with `Plugin` * wip: clarify comment and change version range for `eslint` * wip: revert to ESLint v9
1 parent 60e1934 commit ba31cc2

File tree

3 files changed

+4
-10
lines changed

3 files changed

+4
-10
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,15 +83,15 @@
8383
],
8484
"license": "Apache-2.0",
8585
"dependencies": {
86-
"@eslint/core": "^0.17.0",
86+
"@eslint/core": "^1.0.0",
8787
"@eslint/plugin-kit": "^0.5.0",
8888
"@humanwhocodes/momoa": "^3.3.10",
8989
"natural-compare": "^1.4.0"
9090
},
9191
"devDependencies": {
9292
"c8": "^10.1.3",
9393
"dedent": "^1.5.3",
94-
"eslint": "^9.36.0",
94+
"eslint": "^9.39.2",
9595
"eslint-config-eslint": "^13.0.0",
9696
"eslint-plugin-eslint-plugin": "^6.3.2",
9797
"globals": "^16.5.0",

tests/rules/sort-keys.test.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,6 @@ ruleTester.run("sort-keys", rule, {
8383
`,
8484
language: "json/json5",
8585
options: [],
86-
errors: [
87-
{
88-
messageId: "sortKeys",
89-
},
90-
],
9186
},
9287

9388
// asc

tests/types/types.test.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import json, { JSONSourceCode } from "@eslint/json";
2-
import type { ESLint } from "eslint";
32
import type {
43
JSONSyntaxElement,
54
JSONRuleDefinition,
@@ -21,9 +20,9 @@ import type {
2120
StringNode,
2221
LocationRange,
2322
} from "@humanwhocodes/momoa";
24-
import type { SourceLocation, SourceRange } from "@eslint/core";
23+
import type { Plugin, SourceLocation, SourceRange } from "@eslint/core";
2524

26-
json satisfies ESLint.Plugin;
25+
json satisfies Plugin;
2726
json.meta.name satisfies string;
2827
json.meta.version satisfies string;
2928

0 commit comments

Comments
 (0)