diff --git a/package-lock.json b/package-lock.json index 971ecdcb..e0638294 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6792,6 +6792,11 @@ "integrity": "sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=", "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": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/pretty-error/-/pretty-error-2.1.1.tgz", diff --git a/package.json b/package.json index 991a4b55..c48dd688 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ "highlightjs": "^9.16.2", "postcss-import": "^12.0.1", "postcss-nested": "^4.2.1", + "prettier": "^1.19.1", "tailwindcss": "^1.1.3", "tailwindcss-interaction-variants": "^2.2.0", "tailwindcss-skip-link": "^1.0.1", diff --git a/prettier.config.js b/prettier.config.js new file mode 100644 index 00000000..5cb62e8e --- /dev/null +++ b/prettier.config.js @@ -0,0 +1,10 @@ +module.exports = { + endOfLine: 'lf', + printWidth: 80, + proseWrap: 'always', + quoteProps: 'as-needed', + singleQuote: true, + tabWidth: 2, + trailingComma: 'all', + useTabs: false, +}