Skip to content

Commit

Permalink
allowed-dependencies plugin v0.4.x.
Browse files Browse the repository at this point in the history
  • Loading branch information
Anna Bocharova committed Aug 10, 2024
1 parent 03d37b6 commit 9c1ed99
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
6 changes: 1 addition & 5 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import globals from "globals";
import jsPlugin from "@eslint/js";
import { readFileSync } from "node:fs";
import tsPlugin from "typescript-eslint";
import prettierOverrides from "eslint-config-prettier";
import prettierRules from "eslint-plugin-prettier/recommended";
Expand Down Expand Up @@ -37,10 +36,7 @@ export default [
{
files: ["src/*.ts"],
rules: {
"allowed/dependencies": [
"error",
{ manifest: JSON.parse(readFileSync("./package.json", "utf8")) },
],
"allowed/dependencies": "error",
"@typescript-eslint/no-empty-object-type": [
"error",
{ allowWithName: "LoggerOverrides" },
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
"@vitest/coverage-istanbul": "^2.0.4",
"eslint": "^9.4.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-allowed-dependencies": "^0.2.4",
"eslint-plugin-allowed-dependencies": "^0.4.1",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-unicorn": "^55.0.0",
"husky": "^9.0.10",
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1366,10 +1366,10 @@ eslint-config-prettier@^9.1.0:
resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-9.1.0.tgz#31af3d94578645966c082fcb71a5846d3c94867f"
integrity sha512-NSWl5BFQWEPi1j4TjVNItzYV7dZXZ+wP6I6ZhrBGpChQhZRUaElihE9uRRkcbRnNb76UMKDF3r+WTmNcGPKsqw==

eslint-plugin-allowed-dependencies@^0.2.4:
version "0.2.4"
resolved "https://registry.yarnpkg.com/eslint-plugin-allowed-dependencies/-/eslint-plugin-allowed-dependencies-0.2.4.tgz#8bc13bf19b4d9e279ff7f0533d39ce50bd0def2f"
integrity sha512-ABZFs2ZX9FS5S5/sCiu1jZnjeTCbzUoImrYs4PKNMywCmuB1WOQN7Pm4kxpQdEEKQnrslM8YbxACpGscbwxZVQ==
eslint-plugin-allowed-dependencies@^0.4.1:
version "0.4.1"
resolved "https://registry.npmjs.org/eslint-plugin-allowed-dependencies/-/eslint-plugin-allowed-dependencies-0.4.1.tgz#8c849c48398d53ea8fc29a8b3c83fa70c1a109aa"
integrity sha512-AB/bldXgVY/TK9Bp2mBgsXcnkONlbTppR9f0tL4poWLoephfSxgM47jw6x0/BI6TthwnnBrNPuhytJvIHtrvnQ==
dependencies:
ramda "^0.30.1"

Expand Down

0 comments on commit 9c1ed99

Please sign in to comment.