Skip to content

Commit

Permalink
feat: use @eslint-community packages (#202)
Browse files Browse the repository at this point in the history
* feat: use `@eslint-community` packages

* Create .changeset/dry-candles-trade.md
  • Loading branch information
ota-meshi committed Mar 20, 2023
1 parent c67c75b commit 1583e96
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/dry-candles-trade.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"eslint-plugin-json-schema-validator": minor
---

feat: use `@eslint-community` packages
17 changes: 17 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,23 @@ module.exports = {
"no-lonely-if": "off",
"new-cap": "off",
"no-shadow": "off",

// Repo rule
"no-restricted-imports": [
"error",
{
patterns: [
{
group: ["/regexpp", "/regexpp/*"],
message: "Please use `@eslint-community/regexpp` instead.",
},
{
group: ["/eslint-utils", "/eslint-utils/*"],
message: "Please use `@eslint-community/eslint-utils` instead.",
},
],
},
],
},
overrides: [
{
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@
"eslint": ">=6.0.0"
},
"dependencies": {
"@eslint-community/eslint-utils": "^4.3.0",
"ajv": "^8.0.0",
"debug": "^4.3.1",
"eslint-utils": "^3.0.0",
"json-schema-migrate": "^2.0.0",
"jsonc-eslint-parser": "^2.0.0",
"minimatch": "^7.0.0",
Expand Down
2 changes: 1 addition & 1 deletion src/utils/ast/js/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import type {
} from "vue-eslint-parser/ast";
import type { RuleContext } from "../../../types";
// @ts-expect-error -- no type def
import * as eslintUtils from "eslint-utils";
import * as eslintUtils from "@eslint-community/eslint-utils";
import type { Variable } from "eslint-scope";

/**
Expand Down

0 comments on commit 1583e96

Please sign in to comment.