Vue eslint indent detection problem

clipboard.png


clipboard.png
it will not be reported and displayed correctly. No matter how I configure indent in my rules, it will not solve the indentation problem under the script tag! ESLINT3 doesn"t have this problem, but eslint 4 does!

Mar.28,2021

I set the top box for formatting directly in WebStorm


:https://github.com/vuejs/esli...


vue


.eslintrc.js




clipboard.png
vue project, just set this


eslint is configured with 2 space indentation rules, you here are 4 space indentation, you reported an error


excuse me, has this problem been solved? I met it, too. I don't know how to solve it!


I have the same problem. Because when using quick formatting code with webStorm, the first line under < script > will automatically indent 2 squares, while eslint will think this is an error.


I have found a solution to this problem, which is to upgrade your eslint-loader vue-cli build using version 1.7.1 of eslint-loader. This problem will not occur when I upgrade to 1.9.0. It is suggested that you can try

.
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-1e59b76-45544.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-1e59b76-45544.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?