-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
maint/dev ~ update Prettier config and ignore settings
- Loading branch information
Showing
2 changed files
with
17 additions
and
16 deletions.
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 |
---|---|---|
@@ -1,21 +1,28 @@ | ||
# Prettier "ignore" list | ||
# v2022-07-30 [rivy] | ||
# * note: glob patterns support use of `?`, `*`, `**`, and `[...]`, but *not* `{...}` | ||
|
||
# * otherwise managed files | ||
.vscode/settings.json | ||
.vscode/extensions.json | ||
package.json | ||
# spell-checker:ignore (people) Roy Ivy III * rivy | ||
|
||
# * build/coverage/dev artifacts | ||
.history | ||
[._@#$]build | ||
[._@#$]coverage | ||
.nyc_output | ||
build | ||
coverage | ||
CHANGELOG | ||
CHANGELOG.* | ||
dist | ||
target | ||
|
||
# * format-sensitive files | ||
.changelog/*.tpl | ||
.changelog/*.tpl.* | ||
|
||
# * third-party code | ||
node_modules | ||
**/node_modules | ||
**/*-lock.json | ||
.history | ||
.vscode | ||
package.json | ||
vendor |
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 |
---|---|---|
@@ -1,16 +1,10 @@ | ||
module.exports = { | ||
// $schema: 'http://json.schemastore.org/prettierrc', | ||
printWidth: 100, | ||
proseWrap: 'preserve', | ||
singleQuote: true, | ||
useTabs: true, | ||
tabWidth: 2, | ||
// "prettier # overrides/[*.markdown]/tabWidth": "// set to 4 when https://github.com/prettier/prettier/issues/5019 is fixed", | ||
overrides: [ | ||
{ | ||
files: ['*.md', '*.mkd', '*.markdown'], | ||
options: { | ||
tabWidth: 2, | ||
useTabs: false, | ||
}, | ||
}, | ||
], | ||
// ## overrides/[*.markdown]/tabWidth": "// set this to 4 when/if https://github.com/prettier/prettier/issues/5019 is fixed", | ||
overrides: [{ files: ['*.md', '*.mkd', '*.markdown'], options: { tabWidth: 2, useTabs: false } }], | ||
}; |