Skip to content

Commit 183e272

Browse files
authored
Merge pull request #16 from jason89521/docs-website
2 parents 35eaf51 + cf6b4b4 commit 183e272

32 files changed

Lines changed: 3106 additions & 138 deletions

.eslintrc.cjs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
module.exports = {
2+
extends: [
3+
'eslint:recommended',
4+
'plugin:@typescript-eslint/recommended',
5+
'plugin:react/recommended',
6+
'plugin:react-hooks/recommended',
7+
],
8+
parser: '@typescript-eslint/parser',
9+
plugins: ['@typescript-eslint'],
10+
root: true,
11+
ignorePatterns: ['.eslintrc.cjs'],
12+
rules: {
13+
'react/react-in-jsx-scope': 'off',
14+
'@typescript-eslint/no-unused-vars': 'error',
15+
},
16+
};

.eslintrc.json

Lines changed: 0 additions & 31 deletions
This file was deleted.

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,6 @@ dist-ssr
2424
*.njsproj
2525
*.sln
2626
*.sw?
27+
28+
# contentlayer
29+
.contentlayer

.npmrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Workspace settings
2+
save-workspace-protocol = rolling
3+
4+
# Other settings
5+
save-prefix = ''

.prettierrc.cjs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
module.exports = {
2+
tabWidth: 2,
3+
semi: true,
4+
arrowParens: 'avoid',
5+
singleQuote: true,
6+
jsxSingleQuote: true,
7+
bracketSameLine: true,
8+
importOrder: ['^node:', '<THIRD_PARTY_MODULES>', '^~', '^[./]'],
9+
importOrderSeparation: true,
10+
plugins: ['@trivago/prettier-plugin-sort-imports'],
11+
};

package.json

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,13 @@
1313
"preinstall": "npx only-allow pnpm",
1414
"commit": "cz",
1515
"test": "pnpm -r --filter ./packages/* run test",
16-
"build:website": "pnpm -r --filter ./packages/* run build:website",
16+
"dev:website": "pnpm --filter ./website dev",
17+
"build:website": "pnpm --filter ./website run build",
1718
"build:packages": "pnpm -r --filter ./packages/* run build:package",
1819
"prepublishOnly": "pnpm build:lib"
1920
},
2021
"devDependencies": {
22+
"@trivago/prettier-plugin-sort-imports": "3.3.0",
2123
"@types/jest": "^29.0.3",
2224
"@typescript-eslint/eslint-plugin": "^5.37.0",
2325
"@typescript-eslint/parser": "^5.37.0",
@@ -27,22 +29,14 @@
2729
"eslint-plugin-react": "^7.31.8",
2830
"eslint-plugin-react-hooks": "^4.6.0",
2931
"jest": "^29.0.3",
30-
"prettier": "^2.7.1",
31-
"prettier-plugin-tailwindcss": "^0.1.13",
32+
"prettier": "2.7.1",
3233
"typescript": "^4.8.3"
3334
},
3435
"config": {
3536
"commitizen": {
3637
"path": "./node_modules/cz-conventional-changelog"
3738
}
3839
},
39-
"prettier": {
40-
"tabWidth": 2,
41-
"semi": true,
42-
"singleQuote": true,
43-
"jsxSingleQuote": true,
44-
"printWidth": 80
45-
},
4640
"pnpm": {
4741
"overrides": {
4842
"@types/react": "^18.0.20",

0 commit comments

Comments
 (0)