Skip to content
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

Set up linting #29

Merged
merged 5 commits into from Oct 14, 2019
Merged

Set up linting #29

merged 5 commits into from Oct 14, 2019

Conversation

MartinRosenberg
Copy link
Collaborator

@MartinRosenberg MartinRosenberg commented Oct 14, 2019

This PR doesn't lint imports. Still looking into how do to that well. Each rule/preset/plugin does some of the work, and they all conflict with each other.

* Add Prettier plugin/config to ESLint
* Set lint-staged to run both ESLint and Prettier as appropriate
* Broaden lint-staged globs, because gitignored files won't be staged
anyway
* Lint `./tests`
* Sort `package.json` canonically
* Fix project name in `package.json`
@MartinRosenberg MartinRosenberg changed the title Set up and run linting Set up linting Oct 14, 2019
Manually alphabetize import groups and lines pending the merging of
import-js/eslint-plugin-import#1360, using WebStorm's Optimize imports
@MartinRosenberg
Copy link
Collaborator Author

MartinRosenberg commented Oct 14, 2019

Added import linting, per discussion on #30. Revisit that once import-js/eslint-plugin-import#1360 is merged. In the meantime, perhaps make some nominal effort to keep imports alphabetized manually.

@taniarascia taniarascia merged commit 53f34d1 into taniarascia:master Oct 14, 2019
@taniarascia taniarascia mentioned this pull request Oct 14, 2019
@MartinRosenberg MartinRosenberg added the Type: Feature New feature or request label Oct 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants