Skip to content

Commit 1583e96

Browse files
authored
feat: use @eslint-community packages (#202)
* feat: use `@eslint-community` packages * Create .changeset/dry-candles-trade.md
1 parent c67c75b commit 1583e96

File tree

4 files changed

+24
-2
lines changed

4 files changed

+24
-2
lines changed

.changeset/dry-candles-trade.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"eslint-plugin-json-schema-validator": minor
3+
---
4+
5+
feat: use `@eslint-community` packages

.eslintrc.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,23 @@ module.exports = {
2929
"no-lonely-if": "off",
3030
"new-cap": "off",
3131
"no-shadow": "off",
32+
33+
// Repo rule
34+
"no-restricted-imports": [
35+
"error",
36+
{
37+
patterns: [
38+
{
39+
group: ["/regexpp", "/regexpp/*"],
40+
message: "Please use `@eslint-community/regexpp` instead.",
41+
},
42+
{
43+
group: ["/eslint-utils", "/eslint-utils/*"],
44+
message: "Please use `@eslint-community/eslint-utils` instead.",
45+
},
46+
],
47+
},
48+
],
3249
},
3350
overrides: [
3451
{

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@
4949
"eslint": ">=6.0.0"
5050
},
5151
"dependencies": {
52+
"@eslint-community/eslint-utils": "^4.3.0",
5253
"ajv": "^8.0.0",
5354
"debug": "^4.3.1",
54-
"eslint-utils": "^3.0.0",
5555
"json-schema-migrate": "^2.0.0",
5656
"jsonc-eslint-parser": "^2.0.0",
5757
"minimatch": "^7.0.0",

src/utils/ast/js/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import type {
1111
} from "vue-eslint-parser/ast";
1212
import type { RuleContext } from "../../../types";
1313
// @ts-expect-error -- no type def
14-
import * as eslintUtils from "eslint-utils";
14+
import * as eslintUtils from "@eslint-community/eslint-utils";
1515
import type { Variable } from "eslint-scope";
1616

1717
/**

0 commit comments

Comments
 (0)