-
Notifications
You must be signed in to change notification settings - Fork 0
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
Bugfix husky eslint linting errors #29
Conversation
.eslintignore
Outdated
@@ -0,0 +1 @@ | |||
packages/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but why? :D if there is no lint script specified the linter does not run in the first place...
I think we should also lint files in utils for example
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's super weird, yesterday i wasn't able to commit any changes because of this, though today i saw that this error only happens if you change the corresponding package. The lint seems to be skipped for tonemato-utils
if you just change an app.
Maybe yesterday pulling changes for this file or some formatting stuff triggered a lint? idk. Removing .eslintignore for now since this issue only occurs when modifying a package.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed in #30
Fixes #28
Solutions
no-unused-var
so drilbur can lint, see: Node must be provided when reporting error if location is not provided prettier/eslint-plugin-prettier#306 (comment).eslintignore
, so eslint does not try to lint unconfiguredpackages
, see: Exclude paths lint-staged/lint-staged#123 (comment)yesterday.getDate() - 1.1
toyesterday.getDate() - 1
to widen the delta of the point in time being yesterday and checking ifnow
is exactly one day ago.