Skip to content

Adds liniting into the workflow - #3082

Merged
flovilmart merged 9 commits into
masterfrom
es-lint
Nov 24, 2016
Merged

flovilmart merged 9 commits into
masterfrom
es-lint

Conversation

@flovilmart

@flovilmart flovilmart commented Nov 20, 2016 •

Copy link
Copy Markdown
Contributor

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
Copy Markdown

@flovilmart updated the pull request - view changes

@facebook-github-bot

Copy link
Copy Markdown

@flovilmart updated the pull request - view changes

@facebook-github-bot

Copy link
Copy Markdown

@flovilmart updated the pull request - view changes

@facebook-github-bot

Copy link
Copy Markdown

@flovilmart updated the pull request - view changes

@steven-supersolid steven-supersolid left a comment

Copy link
Copy Markdown
Contributor

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

Comment thread .eslintrc.json
"ecmaVersion": 6,
"sourceType": "module"
},
"rules": {

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown

@flovilmart updated the pull request - view changes

@facebook-github-bot

Copy link
Copy Markdown

@flovilmart updated the pull request - view changes

@facebook-github-bot

Copy link
Copy Markdown

@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