-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
jaskang
committed
Oct 19, 2023
1 parent
9795b96
commit 681cef7
Showing
9 changed files
with
49 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
{ | ||
"typescript.tsdk": "node_modules/typescript/lib", | ||
"references.preferredLocation": "peek", | ||
"tailwindCSS.experimental.configFile": "docs/tailwind.config.js", | ||
"eslint.experimental.useFlatConfig": true | ||
"tailwindCSS.experimental.configFile": "packages/docs/tailwind.config.cjs", | ||
"eslint.experimental.useFlatConfig": true, | ||
"eslint.format.enable": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
import { Button } from '@zonda/react' | ||
|
||
# Hello <Button>Button</Button> | ||
# Hello | ||
|
||
<Button>Button</Button> | ||
|
||
<Button loading>loading</Button> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,30 @@ | ||
import prettier from '@jaskang/config/prettier' | ||
|
||
export default { | ||
...prettier, | ||
printWidth: 100, | ||
tabWidth: 2, | ||
useTabs: false, | ||
// 语句末尾分号 | ||
semi: false, | ||
// 单引号 | ||
singleQuote: true, | ||
// 对象属性加引号 | ||
quoteProps: 'as-needed', | ||
// 在JSX中使用单引号 | ||
jsxSingleQuote: false, | ||
// 在多行逗号分隔的语法结构中,尽可能加尾随逗号 | ||
trailingComma: 'es5', | ||
// 对象中括号之间的空格 | ||
bracketSpacing: true, | ||
// 将多行HTML (HTML, JSX, Vue, Angular)元素的 > 放在最后一行的末尾,而不是单独放在下一行(不适用于自闭元素)。 | ||
bracketSameLine: false, | ||
// Deprecated | ||
jsxBracketSameLine: false, | ||
// 箭头函数形参周围包含圆括号 | ||
arrowParens: 'avoid', | ||
// 换行行为 | ||
proseWrap: 'preserve', | ||
htmlWhitespaceSensitivity: 'css', | ||
vueIndentScriptAndStyle: false, | ||
plugins: ['prettier-plugin-tailwindcss'], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters