vscode "editor.formatOnSave": true
https://blog.echobind.com/integrating-prettier-eslint-airbnb-style-guide-in-vscode-47f07b5d7d6a https://github.com/airbnb/javascript/tree/master/packages/eslint-config-airbnb
| { | |
| "extends": ["airbnb", "prettier"], | |
| "plugins": ["prettier"], | |
| "rules": { | |
| "prettier/prettier": ["error"] | |
| }, | |
| } |
| { | |
| "printWidth": 100, | |
| "singleQuote": true, | |
| "trailingComma": true | |
| } |
| # Install the ESLint and Prettier libraries | |
| npm install -D eslint prettier | |
| # If you’re using npm 5+, install the Airbnb config. | |
| npx install-peerdeps --dev eslint-config-airbnb | |
| # Install eslint-config-prettier, eslint-plugin-prettier | |
| npm install -D eslint-config-prettier eslint-plugin-prettier |