我如何获得Netbeans插件eslint的工作?
问题描述:
这是我的过程我如何获得Netbeans插件eslint的工作?
- 安装的node.js/NPM https://www.npmjs.com/get-npm
- 安装eslint NPM我-g eslint
- 选择工具 - >选项 - > HTML/JS - > ESLint
- 套装ESLint路径为C:\ Program Files文件\的NodeJS
- 设置的conf路径Z:.eslintrc.json
没有行动项目s的ESLint,但是当我从命令行运行它时,我得到了该文件的错误。
答
我以这种方式配置在的Ubuntu 16.04和的Netbeans 8.2
{
"env": {
"browser": true,
"node": true
},
"extends": "eslint:recommended",
"rules": {
"indent": [
"error",
3
],
"linebreak-style": [
"error",
"unix"
],
"no-console": "off",
"quotes": [
"error",
"single"
],
"semi": [
"error",
"always"
]
}
}
开始=>