config prettier
This commit is contained in:
7
.prettierignore
Normal file
7
.prettierignore
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
node_modules
|
||||||
|
coverage
|
||||||
|
dist
|
||||||
|
build
|
||||||
|
.build
|
||||||
|
|
||||||
|
# etc...
|
||||||
12
.prettierrc
Normal file
12
.prettierrc
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"arrowParens": "avoid",
|
||||||
|
"bracketSpacing": false,
|
||||||
|
"jsxBracketSameLine": false,
|
||||||
|
"printWidth": 80,
|
||||||
|
"proseWrap": "always",
|
||||||
|
"semi": false,
|
||||||
|
"singleQuote": true,
|
||||||
|
"tabWidth": 2,
|
||||||
|
"trailingComma": "all",
|
||||||
|
"useTabs": false
|
||||||
|
}
|
||||||
@@ -1,11 +1,11 @@
|
|||||||
const name = "Freddy";
|
const name = 'Freddy'
|
||||||
typeof name === "string";
|
typeof name === 'string'
|
||||||
|
|
||||||
if (!("serviceWorker" in navigator)) {
|
if (!('serviceWorker' in navigator)) {
|
||||||
// you have an old browser :-(
|
// you have an old browser :-(
|
||||||
}
|
}
|
||||||
|
|
||||||
const greeting = "hello";
|
const greeting = 'hello'
|
||||||
console.log(`${greeting} world!`);
|
console.log(`${greeting} world!`)
|
||||||
|
|
||||||
[(1, 2, 3)].forEach(x => console.log(x));
|
;[(1, 2, 3)].forEach(x => console.log(x))
|
||||||
|
|||||||
Reference in New Issue
Block a user