SublimeLinter - nodeca plugin
SublimeLinter - nodeca plugin
当我尝试使用 ESLint 插件 Nodeca 时,SublimeLinter 停止 linting
这是我的.eslintrc:
{
"env": {
"browser": true,
"node": true
},
"plugins":["nodeca"],
"rules": {
"quotes": 0,
"no-underscore-dangle": 0,
"no-path-concat": 0,
"valid-jsdoc": 1,
"no-reserved-keys": 1,
"block-scoped-var": 1,
"no-lonely-if": 1,
"no-nested-ternary": 1,
"no-multiple-empty-lines": 1,
"space-after-keywords": [1, "always"],
"space-before-blocks": [1, "always"],
"nodeca/indent": [2, "spaces", 4]
}
}
我知道这只是那个插件,因为当我注释掉这些行时它可以工作
"plugins":["nodeca"],
"nodeca/indent": [2, "spaces", 4]
崇高的控制台显示:
SublimeLinter: eslint: Grunt.config.js ['/usr/local/bin/eslint', '--format=compact', '--stdin']
SublimeLinter: eslint output:
<text>: line 16, col 48, Error - Trailing comma. (no-comma-dangle)
1 problem
但是当我将这些行放回去使用 nodeca 时,linter 停止工作,我在控制台中得到这个:
SublimeLinter: eslint: Grunt.config.js ['/usr/local/bin/eslint', '--format=compact', '--stdin']
我知道该插件是与 node 一起安装的,因为我在我的 package.json 和 npm 列表中看到了它。
我对前端开发很陌生,所以你能给我的任何帮助将不胜感激!
谢谢!
事实证明,我只需要全局安装节点插件:
sudo npm install eslint-plugin-nodeca -g
- Ckeditor-plugin:插入虚假元素add不情愿<p>标签前后
- Loopback AngularJS JavaScript SDK - Gruntfile plugin
- 可以't让browserfy使用babel-plugin-transform类属性
- 使用AdMob Plugin Pro时出错
- Jquery Selected plugin - 由 Ajax 动态填充列表
- 在Grails中使用Asset-Pipeline Plugin制作一个视图加载特定的JavaScript
- 来自plugin.google.maps(不是com.google.maps)的标记不会改变其位置
- jquery plugin(Impromptu)
- jquery-plugin-1配置设置从另一个配置设置获取值
- jQuery Accordion plugin - SHOPIFY
- Scrollsnap JQuery Plugin
- plugin iframe-resizer get the parentIFrame
- RequireJS and jQuery plugin
- 如何在jQuery.awesomeCloud.plugin上添加jQuery工具提示功能
- Adobe Javascript Vs. Plugin
- jquery plugin imgpreload
- Chart.js jQuery Plugin
- SublimeLinter - nodeca plugin
- cordova:模块“cordova/plugin/SmsInboxPLugin 未找到
- 在 WordPress-plugin 中包含 jQuery