": "error", "no-empty-function": "error", "no-implicit-coercion": "error", "no-invalid-this..."no-invalid-this": "error" 禁止 this 关键字出现在类和类对象之外。 "no-loop-func":"error" 禁止在循环中出现 function 声明和表达式。
no-dupe-args": 2, //函数参数不能重复 "no-empty": 2, //块语句中的内容不能为空 "no-func-assign": 2, //禁止重复的函数声明 "no-invalid-this
no-dupe-args': 2, //函数参数不能重复 'no-empty': 2, //块语句中的内容不能为空 'no-func-assign': 2, //禁止重复的函数声明 'no-invalid-this
"no-inner-declarations": [2, "functions"],//禁止在块语句中使用声明(变量或函数) "no-invalid-regexp": 2,//禁止无效的正则表达式 "no-invalid-this
no-duplicate-case": 2, "no-dupe-args": 2, "no-empty": 2, "no-func-assign": 2, "no-invalid-this
“no-inner-declarations”: [2, “functions”],//禁止在块语句中使用声明(变量或函数) “no-invalid-regexp”: 2,//禁止无效的正则表达式 “no-invalid-this
"no-inner-declarations": [2, "functions"],//禁止在块语句中使用声明(变量或函数) "no-invalid-regexp": 2,//禁止无效的正则表达式 "no-invalid-this...Practices * @reason this 的使用很灵活,事件回调中可以表示当前元素,函数也可以先用 this,等以后被调用的时候再 call */ 'no-invalid-this
领取专属 10元无门槛券
手把手带您无忧上云