Skip to content

Commit

Permalink
build: 增加 Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
Honye committed Jul 26, 2023
1 parent a9abfd2 commit 38d8a34
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .eslintrc.js → .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ module.exports = {
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
"plugin:@typescript-eslint/recommended",
// "prettier" put last
"prettier",
],
"globals": {
"Atomics": "readonly",
Expand Down
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
coverage
5 changes: 5 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"$schema": "http://json.schemastore.org/prettierrc",
"semi": true,
"singleQuote": true
}
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@
"@typescript-eslint/parser": "^4.31.1",
"babel-eslint": "^10.1.0",
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.5.0",
"jest": "^28.1.0",
"miniprogram-api-typings": "^3.4.4",
"miniprogram-ci": "^1.8.18",
"prettier": "2.6.2",
"typescript": "^4.4.3"
},
"name": "weapp-mark",
Expand Down

0 comments on commit 38d8a34

Please sign in to comment.