Add prettier
This commit is contained in:
parent
34f876cecc
commit
a3ceeaf0f3
5
package-lock.json
generated
5
package-lock.json
generated
|
@ -6792,6 +6792,11 @@
|
||||||
"integrity": "sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=",
|
"integrity": "sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
|
"prettier": {
|
||||||
|
"version": "1.19.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/prettier/-/prettier-1.19.1.tgz",
|
||||||
|
"integrity": "sha512-s7PoyDv/II1ObgQunCbB9PdLmUcBZcnWOcxDh7O0N/UwDEsHyqkW+Qh28jW+mVuCdx7gLB0BotYI1Y6uI9iyew=="
|
||||||
|
},
|
||||||
"pretty-error": {
|
"pretty-error": {
|
||||||
"version": "2.1.1",
|
"version": "2.1.1",
|
||||||
"resolved": "https://registry.npmjs.org/pretty-error/-/pretty-error-2.1.1.tgz",
|
"resolved": "https://registry.npmjs.org/pretty-error/-/pretty-error-2.1.1.tgz",
|
||||||
|
|
|
@ -14,6 +14,7 @@
|
||||||
"highlightjs": "^9.16.2",
|
"highlightjs": "^9.16.2",
|
||||||
"postcss-import": "^12.0.1",
|
"postcss-import": "^12.0.1",
|
||||||
"postcss-nested": "^4.2.1",
|
"postcss-nested": "^4.2.1",
|
||||||
|
"prettier": "^1.19.1",
|
||||||
"tailwindcss": "^1.1.3",
|
"tailwindcss": "^1.1.3",
|
||||||
"tailwindcss-interaction-variants": "^2.2.0",
|
"tailwindcss-interaction-variants": "^2.2.0",
|
||||||
"tailwindcss-skip-link": "^1.0.1",
|
"tailwindcss-skip-link": "^1.0.1",
|
||||||
|
|
10
prettier.config.js
Normal file
10
prettier.config.js
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
module.exports = {
|
||||||
|
endOfLine: 'lf',
|
||||||
|
printWidth: 80,
|
||||||
|
proseWrap: 'always',
|
||||||
|
quoteProps: 'as-needed',
|
||||||
|
singleQuote: true,
|
||||||
|
tabWidth: 2,
|
||||||
|
trailingComma: 'all',
|
||||||
|
useTabs: false,
|
||||||
|
}
|
Reference in a new issue