Skip to content

Commit

Permalink
chore: config this project using @bingtsingw/mrm-preset
Browse files Browse the repository at this point in the history
  • Loading branch information
bingtsingw committed Aug 19, 2022
1 parent c7f01fe commit 3ad9b43
Show file tree
Hide file tree
Showing 6 changed files with 76 additions and 5 deletions.
16 changes: 16 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# http://editorconfig.org
root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 2
trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false

[Makefile]
indent_style = tab
27 changes: 27 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# misc
.DS_Store
.eslintcache
yarn.lock
pnpm-lock.yaml
package-lock.json
node_modules
.husky

# ignored suffix
*.log
*.ico
*.svg
*.png
*ignore
.editorconfig

# ignore artifacts
build
coverage
dist
.umi
.umi-test
.umi-production

# project
src/components/iconfont
6 changes: 6 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"printWidth": 120,
"singleQuote": true,
"trailingComma": "all",
"proseWrap": "never"
}
8 changes: 8 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"editor.formatOnSave": true,
"editor.autoClosingQuotes": "always",
"editor.quickSuggestions": {
"strings": true
},
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,15 @@
"mrm-core": "^7.0.0"
},
"devDependencies": {
"@bingtsingw/mrm-preset": "^0.0.0",
"@bingtsingw/mrm-preset": "^0.1.0",
"@release-it/conventional-changelog": "^5.1.0",
"mrm": "^4.0.0",
"prettier": "^2.7.1",
"release-it": "^15.3.0"
},
"scripts": {
"mrm": "mrm --preset=@bingtsingw/mrm-preset",
"format": "prettier --check .",
"format:fix": "prettier --write ."
}
}
16 changes: 12 additions & 4 deletions pnpm-lock.yaml

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

0 comments on commit 3ad9b43

Please sign in to comment.