Skip to content

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

Merged
merged 9 commits into from
Nov 24, 2016
Merged

Adds liniting into the workflow #3082

merged 9 commits into from
Nov 24, 2016

Conversation

flovilmart
Copy link
Contributor

@flovilmart flovilmart commented Nov 20, 2016

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.

@facebook-github-bot
Copy link

@flovilmart updated the pull request - view changes

@facebook-github-bot
Copy link

@flovilmart updated the pull request - view changes

@facebook-github-bot
Copy link

@flovilmart updated the pull request - view changes

@facebook-github-bot
Copy link

@flovilmart updated the pull request - view changes

Copy link
Contributor

@steven-supersolid steven-supersolid left a 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": {
Copy link
Contributor

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" for no-console
  • no-empty would be closer to eslint:recommended with value ["error", { "allowEmptyCatch": true }], otherwise would use "off"

Copy link
Contributor Author

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 :)

@facebook-github-bot
Copy link

@flovilmart updated the pull request - view changes

@facebook-github-bot
Copy link

@flovilmart updated the pull request - view changes

@facebook-github-bot
Copy link

@flovilmart updated the pull request - view changes

@flovilmart flovilmart merged commit 8c2c76d into master Nov 24, 2016
@flovilmart flovilmart deleted the es-lint branch November 24, 2016 20:47
rsouzas pushed a commit to back4app/parse-server that referenced this pull request Dec 3, 2016
* 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
Jcarlosjunior pushed a commit to back4app/parse-server that referenced this pull request Dec 13, 2016
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants