Skip to content

Commit

Permalink
chore: update infru
Browse files Browse the repository at this point in the history
  • Loading branch information
tianyingchun committed Jul 27, 2024
1 parent 5e5982e commit e6f5e59
Show file tree
Hide file tree
Showing 14 changed files with 676 additions and 1,102 deletions.
1 change: 0 additions & 1 deletion .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

yarn commitlint --edit "$1"
1 change: 0 additions & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn lint-staged-files --debug
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@
"eslint.experimental.useFlatConfig": true,
"[jsonc]": {
"editor.defaultFormatter": "vscode.json-language-features"
},
}
}
434 changes: 217 additions & 217 deletions .yarn/releases/yarn-4.3.0.cjs → .yarn/releases/yarn-4.3.1.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ enableGlobalCache: false

nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-4.3.0.cjs
yarnPath: .yarn/releases/yarn-4.3.1.cjs
20 changes: 12 additions & 8 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
import { base, defineConfig } from '@hyperse/eslint-config-hyperse';
import { defineConfig, reactjs } from '@hyperse/eslint-config-hyperse';

export default defineConfig([
...base,
{
rules: {
'@typescript-eslint/no-explicit-any': 'off',
export default defineConfig(
[
...reactjs,
{
rules: {
'@typescript-eslint/no-explicit-any': 'off',
'tailwindcss/no-custom-classname': 'off',
},
},
},
]);
],
['**/.docusaurus']
);
28 changes: 15 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
},
"scripts": {
"build": "docusaurus build",
"build:twl": "twl -p \"src/css/**/*.css\"",
"changeset": "changeset",
"clear": "docusaurus clear",
"crowdin": "crowdin",
Expand All @@ -23,6 +24,7 @@
"lint": "eslint .",
"lint-fix": "yarn lint --fix",
"lint-staged-files": "lint-staged --allow-empty",
"prepare": "yarn husky",
"release": "yarn build && changeset publish",
"serve": "docusaurus serve",
"start": "docusaurus start",
Expand Down Expand Up @@ -50,40 +52,40 @@
]
},
"dependencies": {
"@crowdin/cli": "^4.0.0",
"@crowdin/crowdin-api-client": "^1.33.2",
"@crowdin/cli": "^4.1.1",
"@crowdin/crowdin-api-client": "^1.35.0",
"@docusaurus/core": "^3.4.0",
"@docusaurus/plugin-content-docs": "^3.4.0",
"@docusaurus/plugin-google-gtag": "^3.4.0",
"@docusaurus/preset-classic": "^3.4.0",
"@mdx-js/react": "^3.0.1",
"clsx": "^2.1.1",
"postcss": "^8.4.38",
"postcss": "^8.4.40",
"prism-react-renderer": "^2.3.1",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"tailwindcss": "^3.4.4"
"tailwindcss": "^3.4.7"
},
"devDependencies": {
"@changesets/changelog-github": "0.5.0",
"@changesets/cli": "2.27.5",
"@changesets/cli": "2.27.7",
"@commitlint/cli": "19.3.0",
"@commitlint/config-conventional": "19.2.2",
"@docusaurus/module-type-aliases": "3.4.0",
"@hyperse/eslint-config-hyperse": "^1.0.9",
"@hyperse/eslint-config-hyperse": "^1.0.10",
"@hyperse/tailwind-layer": "^1.0.5",
"@tsconfig/docusaurus": "^2.0.3",
"@types/node": "^20.14.7",
"@types/node": "^20.14.12",
"@types/prettier": "3.0.0",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"commitizen": "4.3.0",
"cz-conventional-changelog": "3.3.0",
"eslint": "^9.5.0",
"husky": "9.0.11",
"eslint": "^9.8.0",
"husky": "9.1.3",
"lint-staged": "15.2.7",
"typescript": "5.5.2",
"vite": "^5.3.1",
"vitest": "^1.6.0"
"typescript": "5.5.4",
"vitest": "^2.0.4"
},
"packageManager": "[email protected].0"
"packageManager": "[email protected].1"
}
2 changes: 1 addition & 1 deletion src/theme/Admonition/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function CliIcon() {
viewBox="0 0 24 24"
strokeWidth={1.5}
stroke="currentColor"
className="w-6 h-6"
className="size-6"
style={{ fill: 'rgb(8 32 41)', stroke: '#fff' }}
>
<path
Expand Down
2 changes: 2 additions & 0 deletions tailwind.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,6 @@ module.exports = {
theme: {
extend: {},
},
// eslint-disable-next-line @typescript-eslint/no-require-imports
plugins: [require('./tailwindcss-extend.cjs')],
};
9 changes: 9 additions & 0 deletions tailwindcss-extend.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const handler = (api) => {};

const config = {};

module.exports = {
handler,
config,
};
6 changes: 2 additions & 4 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
"extends": "@tsconfig/docusaurus/tsconfig.json",
"compilerOptions": {
"baseUrl": "./",
"types": [
"vitest/globals"
]
"types": ["vitest/globals", "node"]
}
}
}
13 changes: 13 additions & 0 deletions vitest.config.mts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { configDefaults, defineConfig } from 'vitest/config';

export default defineConfig({
test: {
globals: true,
testTimeout: 100000,
exclude: [...configDefaults.exclude],
alias: {
'@/': new URL('./src/', import.meta.url).pathname,
},
include: ['**/?(*.){test,spec}.?(c|m)[jt]s?(x)'],
},
});
31 changes: 0 additions & 31 deletions vitest.config.ts

This file was deleted.

Loading

0 comments on commit e6f5e59

Please sign in to comment.