About eslint use and configuration, and the use of prettier

eslint official website: https://eslint.bootcss.com/docs/user-guide/getting-started

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

Reference article: https://blog.csdn.net/qq_23876873/article/details/89677509

 

Custom rules eslint

New .prettierrc file (JSON format), and add configuration items

{
     "SEMI": to false , // cancel semicolon
     "singleQuote": to true // Set single quotes 
}

 

vscode plug installed automatically formatted

Search plugin .prettier, and install

Right formatting to

 

Guess you like

Origin www.cnblogs.com/yejunm3/p/12518349.html