In the Vue cli component, there is a long text in the HTML encoding, and eslint reports an error: line 10 exceeds the maximum line length of 100 . Eslint sets that a line encoding cannot exceed 100 characters at most
Scheme 1:
Solution:
In the folder, there is a JS file. Eslintrc. JS to set eslint syntax, and set “Max len”: [“error”, {Code: 300}], as shown in the following figure
In the file, rules is the configured eslint syntax detection rule
You can set the encoding amount of a line according to your own needs.
Scheme 2:
the ESLIt syntax specification is ignored by setting ESLIt disable, and finally the omission is ended by setting ESLIt enable
Similar Posts:
- How to Solve Eslint syntax error in Vue project
- [Solved] Syntax Error: TypeError: eslint.CLIEngine is not a constructor
- Error reporting of console.log in eslint
- [Solved] Expected linebreaks to be ‘LF’ but found ‘CRLF’.
- [Solved] Vue3+ts+eslint Error: warning Unexpected any. Specify a different type, warning Delete `·` , Missing return type on function, Require statement not part of import statement
- [Solved] ESLint: ‘React’ was used before it was defined.(no-use-before-define)
- vue ESLint: ‘common’ is not defined. (no-undef)
- How to Solve Vue Space Line Wrap Error
- How to solve the problem of “no such BSSID available” when handling 5GHz frequency band WiFi by using air play ng
- [Solved] Eslint Error: error ‘***’ is assigned a value but never used no-unused-vars