No need to be able to copy directly
- Jingdong bump laboratory: guide. Aotu. IO/docs/HTML/t…
- Tencent entertainment: each tgideas.qq.com/doc/fronten…
- Vue: cn.vuejs.org/v2/style-gu…
Half the effort +1
- Eslint: JavaScript and JSX strong checker, focus on code quality and format, autoFix (prompt, modify)
- 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
- 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
- Both can format code
- Eslint automatically fixes errors based on rules
- Prettier changes code to fit the rules before giving others a chance
- 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!
- Prettier formatting specification code was used before ESLint
- Eslint also focuses on handling syntactic rules