We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
My config is located in front/package.json and contains:
front/package.json
"gitDir": "../", "*.sss": [ "stylelint", "node ./front/postcss/sort", "git add" ], "*.js": "eslint"
If I was staged front/a.js file, lint-stage will execute front/node_modules/.bin/eslint a.js. There is no front/ in file path.
front/a.js
lint-stage
front/node_modules/.bin/eslint a.js
front/
Maybe we should use absolute path there?
The text was updated successfully, but these errors were encountered:
Return files relative to git directory
402d9da
It was returning files relative to the current working directory, not the git one. Should also fix lint-staged#118
fix(index): consider paths relative to git root - lint-staged#118, li…
99bc144
…nt-staged#120
41ae0cb
Successfully merging a pull request may close this issue.
My config is located in
front/package.json
and contains:If I was staged
front/a.js
file,lint-stage
will executefront/node_modules/.bin/eslint a.js
. There is nofront/
in file path.Maybe we should use absolute path there?
The text was updated successfully, but these errors were encountered: