this.axios.get("api/list").then((res)=>{ ^ ✘ http://eslint.org/docs/rules/arrow-spacing...list").then((res)=>{ ^ ✘ http://eslint.org/docs/rules/arrow-spacing... ^ ✘ 6 problems (6 errors, 0 warnings) Errors: 2 http://eslint.org/docs/rules/arrow-spacing
和空格 "prefer-arrow-callback": 0, //比较喜欢箭头回调 "arrow-parens": 0, //箭头函数用小括号括起来 "arrow-spacing
, //禁止混用tab和空格 "prefer-arrow-callback": 0, //比较喜欢箭头回调 "arrow-parens": 0, //箭头函数用小括号括起来 "arrow-spacing
, //禁止混用tab和空格 'prefer-arrow-callback': 0, //比较喜欢箭头回调 'arrow-parens': 0, //箭头函数用小括号括起来 'arrow-spacing
always始终允许;never始终不允许 'objectsInObjects': false, 'arraysInObjects': false }], 'arrow-spacing
//禁用with "array-bracket-spacing": [2, "never"],//是否允许非空数组里面有多余的空格 "arrow-parens": 0,//箭头函数用小括号括起来 "arrow-spacing
prefer-spread': 'error', // 建议使用spread语法而不是.apply() 'prefer-arrow-callback': 'error', // 建议使用箭头函数 'arrow-spacing
,//禁用with “array-bracket-spacing”: [2, “never”],//是否允许非空数组里面有多余的空格 “arrow-parens”: 0,//箭头函数用小括号括起来 “arrow-spacing
no-mixed-spaces-and-tabs": 2, "prefer-arrow-callback": 0, "arrow-parens": 0, "arrow-spacing
/禁用with "array-bracket-spacing": [2, "never"],//是否允许非空数组里面有多余的空格 "arrow-parens": 0,//箭头函数用小括号括起来 "arrow-spacing
eslint: prefer-arrow-callback, arrow-spacing jscs: requireArrowFunctions 它创建了一个在 this 上下文中执行的函数的版本,这通常是你想要的
,//禁用with "array-bracket-spacing": [2, "never"],//是否允许非空数组里面有多余的空格 "arrow-parens": 0,//箭头函数用小括号括起来 "arrow-spacing
/ good new Date(...[2016, 8, 5]) 箭头函数 当你必须使用函数表达式(传递匿名函数)时,使用箭头函数标记. eslint: prefer-arrow-callback, arrow-spacing
// 要求箭头函数体使用大括号 "arrow-body-style": "error", // 要求箭头函数的箭头之前或之后有空格 "arrow-spacing
allowClassStart": true }], "indent": ["error", 2], "arrow-body-style": ["error", "as-needed"], "arrow-spacing
领取专属 10元无门槛券
手把手带您无忧上云