eslint objectcurlyspacing All In One

eslint object-curly-spacing All In One

该规则强制在对象字面量、解构赋值 和 import/export 说明符的花括号中使用一致的空格。

// bad ❌
const { href } = this.$router.resolve(router);

// good ✅
const {href} = this.$router.resolve(router);

refs

https://eslint.org/docs/rules/object-curly-spacing

https://cn.eslint.org/docs/rules/object-curly-spacing



©xgqfrms 2012-2020

www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!

原创文章,版权所有©️xgqfrms, 禁止转载 ️,侵权必究⚠️!


xgqfrms
原文地址:https://www.cnblogs.com/xgqfrms/p/15652017.html