Conflicts between eslint and webstrom formatting

there are some conflicts between eslint rules and webstrom shortcut key formatting

for example:

<Route path="/list" component={TopicList} />,
Under the

airbnb specification, there must be a space in front of the / of the self-closing tag, but it will eliminate the space after the format shortcut key is pressed

and automatic introduction

import TopicList from "../views/topic-list/index"

it will be double quotation marks when it is automatically introduced, which conflicts with the specification of single quotation marks. I don"t know whether it can be set

.

and when using vue

<script>
    export default {
        
    }
</script>

once formatted, indentation will be generated in script, resulting in two or four more spaces. Can you set eslint to correctly identify the number of spaces here instead of modifying the setting of webstorm?

Feb.26,2021

clipboard.png
,,,/

clipboard.png

clipboard.png
webstorm, tab,tab 2,.

eslint ,
http://eslint.cn/docs/rules/n...

webstorm,eslint,

clipboard.png


http://eslint.cn/docs/rules/

,
clipboard.png


1. APPly Eslint code style rules
image.png

2.

  • /
  • script

@
clipboard.png

script
image.png

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b303f7-2b477.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b303f7-2b477.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?