简体   繁体   English

ESLint:等号周围的间距

[英]ESLint: Spacing around equal sign

I'm using airbnb for my base ESLint, but I noticed it doesn't seem to tag whitespace violations like it used too:我正在为我的基本 ESLint 使用airbnb ,但我注意到它似乎并没有像它使用的那样标记空格违规:

state={

Should raise an issue and be correct to:应该提出问题并正确:

state = {

Same with functions:与功能相同:

toggleSidebar=() => {

Which should be:应该是:

toggleSidebar = () => {

What's the rule to fix this and why did they stop flagging it?解决这个问题的规则是什么,为什么他们停止标记它?

检查空间中缀操作规则

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM