You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 6, 2021. It is now read-only.
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
I wanted to enable the indent rule but it seemed to be influenced by the trailing whitespaces.
So I've enabled no-trailing-spaces rule and, since there were only a few warnings the eol-last rule too.
Sorry for the big PR but it's only whitespaces changes and so there should not be any change in behaviour.
@abose@zaggino This PR can bitrot easily: I appreciate a fast turnaround.
@ficristo@zaggino As part of PR https://github.com/adobe/brackets/pull/11693/files .brackets.json file was edited from "linting.prefer": ["JSLint", "JSHint"], to "linting.prefer": ["ESLint"],
This has caused JSline to stop working from brackets code base when editing in brackets editor!
As we have not yet integrated eslint into the lint panel in brackets, brackets does not lint JS files now.
@abose You are right... I'm using the eslint plugin so I didn't saw it...
Meanwhile you can use grunt eslint which run already on travis.
For now it's a bit annoying, but #11988 should fix this.
Waiting that PR is merged you could:
reverting the two PR of ESLint: this seems more work than what it is worth
reintroducing JSLint: this could interfere with ESLint rules
What do you think?
I was thinking of something like that but now figured it doesn't work like that.
What will happen if we just have JSLint here for the time being till #11988 is merged?
When I written the PR to integrate ESLint I tried to use similar rules to the ones already there.
Using JSLint shouldn't create problems but there is a chance that they could interfere: JSLint could warn about something that's fine for ESLint or worse could not warn something that's not fine for ESLint.
@abose@zaggino@ficristo Sorry for not speaking up sooner, but I have serious concerns about this change. Brackets itself (and CodeMirror in general) automatically generates whitespace on blank lines based on indent. This ESLint rule means we will be constantly fighting with Brackets's own output, which seems like a bad policy.
I would strongly suggest we change the ESLint setting to "no-trailing-spaces": [2, { "skipBlankLines": true }] so that we don't have that problem.
If I'd noticed this sooner I would have also suggested reverting all the changes that remove whitespace on blank lines, so that we don't have verbose diffs where people editing the code gradually start reintroducing all that indent whitespace... but I guess it's too late for that now :-/
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
None yet
5 participants
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.
I wanted to enable the
indent
rule but it seemed to be influenced by the trailing whitespaces.So I've enabled
no-trailing-spaces
rule and, since there were only a few warnings theeol-last
rule too.Sorry for the big PR but it's only whitespaces changes and so there should not be any change in behaviour.
@abose @zaggino This PR can bitrot easily: I appreciate a fast turnaround.