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

not working on eslint: "^4.16.0" #11

Open
marcelmokos opened this issue Jan 24, 2018 · 5 comments
Open

not working on eslint: "^4.16.0" #11

marcelmokos opened this issue Jan 24, 2018 · 5 comments

Comments

@marcelmokos
Copy link

Error: Failed to load plugin dollar-sign: Cannot find module 'eslint-plugin-dollar-sign'

.eslint.yml

---
extends:
  - airbnb-base/legacy
  - prettier

env:
  amd: true
  browser: true
  jasmine: true
  jquery: true
  es6: false

parserOptions:
  ecmaVersion: 5
  ecmaFeatures:
    globalReturn: false

plugins:
  - import
  - prettier
  - dollar-sign

rules:
  dollar-sign/dollar-sign:
    - error
    - ignoreProperties
@erikdesjardins
Copy link
Owner

What does npm ls eslint-plugin-dollar-sign output?

@marcelmokos
Copy link
Author

I am sure that did npm i --save-dev eslint-plugin-dollar-sign and I did check the node_modules and everything seemed fine.

npm ls eslint-plugin-dollar-sign
project
└── eslint-plugin-dollar-sign@1.0.1 

@erikdesjardins
Copy link
Owner

With that out of the way, I can't debug any further without an example repo.

@marcelmokos
Copy link
Author

I found the problem, It was caused by setting in IDE the eslint was taken from another directory and It caused the issue in that directory node_modules were missing eslint-plugin-dollar-sign. Cannot find module 'eslint-plugin-dollar-sign' you can close the issue.

@diegocr
Copy link

diegocr commented Jun 11, 2022

@erikdesjardins is this plugin abandoned? it was kinda handy :)

Perhaps you can talk with @4dvn-hieu about his fork since he seems to have fixed it for ESLint 8+

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

3 participants