This repository has been archived by the owner on Jan 20, 2019. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 54
[RFC] Replace ember-cli-eslint with the standard eslint #121
Merged
Merged
Changes from 1 commit
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
1c50958
[RFC] Remove `broccoli-lint-eslint` and `ember-cli-eslint`
4f3a56c
Adding summary and more context
36dce72
Remove consensus
6ae2c50
Be more descriptive about what this proposal is trying to achieve
e9eb29f
Add information about redefining `npm test`
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
- Start Date: 2018-08-13 | ||
- RFC PR: (leave this empty) | ||
|
||
# Summary | ||
|
||
Remove https://github.com/ember-cli/ember-cli-eslint from projects `ember-cli` generates. | ||
|
||
# Motivation | ||
|
||
1. Improve our build speed | ||
2. Hacks required to support features such as [PR #122 | ||
broccoli-lint-eslint](https://github.com/ember-cli/broccoli-lint-eslint/pull/122#discussion-diff-153937455R28) | ||
3. Simplicity. `eslint` is common among JS stack, and integrations with editors | ||
/ precommit-hooks are ubiquitous. Removing this layer of abstraction will | ||
simplify how `eslint` is used throughout `ember-cli`. | ||
|
||
# Detailed design | ||
|
||
1. Change blueprint to pull in `eslint` as opposed to `ember-cli-eslint` under | ||
`devDependencies`. | ||
2. Provide documentation on `eslint` and editor integration as well as precommit hooks | ||
|
||
|
||
# How We Teach This | ||
|
||
Providing documentation should suffice. Also, going towards a much more explicit | ||
path, this should become _easier_ to teach because of less abstractions. | ||
|
||
# Drawbacks | ||
|
||
1. No console warnings during builds | ||
2. lint failures are no longer included in browser tests | ||
|
||
# Alternatives | ||
|
||
N/A | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We at least mention the alternative of: "do nothing" (not that I think that is a good thing to do...) |
||
|
||
# Unresolved questions | ||
|
||
N/A |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Maybe:
3. Add to the default Travis blueprint:
To make it clear that linting is still running (and still part of the test process) it just doesn't run along side the other tests.
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 think this is a good idea. Thanks @jrjohnson!
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.
@jrjohnson - You are totally correct! So much so, that its already what we do!
https://github.com/ember-cli/ember-new-output/blob/v3.4.1/.travis.yml#L25-L27