No need to be able to copy directly

  1. Jingdong bump laboratory: guide. Aotu. IO/docs/HTML/t…
  2. Tencent entertainment: each tgideas.qq.com/doc/fronten…
  3. Vue: cn.vuejs.org/v2/style-gu…

Half the effort +1

  1. Eslint: JavaScript and JSX strong checker, focus on code quality and format, autoFix (prompt, modify)
  2. Prettier: Prettier is an opinionated code formatter with support for:(Just do it, your -> AST -> mine)
    • JavaScript (including experimental features)
    • JSX
    • Angular
    • Vue
    • Flow
    • TypeScript
    • CSS, Less, and SCSS
    • HTML
    • JSON
    • GraphQL
    • Markdown, including GFM and MDX
    • YAML
  3. EditorConfig: Helps maintain a consistent coding style for multiple developers working on the same project across different editors and ides

Sweet or salty bean curd

  1. Both can format code
  • Eslint automatically fixes errors based on rules
  • Prettier changes code to fit the rules before giving others a chance
  1. Eslint focuses more on “quality “(personal opinion) such as defining variables that are not used! Prettier didn’t care.

Multiple-choice tests are for kids. I want them all!

  1. Prettier formatting specification code was used before ESLint
  2. Eslint also focuses on handling syntactic rules

I prefer the salty 111