ESLint 非常敏感
ESLint is Extremely Touchy
抱歉,我想不出我要找的词,但我通过 vue cli 有一个默认的 vue 2.0 项目。我允许使用 ESLint,以帮助打字。我不完全确定它的用途,除了在这一点上激怒某人。
例如,
functionName() {} <-- no space after functionName is causing a runtime error
AnotherFunc () {
var thisthing = '' <-- You suck for not using another 4 spaces
///Comment <--- expected a space to begin comment after ///
我的意思是,这有点荒谬。我从中得到什么?如果没有这些可笑的格式要求,我如何获得 es6 智能感知?
编辑.eslintrc.js
和
替换:
extends: 'standard'
与:
extends: 'eslint:recommended'
那你的 linter 应该更轻松一些。
要禁用特定规则,请选中 this list 并在 .eslintrc.js
中编辑 rules
属性。
抱歉,我想不出我要找的词,但我通过 vue cli 有一个默认的 vue 2.0 项目。我允许使用 ESLint,以帮助打字。我不完全确定它的用途,除了在这一点上激怒某人。
例如,
functionName() {} <-- no space after functionName is causing a runtime error
AnotherFunc () {
var thisthing = '' <-- You suck for not using another 4 spaces
///Comment <--- expected a space to begin comment after ///
我的意思是,这有点荒谬。我从中得到什么?如果没有这些可笑的格式要求,我如何获得 es6 智能感知?
编辑.eslintrc.js
和
替换:
extends: 'standard'
与:
extends: 'eslint:recommended'
那你的 linter 应该更轻松一些。
要禁用特定规则,请选中 this list 并在 .eslintrc.js
中编辑 rules
属性。