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

Unable to specify config for linter #261

Closed
sjurgis opened this issue Jan 6, 2020 · 3 comments
Closed

Unable to specify config for linter #261

sjurgis opened this issue Jan 6, 2020 · 3 comments
Labels
area:lwc Highlights the lwc functional area of the CLI. owned by another team The Salesforce CLI team does not own this work but will pass on the information to the correct team.

Comments

@sjurgis
Copy link

sjurgis commented Jan 6, 2020

Summary

When running sfdx force:lightning:lint and trying to specify custom eslint config, it tries to to fetch config from folder that is being scanned.

Steps To Reproduce:

sfdx force:lightning:lint --config=./.eslintrc.js ./myns/main/default/aura

Actual result

Applying custom rules from .eslintrc.js
ERROR running force:lightning:lint:  Cannot find module 'myns/main/default/aura/.eslintrc.js'

Additional information

Putting config into aura folder doesn't work either

Versions:

sfdx-cli/7.36.0-b1c4e9c7c8 darwin-x64 node-v10.15.3

@oclif/plugin-commands 1.2.3 (core)
@oclif/plugin-not-found 1.2.3 (core)
@oclif/plugin-plugins 1.7.8 (core)
@oclif/plugin-warn-if-update-available 1.7.0 (core)
@oclif/plugin-which 1.0.3 (core)
@salesforce/lwc-dev-server 1.0.8
├─ @oclif/plugin-help 2.2.1
└─ @oclif/plugin-update 1.3.9

@salesforce/sfdx-trust 3.0.5 (core)
analytics 1.2.1 (core)
generator 1.1.1 (core)
salesforcedx 47.9.0 (core)
├─ salesforcedx-templates 47.9.0 (core)
└─ salesforce-alm 47.10.0 (core)

sfdx-cli 7.36.0 (core)

Catalina 10.15.2 (19C57)

@sjurgis
Copy link
Author

sjurgis commented Jan 6, 2020

Removing .js doesn't work either.

@clairebianchi clairebianchi added the owned by another team The Salesforce CLI team does not own this work but will pass on the information to the correct team. label Jan 14, 2020
@clairebianchi
Copy link
Collaborator

@sjurgis thank you for reaching out. @ntotten can you please take a look

@preddivari preddivari added the area:lwc Highlights the lwc functional area of the CLI. label Sep 21, 2023
@cristiand391
Copy link
Member

closing this since the force:lightning:lint command no longer exists.

@cristiand391 cristiand391 closed this as not planned Won't fix, can't repro, duplicate, stale Oct 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:lwc Highlights the lwc functional area of the CLI. owned by another team The Salesforce CLI team does not own this work but will pass on the information to the correct team.
Projects
None yet
Development

No branches or pull requests

4 participants