-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Adds liniting into the workflow #3082
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
Conversation
@flovilmart updated the pull request - view changes |
@flovilmart updated the pull request - view changes |
@flovilmart updated the pull request - view changes |
@flovilmart updated the pull request - view changes |
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.
LGTM and like that we are keeping the rules close to the recommended
"ecmaVersion": 6, | ||
"sourceType": "module" | ||
}, | ||
"rules": { |
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.
nits:
no-extra-boolean-cast
doesn't seem to be required- Would be clearer to use string value
"off"
forno-console
no-empty
would be closer to eslint:recommended with value["error", { "allowEmptyCatch": true }]
, otherwise would use"off"
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.
I'll add the nits and rebase :)
@flovilmart updated the pull request - view changes |
@flovilmart updated the pull request - view changes |
@flovilmart updated the pull request - view changes |
* initial linting of src * fix indent to 2 spaces * Removes unnecessary rules * ignore spec folder for now * Spec linting * Fix spec indent * nits * nits * no no-empty rule
* initial linting of src * fix indent to 2 spaces * Removes unnecessary rules * ignore spec folder for now * Spec linting * Fix spec indent * nits * nits * no no-empty rule
Adds linting to to workflow, reporting build errors when lint is no OK.
Rules are the recommended rules.
This should work out of the box in your favorite editor.