a-standard
like standard, but with a bigger punch
This is a new take on Standard. It's made specifically for new node projects running babel, and includes more rules for better looking code. It also adds babel specific configuration for those pesky es7 linting errors. What are those styles you might ask?
- No console log statements! Use a library for that sort of thing
- No sync methods. Ever.
- Template literals are nice. Use them.
- Are you really still using
var
instead of the amazingconst
andlet
?
That is just a small taste of what aStandard offers. For a better picture, check the always up to date, unit tested, linted file here.
Usage
npm install a-standard
Then add a convenience function to your package.json
:
"scripts": {
"lint": "a-standard"
}
Or you can use the eslint config directly.
Configuration
aStandard uses the standard-engine which in turn uses eslint. Simply put the options you want in your package.json
like so:
"a-standard": {
"env": {
"jquery": true,
"mocha": true
}
}