config prettier
This commit is contained in:
17
.prettierrc
Normal file
17
.prettierrc
Normal file
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"arrowParens": "avoid",
|
||||
"bracketSpacing": false,
|
||||
"htmlWhitespaceSensitivity": "css",
|
||||
"insertPragma": false,
|
||||
"jsxBracketSameLine": false,
|
||||
"jsxSingleQuote": false,
|
||||
"printWidth": 80,
|
||||
"proseWrap": "always",
|
||||
"quoteProps": "as-needed",
|
||||
"requirePragma": false,
|
||||
"semi": false,
|
||||
"singleQuote": true,
|
||||
"tabWidth": 2,
|
||||
"trailingComma": "all",
|
||||
"useTabs": false
|
||||
}
|
||||
@@ -1,10 +1,10 @@
|
||||
const username = "freddy";
|
||||
typeof username === "string";
|
||||
const username = 'freddy'
|
||||
typeof username === 'string'
|
||||
|
||||
if (!("serviceWorker" in navigator)) {
|
||||
if (!('serviceWorker' in navigator)) {
|
||||
// you have an old browser :-(
|
||||
}
|
||||
|
||||
const greeting = "hello";
|
||||
console.log(`${greeting} world!`);
|
||||
[1, 2, 3].forEach(x => console.log(x));
|
||||
const greeting = 'hello'
|
||||
console.log(`${greeting} world!`)
|
||||
;[1, 2, 3].forEach(x => console.log(x))
|
||||
|
||||
Reference in New Issue
Block a user