-
-
Notifications
You must be signed in to change notification settings - Fork 208
Merge with eslint-plugin-prettify #21
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
Changes from 1 commit
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
3e983f1
Chore: Use eslint-plugin-prettier without symlink
zertosh bb912f4
Chore: Lint .eslintrc.js via CLI automatically
zertosh e313bdd
Chore: Update remaining repo links
zertosh 3d757e6
New: Replace implementation with line-by-line reporting (fixes #17)
zertosh 8d9b6e7
Fix: Use non-global line ending regex
zertosh 484da18
Fix: Use unicode literals instead of escapes in showInvisibles
zertosh f58b054
Fix: Use documented range form when calling insertTextAfterRange
zertosh a0c8a0e
Fix: Un-shebang test file
zertosh 7ba59f6
Fix: ESLint 4.x compat (handle shebangs and no deprecated APIs)
zertosh 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
Next
Next commit
Chore: Use eslint-plugin-prettier without symlink
- Loading branch information
commit 3e983f1408dd1e0f88aca8ca48101bbaf85852ed
There are no files selected for viewing
This file contains hidden or 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
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.
I think this approach is going to break after eslint/eslint#8465 is merged, which is likely to happen in ESLint 4. (The change makes
Pluginsan ES6 class rather than a global mutable object, to prevent unrelated modules from conflicting with each other if they both happen to be using eslint in the same process.)Uh oh!
There was an error while loading. Please reload this page.
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.
Oh thanks for the heads up! Modifying the
node_modulesafter an install causes yarn issues :/QQ: We also use this approach at fb because you can't use a path as a plugin. I understand the module resolution complications of supporting relative paths, but would the ESLint team be open to accepting a PR for absolute paths to a plugin?
Uh oh!
There was an error while loading. Please reload this page.
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.
There's an accepted issue for it at eslint/eslint#6237, but when I looked into it a little while ago it seemed like it could introduce problems even when absolute paths are used. Basically, if I load
eslint-plugin-foowith a relative path, and I'm also using a shareable config that references something else calledeslint-plugin-fooinnode_modules(e.g. another version of the plugin), it wouldn't be possible to configure rules from both plugins independently.Feel free to comment on that thread if you have any ideas for how to handle that, though.
Hmm, I hadn't realized modifying
node_modulesbreaks yarn. Maybe we should keepPluginssomehow until we have a better way to refer to plugins by path.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.
It causes
yarn checkto fail. Also, it'll break a new yarn feature I'll be upstreaming soon: "watchman-based check". Basically, you get instant (sub ~100ms) fullnode_modulesverification, which lets use putyarnin front of every js script w/o having to worry about stale modules.