Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/jakewies/hugo-theme-codex.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJake Wiesler <jakewiesler@gmail.com>2020-06-27 17:44:07 +0300
committerJake Wiesler <jakewiesler@gmail.com>2020-06-27 17:53:50 +0300
commit5f30c228485499337440d4bb7d84101bd6d48b8e (patch)
treec8ef4aa49fa5f196ec3fb3f3e8613cd8609ac92c /prettier.config.js
parent742baede65f61800582b349e842613b8f985a43c (diff)
add prettier
Prettier has been added as a dev dependency along with a few other tools that run prettier on staged files before committing them. This prevents any file from being committed that hasn't gone through the project's formatting. Check the prettier.config.js file for details on how we format files.
Diffstat (limited to 'prettier.config.js')
-rw-r--r--prettier.config.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/prettier.config.js b/prettier.config.js
new file mode 100644
index 0000000..7a9bf1c
--- /dev/null
+++ b/prettier.config.js
@@ -0,0 +1,13 @@
+module.exports = {
+ arrowParens: "avoid",
+ bracketSpacing: false,
+ endOfLine: "lf",
+ htmlWhitespaceSensitivity: "css",
+ printWidth: 80,
+ proseWrap: "always",
+ semi: false,
+ singleQuote: false,
+ tabWidth: 2,
+ trailingComma: "all",
+ useTabs: false,
+}