How to solve webstorm Missing space before value for key 'index' vue

problem: when writing code, if you don"t add a space, there will be an error prompt with a red underscore.
temporary solution: be careful to add spaces when writing code, or alt+enter, but it is tedious to operate every time, so I hope you don"t have this hint.
Editor: webstorm;
Project: vue
clipboard.png

clipboard.png

export default {
    data () {
        return {
            index:"",
            buttonLoading: false,
            formValidate: {

            },
   }
}
Jan.12,2022

esLint check rule, property value needs to be followed by a space. Personal advice is to add, if you do not want to show the red line, modify the relevant configuration of the editor.

webstorm is not used now. VScode IDE is recommended for the front end.

Menu