Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

introduce no-else-return rule as a warning #13129

Merged
merged 5 commits into from
Mar 4, 2017

Conversation

zaggino
Copy link
Contributor

@zaggino zaggino commented Feb 28, 2017

Hi guys, I'd like to build on this, introducing more rules to our eslint config AND fixing the breakages of currently set rules.

The current state of the codebase is quite bad, npm run eslint returns:

40779 problems (28245 errors, 12534 warnings)

@petetnt
Copy link
Collaborator

petetnt commented Feb 28, 2017

All in for more strict .eslintrc for me (as long as the values are sensible). Makes the code review part easier and makes the code base more coherent.

Only minus the noise in git history and blame, that's a small thing compared to the benefits.

@zaggino
Copy link
Contributor Author

zaggino commented Feb 28, 2017

If you have no issues with merging this, I'd then open PRs fixing one rule per PR so we can get to 0 errors eventually. Eslint's autofix feature would work great here where available, like missing semicolons.

@ficristo
Copy link
Collaborator

ficristo commented Mar 1, 2017

With this grunt eslint and npm run eslint will do different things.
Could you simply define "eslint": "grunt eslint" without adding the .eslintignore file?
As @petetnt I like stricter ESLint checks.

@zaggino
Copy link
Contributor Author

zaggino commented Mar 1, 2017

@ficristo my brackets-eslint extension understands official .eslintignore but can't get this stuff from grunt, that's why I opted out for this file. Maybe we can do this the other way, fix grunt eslint to use .eslintignore ?

@zaggino zaggino force-pushed the eslint-no-else-return-warning branch from d5d309f to a5cd2e7 Compare March 2, 2017 01:29
@zaggino
Copy link
Contributor Author

zaggino commented Mar 2, 2017

Ok, this looks better:

$ npm run eslint

> Brackets@1.9.0-0 eslint C:\dev\brackets
> grunt eslint

Running "eslint:grunt" (eslint) task

Running "eslint:src" (eslint) task

Running "eslint:test" (eslint) task

Done, without errors.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants