-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'alibaba:master' into master
- Loading branch information
Showing
41 changed files
with
15,262 additions
and
19,610 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
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 was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,48 @@ | ||
{ | ||
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json", | ||
"files": { | ||
"ignoreUnknown": true | ||
}, | ||
"vcs": { | ||
"enabled": true, | ||
"clientKind": "git", | ||
"useIgnoreFile": true | ||
}, | ||
"linter": { | ||
"rules": { | ||
"style": { | ||
"noNonNullAssertion": "off" | ||
}, | ||
"correctness": { | ||
"useHookAtTopLevel": "error" | ||
}, | ||
"suspicious": { | ||
"noExplicitAny": "off" | ||
} | ||
} | ||
}, | ||
"formatter": { | ||
"lineWidth": 100, | ||
"indentStyle": "space" | ||
}, | ||
"javascript": { | ||
"parser": { | ||
"unsafeParameterDecoratorsEnabled": true | ||
}, | ||
"formatter": { | ||
"quoteStyle": "single", | ||
"jsxQuoteStyle": "single" | ||
} | ||
}, | ||
"css": { | ||
"parser": { | ||
"cssModules": true | ||
}, | ||
"formatter": { | ||
"enabled": true | ||
}, | ||
"linter": { | ||
"enabled": 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 |
---|---|---|
|
@@ -31,6 +31,7 @@ export const menus = [ | |
'useCounter', | ||
'useTextSelection', | ||
'useWebSocket', | ||
'useTheme', | ||
], | ||
}, | ||
{ | ||
|
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Object.defineProperty(window, 'matchMedia', { | ||
writable: true, | ||
value: jest.fn().mockImplementation((query) => ({ | ||
matches: false, | ||
media: query, | ||
onchange: null, | ||
addListener: jest.fn(), // deprecated | ||
removeListener: jest.fn(), // deprecated | ||
addEventListener: jest.fn(), | ||
removeEventListener: jest.fn(), | ||
dispatchEvent: jest.fn(), | ||
})), | ||
}); |
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,9 +1,9 @@ | ||
{ | ||
"name": "ahooks", | ||
"private": true, | ||
"packageManager": "pnpm@7.33.6", | ||
"packageManager": "pnpm@9.6.0", | ||
"engines": { | ||
"pnpm": ">=7 <8" | ||
"pnpm": ">=7 <10" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
|
@@ -12,14 +12,14 @@ | |
"scripts": { | ||
"init": "pnpm install && pnpm run build", | ||
"start": "pnpm run dev", | ||
"dev": "dumi dev", | ||
"dev": "set NODE_OPTIONS=--openssl-legacy-provider && dumi dev", | ||
"clean-dist": "rimraf 'packages/*/{lib,es,node_modules,dist}'", | ||
"clean": "pnpm run clean-dist && rimraf node_modules", | ||
"build": "pnpm -r --filter=./packages/* run build", | ||
"test": "jest", | ||
"coveralls": "jest --coverage --coverageReporters=text-lcov | coveralls", | ||
"lint": "eslint --ignore-pattern **/__tests__/* --ignore-pattern **/demo/* \"packages/*/src/**/*.{ts,tsx}\" --cache", | ||
"pretty": "pretty-quick --staged", | ||
"pretty": "biome format --fix --staged", | ||
"build:doc": "dumi build", | ||
"pub:doc-surge": "surge ./dist --domain ahooks.js.org", | ||
"pub:doc-gitee": "cd ./dist && rm -rf .git && touch .spa && touch .nojekyll && git init && git remote add origin [email protected]:ahooks/ahooks.git && git add -A && git commit -m \"publish docs\" && git push origin main -f && echo https://gitee.com/ahooks/ahooks/pages", | ||
|
@@ -35,6 +35,7 @@ | |
"@babel/cli": "^7.10.1", | ||
"@babel/core": "^7.10.2", | ||
"@babel/plugin-transform-runtime": "^7.19.6", | ||
"@biomejs/biome": "^1.8.3", | ||
"@commitlint/cli": "^17.1.2", | ||
"@commitlint/config-conventional": "^17.1.0", | ||
"@testing-library/jest-dom": "^5.16.5", | ||
|
@@ -62,8 +63,6 @@ | |
"jest-environment-jsdom": "^29.4.1", | ||
"jest-localstorage-mock": "^2.4.18", | ||
"mockjs": "^1.1.0", | ||
"prettier": "^3.2.5", | ||
"pretty-quick": "^4.0.0", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0", | ||
"react-drag-listview": "^0.1.6", | ||
|
@@ -78,8 +77,6 @@ | |
"webpack-merge": "^4.2.2" | ||
}, | ||
"commitlint": { | ||
"extends": [ | ||
"@commitlint/config-conventional" | ||
] | ||
"extends": ["@commitlint/config-conventional"] | ||
} | ||
} |
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
Oops, something went wrong.