B
B
Bogdan2017-05-05 14:33:43
JavaScript
Bogdan, 2017-05-05 14:33:43

Utilities (Gulp plugin) for shaping (codestyle) for SCSS, JS and CoffeeScript?

Hello. Prompt utilities for formation (codestyle) for SCSS, JS and CoffeeScript, would be nice some plugin for Gulp? Please advise from personal experience. Thank you.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
Konstantin Kitmanov, 2017-05-05
@k12th

I do not advise integrating with gulp, for technical reasons, the gulp-linter bundle is slower than just for example eslint ./src. Integrate with the IDE, do a task in package.json, do a check for changed files in the pre-commit hook in git.

  • Styles - Stylelint understands all normal preprocessors (scss/sass, less, stylus). Part of the rules can be corrected automatically by the related stylefmt tool. There are practically no alternatives.
  • JS - eslint is very good, a lot of flexible rules, plugins and presets for these rules. Some of the rules govern automatically. There is also the so-called. Standard - do not get caught by the name - it's just someone's wet fantasy that he writes JS well. jslint is half dead, jshint has probably not been used by anyone except the author for a long time. For coffeescript xs, a quick google gives abandoned https://github.com/clutchski/coffeelint

A
Alexey Bulba, 2017-05-05
@Xserber

SCSS - stylelint
JS - eslint
Download popular configs or write your own.
Ready.
PS CoffeeScript is still alive O_o The second version hasn't been released yet.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question