Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prettier #55

Merged
merged 3 commits into from
Jun 22, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Copyright (C) 2017-present Arctic Ice Studio <development@arcticicestudio.com>
# Copyright (C) 2017-present Sven Greb <development@svengreb.de>
#
# Project: snowsaw
# Repository: https://github.com/arcticicestudio/snowsaw
# License: MIT

**/node_modules/*
6 changes: 6 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,14 @@
"arcticicestudio"
],
"scripts": {
"lint": "npm-run-all lint:*",
"lint:md": "remark --no-stdout . \".github/**/*.md\""
"format:pretty": "prettier --write \"./**/*.{js,json,md,yml}\"",
"format": "npm-run-all format:pretty",
"lint:md": "remark --no-stdout . \".github/**/*.md\"",
"lint": "npm-run-all lint:*"
},
"devDependencies": {
"npm-run-all": "4.1.5",
"prettier": "1.18.2",
"remark-cli": "6.0.1",
"remark-preset-lint-arcticicestudio": ">=0.3.0 <1.0.0"
},
Expand Down
22 changes: 22 additions & 0 deletions prettier.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/*
* Copyright (C) 2017-present Arctic Ice Studio <development@arcticicestudio.com>
* Copyright (C) 2017-present Sven Greb <development@svengreb.de>
*
* Project: snowsaw
* Repository: https://github.com/arcticicestudio/snowsaw
* License: MIT
* References:
* https://prettier.io/docs/en/configuration.html
* https://prettier.io/docs/en/options.html
*/

/**
* @file The Prettier configuration.
* @author Arctic Ice Studio <development@arcticicestudio.com>
* @author Sven Greb <development@svengreb.de>
* @see https://prettier.io/docs/en/configuration.html
*/

module.exports = {
printWidth: 120
};