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

Specify a different linter config file #104

Closed
jrsl-dev opened this issue Nov 29, 2016 · 1 comment
Closed

Specify a different linter config file #104

jrsl-dev opened this issue Nov 29, 2016 · 1 comment

Comments

@jrsl-dev
Copy link

Is there a way to specify a different linter config file than the .eslintrc in the project's root? There are certain rules I want disabled when I'm developing but still want to lint at commit time.

@okonet
Copy link
Collaborator

okonet commented Nov 29, 2016

You can just pass path to your config to eslint in lint-staged configuration.

{
  "*.js": "eslint --config my-config.json"
}

@okonet okonet closed this as completed Dec 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants