我安装eslint
并在运行命令时,npm run lint
然后每次它要求一一安装所有依赖项。是否有任何命令选项可以安装一次而不是一直运行npm run lint
?
package.json
{
"private": true,
"devDependencies": {
"gulp": "3.9.0",
"laravel-elixir-livereload": "1.1.2",
"babel-eslint": "4.1.1",
"eslint": "1.3.1",
"eslint-config-airbnb": "0.0.8",
"eslint-plugin-react": "3.3.1",
"laravel-elixir-eslint": "1.0.0"
},
"dependencies": {
"laravel-elixir": "3.2.6",
"bootstrap-sass": "3.3.5",
"jquery": "2.1.4"
},
"scripts": {
"lint": "./node_modules/.bin/eslint resources/assets/js/"
}
}