Skip to content

Commit

Permalink
chore(react-component-tsx): Add prettier config.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Jan 12, 2021
1 parent 44fee6f commit 5af37a4
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 1 deletion.
10 changes: 10 additions & 0 deletions example/react-component-tsx/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
**/*.md
**/*.svg
**/*.ejs
**/*.yml
package.json
node_modules
dist
build
lib
test
11 changes: 11 additions & 0 deletions example/react-component-tsx/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"singleQuote": true,
"trailingComma": "all",
"printWidth": 120,
"overrides": [
{
"files": ".prettierrc",
"options": { "parser": "json" }
}
]
}
16 changes: 15 additions & 1 deletion example/react-component-tsx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,25 @@
"css:build": "compile-less -d src -o lib/esm",
"css:watch": "compile-less -d src -o lib/esm --watch",
"ts:watch": "tsbb watch --env-name esm:dev --env-name cjs --target react",
"ts:build": "tsbb build --target react"
"ts:build": "tsbb build --target react",
"prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\""
},
"repository": {
"type": "git",
"url": "https://github.com/kktjs/kkt.git"
},
"author": "",
"license": "MIT",
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{js,jsx,tsx,ts,less,md,json}": [
"prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\""
]
},
"peerDependencies": {
"@babel/runtime": ">=7.10.0",
"react": ">=16.9.0",
Expand All @@ -41,7 +52,10 @@
"@types/react": "17.0.0",
"@types/react-dom": "17.0.0",
"compile-less-cli": "1.6.0",
"husky": "4.3.7",
"kkt": "6.0.12",
"lint-staged": "10.5.3",
"prettier": "2.2.1",
"react": "17.0.1",
"react-dom": "17.0.1",
"tsbb": "1.7.9"
Expand Down

2 comments on commit 5af37a4

@vercel
Copy link

@vercel vercel bot commented on 5af37a4 Jan 12, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

kkt-basic-example – ./

kkt.vercel.app
kkt-basic-example.398188662.vercel.app
kkt-basic-example-git-master.398188662.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 5af37a4 Jan 12, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

kkt-bundle-example – ./

kkt-bundle-example.398188662.vercel.app
kkt-bundle-example-git-master.398188662.vercel.app

Please sign in to comment.