sc-eslint

1.3.7 • Public • Published

sc-eslint

A small wrapper of eslint, pre-configured to StoneCypher's preferences

Language   Platform   License   Status

NPM Downloads

What?

This is two things:

  1. drop and run eslint -c node_modules/sc-eslint/sc-eslint-config.json *.js
  2. Trivially simple gulp task

Gulp task, you say?

Trivially simple.

var lint = require("sc-eslint");
var tgts = "gulpfile.js estask.js";
 
lint.gulpreg(gulp, { "targets" : tgts });

And now you have a gulp task named lint, which you may use like so:

gulp.task('default', ['lint']);

Why?

Because this way, as eslint gets stronger, as my preferences evolve, etc, all I 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:

  1. Fork this repo
  2. Copy sc-eslint-config.json to your own config file
  3. Change the contents - every rule is spelled out in that file
  4. Change what lrules points to, if using the gulp task
  5. Push your own repo and your own NPM module
  6. Point back to these instructions, for others' sake

Polemic

sc-eslint is MIT licensed, because viral licenses and newspeak language modification are evil. Free is only free when it's free for everyone.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.3.7
    7
    • latest

Version History

Package Sidebar

Install

npm i sc-eslint

Weekly Downloads

25

Version

1.3.7

License

MIT

Last publish

Collaborators

  • stonecypher