Skip to content

Commit

Permalink
maint/dev ~ update Prettier config and ignore settings
Browse files Browse the repository at this point in the history
  • Loading branch information
rivy committed Jul 31, 2022
1 parent f07e13f commit ee23319
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 16 deletions.
19 changes: 13 additions & 6 deletions .prettierignore
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
14 changes: 4 additions & 10 deletions .prettierrc.js
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 } }],
};

0 comments on commit ee23319

Please sign in to comment.