-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migration 004: Add Prettier w/ configuration (#5031)
* Add Prettier to devDependencies * Add .prettierrc Co-Authored-By: ExE-Boss <3889017+ExE-Boss@users.noreply.github.com> * Add .prettierignore Co-Authored-By: ExE-Boss <3889017+ExE-Boss@users.noreply.github.com> * Add Prettier to lint and fix scripts * Remove check from lint for now (whoops) * Limit prettier fixes to just JS/TS files * Add migration script file
- Loading branch information
1 parent
bb63325
commit 7a60241
Showing
5 changed files
with
32 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
*.json | ||
!/*.json | ||
!/schemas/*.json | ||
|
||
LICENSE | ||
.*ignore | ||
.git* | ||
.editorconfig | ||
/package-lock.json | ||
/CODE_OF_CONDUCT.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"$schema": "http://json.schemastore.org/prettierrc", | ||
"singleQuote": true, | ||
"trailingComma": "all" | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/usr/bin/env node | ||
/* Any copyright is dedicated to the Public Domain. | ||
* http://creativecommons.org/publicdomain/zero/1.0/ */ | ||
|
||
'use strict'; | ||
|
||
const { exec } = require('child_process'); | ||
|
||
exec("npx prettier --write **/*.js **/*.ts"); |