Skip to content

Commit

Permalink
chore: update template
Browse files Browse the repository at this point in the history
Signed-off-by: donniean <[email protected]>
  • Loading branch information
donniean committed Jul 19, 2024
1 parent c1f5142 commit 47178d6
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 56 deletions.
30 changes: 0 additions & 30 deletions .prettierrc

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-promise": "^6.0.0",
"eslint-plugin-react": "^7.30.0",
"prettier": "^2.6.2",
"prettier": "^3.3.3",
"typescript": "4.6.3"
}
}
6 changes: 6 additions & 0 deletions prettier.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
printWidth: 100,
singleQuote: true,
trailingComma: 'all',
arrowParens: 'avoid',
};
20 changes: 6 additions & 14 deletions template/editorconfig
Original file line number Diff line number Diff line change
@@ -1,24 +1,16 @@
root = true

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

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

[*.md]
trim_trailing_whitespace = false

[Makefile]
indent_style = tab

[*.yaml]
indent_style = space
indent_size = 2
14 changes: 10 additions & 4 deletions template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
"private": true,
"license": "MIT",
"main": "index.js",
"workspaces": ["extensions/*"],
"workspaces": [
"extensions/*"
],
"scripts": {
"build:dll": "ksc build:dll",
"build:ext": "ksc build:ext",
Expand All @@ -13,7 +15,11 @@
"dev:client": "ksc dev -u true",
"dev:server": "ksc-server"
},
"browserslist": ["> 1%", "last 2 versions", "not ie <= 8"],
"browserslist": [
"> 1%",
"last 2 versions",
"not ie <= 8"
],
"dependencies": {
"@ks-console/appstore": "^4.1.1",
"@ks-console/bootstrap": "^4.1.1",
Expand Down Expand Up @@ -92,7 +98,7 @@
"dayjs": "^1.10.7",
"eslint": "^7.32.0",
"eslint-config-airbnb-typescript": "^14.0.1",
"eslint-config-kubesphere": "^1.0.0",
"eslint-config-kubesphere": "^1.2.1",
"eslint-config-prettier": "^7.2.0",
"eslint-friendly-formatter": "^4.0.1",
"eslint-import-resolver-webpack": "^0.13.1",
Expand All @@ -117,7 +123,7 @@
"no-case": "3.0.4",
"nodemon": "^2.0.7",
"postcss-loader": "^3.0.0",
"prettier": "^2.4.1",
"prettier": "^3.3.3",
"prop-types": "^15.7.2",
"qs": "^6.10.1",
"react": "^17.0.2",
Expand Down
6 changes: 4 additions & 2 deletions template/prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
node_modules
**/node_modules/
**/dist/
**/v3dist/
yarn.lock
package-lock.json
package-lock.json
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2842,16 +2842,16 @@ prettier-linter-helpers@^1.0.0:
dependencies:
fast-diff "^1.1.2"

prettier@^2.6.2:
version "2.6.2"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.6.2.tgz#e26d71a18a74c3d0f0597f55f01fb6c06c206032"
integrity sha512-PkUpF+qoXTqhOeWL9fu7As8LXsIUZ1WYaJiY/a7McAQzxjk82OF0tibkFXVCDImZtWxbvojFjerkiLb0/q8mew==

prettier@^2.7.1:
version "2.8.8"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.8.8.tgz#e8c5d7e98a4305ffe3de2e1fc4aca1a71c28b1da"
integrity sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==

prettier@^3.3.3:
version "3.3.3"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.3.3.tgz#30c54fe0be0d8d12e6ae61dbb10109ea00d53105"
integrity sha512-i2tDNA0O5IrMO757lfrdQZCc2jPNDVntV0m/+4whiDfWaTKfMNgR7Qz0NAeGz/nRqF4m5/6CLzbP4/liHt12Ew==

progress@^2.0.0:
version "2.0.3"
resolved "https://registry.yarnpkg.com/progress/-/progress-2.0.3.tgz#7e8cf8d8f5b8f239c1bc68beb4eb78567d572ef8"
Expand Down

0 comments on commit 47178d6

Please sign in to comment.