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
Warn for Prettier "errors" as to have eslint --fix fix formatting errors as well
Use JSON instead of Yaml to configure ESLint. Mainly because VS Code will give autocompletion for ESLint files that are authored in JSON:
I also think we should remove eslint-plugin-import because it'll display an error when importing sketch/* modules which will confuse users.
I tried configure eslint-plugin-import in a way that it will ignore sketch/*, but you can't ignore all sketch/* modules at once, you can only do the following:
Warn for Prettier "errors" as to have eslint --fix fix formatting errors as well
Interesting. I personally prefer to show it at all to not be disturb while coding and just fix it on save/pre-commit. But I can be convinced otherwise. What's your workflow with eslint --fix?
Use JSON instead of Yaml to configure ESLint.
Happy to
If you agree @mathieudutour I will remove eslint-plugin-import in this PR as well.
I'd prefer to ignore the sketch modules. It's unlikely that they are going to change anyway and I really like this plugin 😄
Interesting. I personally prefer to show it at all to not be disturb while coding and just fix it on save/pre-commit. But I can be convinced otherwise. What's your workflow with eslint --fix?
I've configured VS Code to run auto fix on save (eslint.autoFixOnSave). I do agree with you that formatting errors can be a bit noisy. But ESLint can't auto fix a rule that doesn't emit a warning or an error :/. On the other hand, I wouldn't want users to have to download two plugins for their editor (ESLint and Prettier).
I'd prefer to ignore the sketch modules. It's unlikely that they are going to change anyway and I really like this plugin 😄
Sure :)
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.
eslint --fixfix formatting errors as wellI also think we should remove
eslint-plugin-importbecause it'll display an error when importingsketch/*modules which will confuse users.I tried configure
eslint-plugin-importin a way that it will ignoresketch/*, but you can't ignore allsketch/*modules at once, you can only do the following:{ "settings": { "import/core-modules": ["sketch", "sketch/dom", ...] } }If you agree @mathieudutour I will remove
eslint-plugin-importin this PR as well.