Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid dependencies list #169

Open
readyyyk opened this issue Feb 26, 2025 · 2 comments
Open

Invalid dependencies list #169

readyyyk opened this issue Feb 26, 2025 · 2 comments

Comments

@readyyyk
Copy link

here is minimal case for this:

  • package.json
{
  "name": "eslint-plugin-effector",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "lint": "eslint ./*",
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "keywords": [],
  "author": "",
  "license": "ISC",
  "dependencies": {
    "effector": "23",
    "eslint": "7.32",
    "eslint-plugin-effector": "0.15.0"
  }
}
  • eslintrc.js
module.exports = {
    "plugins": ["effector"],
    "extends": ["plugin:effector/recommended", "plugin:effector/scope"]
}

and thrown error:

Oops! Something went wrong! :(

ESLint: 7.32.0

Error: Failed to load plugin 'effector' declared in '.eslintrc.js': Cannot find module '@typescript-eslint/utils'

Require stack:
....
@readyyyk
Copy link
Author

readyyyk commented Feb 26, 2025

Here is how i managed to launch this

  • .eslintrc.js
module.exports = {
    parser: '@typescript-eslint/parser',
    plugins: ["effector"],
    extends: ["plugin:effector/recommended", "plugin:effector/scope"]
}
  • package.json
{
  "scripts": {
    "lint": "eslint ./src/*"
  },
  "dependencies": {
    "@typescript-eslint/parser": "^6.21.0",
    "@typescript-eslint/utils": "^6.21.0",
    "effector": "23",
    "eslint": "7.32",
    "eslint-plugin-effector": "0.15.0"
  }
}

@readyyyk
Copy link
Author

and for eslint@8

  • package.json
{
  "scripts": {
    "lint": "eslint ./src/*"
  },
  "dependencies": {
    "@typescript-eslint/parser": "8.24.0",
    "@typescript-eslint/utils": "8.24.0",
    "effector": "23",
    "eslint": "8.57.1",
    "eslint-plugin-effector": "0.15.0"
  }
}

@readyyyk readyyyk changed the title Invalid dependency list Invalid dependencшуы list Feb 28, 2025
@readyyyk readyyyk changed the title Invalid dependencшуы list Invalid dependencies list Feb 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant