npm init
Production package (jQuery, react...)
npm install mypackage --save
Only development package (test suites, dev toolbars...)
npm install mypackage --save-dev
In order to use es6 inside webpack config!
Requires babel-register
Use html-webpack-plugin
Install it, babel-eslint is used to lint babel code
Add a lint entry to the package.json:
{
"name": "smartbox",
...,
"scripts": {
...,
"lint": "./node_modules/eslint/bin/eslint.js ."
},
"author": "abidibo",
...
}
Run with
$ npm run lint
In .eslintrc
"rules": {
...,
"comma-dangle": [2, "only-multiline"],
...,
}
Vim? https://github.com/mtscout6/syntastic-local-eslint.vim