A small wrapper of eslint, pre-configured to Womply's code standard
This is two things:
- drop and run
eslint -c node_modules/womply-eslint/womply-eslint-config.json *.js
- Trivially simple gulp task
Gulp task, you say?
var lint = ;var tgts = "gulpfile.js estask.js";lint;
And now you have a gulp task named
lint, which you may use like so:
Because this way, as eslint gets stronger, as Womply's definitions evolve, etc, all we need to do is to keep one module up to date, then all dependents will be brought into line.
Which is pretty sweet, if you think about it.
But I have different preferences
Great! Don't we all?
:) Make one for yourself! Here's how:
- Fork the original repo
sc-eslint-config.jsonto your own config file
- Change the contents - every rule is spelled out in that file
- Change what
lrulespoints to, if using the gulp task
- Push your own repo and your own NPM module
- Point back to these instructions, for others' sake
However, for company stuff, please use this repo. The whole point is centralization and uniformity.