README.md: add .prettierrc config
This commit is contained in:
parent
9fb13da05a
commit
3bd453bf73
23
README.md
23
README.md
@ -69,7 +69,6 @@ Install [VS Code ESLint extension](https://marketplace.visualstudio.com/items?it
|
||||
"source.fixAll.eslint": "explicit",
|
||||
"source.removeUnusedImports": "explicit"
|
||||
},
|
||||
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
||||
"editor.formatOnSave": true,
|
||||
"eslint.lintTask.enable": true,
|
||||
"eslint.validate": [
|
||||
@ -82,3 +81,25 @@ Install [VS Code ESLint extension](https://marketplace.visualstudio.com/items?it
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
Recomended **.prettierrc**:
|
||||
|
||||
```json
|
||||
{
|
||||
"arrowParens": "always",
|
||||
"bracketSameLine": false,
|
||||
"bracketSpacing": true,
|
||||
"endOfLine": "auto",
|
||||
"insertPragma": false,
|
||||
"jsxSingleQuote": false,
|
||||
"printWidth": 100,
|
||||
"proseWrap": "preserve",
|
||||
"quoteProps": "as-needed",
|
||||
"requirePragma": false,
|
||||
"semi": true,
|
||||
"singleQuote": true,
|
||||
"tabWidth": 2,
|
||||
"trailingComma": "all",
|
||||
"useTabs": false
|
||||
}
|
||||
```
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user