-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
+ `proxyHandlerTransparentGet` helper + `ProxyRef`, `InputDeviceProviderProps` types export = various docs improvements ! `useGeolocation` `enabled` parameter not honored (always enabled)
- Loading branch information
Showing
41 changed files
with
2,908 additions
and
2,056 deletions.
There are no files selected for viewing
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 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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import { readFile } from "fs/promises"; | ||
|
||
import { getEslintConfig } from "@ezez/eslint"; | ||
import reactHooks from "eslint-plugin-react-hooks"; | ||
import { fixupPluginRules } from "@eslint/compat"; | ||
|
||
const packageJson = JSON.parse(String(await readFile("./package.json"))); | ||
const react = Boolean(packageJson.libraryTemplate?.jsx); | ||
|
||
const config = getEslintConfig({ react }); | ||
config.push({ | ||
files: ["src/demos/**/*"], | ||
rules: { | ||
"react/jsx-no-bind": "off", | ||
}, | ||
}); | ||
config.push({ | ||
files: ["src/pages/**/*"], | ||
rules: { | ||
"import/no-default-export": "off", | ||
}, | ||
}); | ||
|
||
config.push({ | ||
plugins: { | ||
"react-hooks": fixupPluginRules(reactHooks), | ||
}, | ||
rules: { | ||
"react-hooks/rules-of-hooks": "error", | ||
"react-hooks/exhaustive-deps": "warn", | ||
}, | ||
}); | ||
|
||
export default config; |
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,6 @@ | ||
{ | ||
"name": "@ezez/hooks", | ||
"version": "2.2.0", | ||
"version": "2.3.0", | ||
"repository": "[email protected]:dzek69/ezez-hooks.git", | ||
"author": "Jacek Nowacki", | ||
"license": "MIT", | ||
|
@@ -11,16 +11,16 @@ | |
"compile:esm": "rm -rf esm && tsc --project tsconfig.esm.json && node ./build-scripts/compile.esm.after.mjs", | ||
"compile:cjs": "rm -rf dist && tsc --project tsconfig.cjs.json && node ./build-scripts/compile.cjs.after.mjs", | ||
"typecheck": "tsc --noEmit", | ||
"lint": "eslint src --ext .ts,.tsx,.js,.jsx,.mjs", | ||
"lint": "ezlint src", | ||
"lint:fix": "pnpm lint --fix", | ||
"prepack": "pnpm compile", | ||
"prepublishOnly": "pnpm audit && pnpm lint && pnpm test && pnpm run docs", | ||
"prepare": "husky install", | ||
"start:dev": "next dev", | ||
"start:dev:compatibility": "TS_NODE_FILES=true pnpm start:dev", | ||
"updates": "npx --yes npm-check-updates --dep prod", | ||
"updates:dev": "npx --yes npm-check-updates --dep dev", | ||
"updates:all": "npx --yes npm-check-updates" | ||
"updates": "pnpm dlx npm-check-updates --dep prod", | ||
"updates:dev": "pnpm dlx npm-check-updates --dep dev", | ||
"updates:all": "pnpm dlx npm-check-updates" | ||
}, | ||
"exports": { | ||
".": { | ||
|
@@ -33,43 +33,34 @@ | |
"types": "./esm/index.d.ts", | ||
"module": "./esm/index.js", | ||
"dependencies": { | ||
"@ezez/utils": "^1.9.0", | ||
"@ezez/utils": "^4.1.0", | ||
"oop-timers": "^5.0.0" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.23.7", | ||
"@babel/preset-env": "^7.23.7", | ||
"@babel/preset-typescript": "^7.23.3", | ||
"@dzek69/eslint-config-base": "^2.5.0", | ||
"@dzek69/eslint-config-import": "^1.3.0", | ||
"@dzek69/eslint-config-import-typescript": "^1.0.1", | ||
"@dzek69/eslint-config-react": "^1.2.2", | ||
"@dzek69/eslint-config-typescript": "^1.1.1", | ||
"@knodes/typedoc-plugin-pages": "^0.23.4", | ||
"@types/jest": "^29.5.2", | ||
"@babel/core": "^7.24.7", | ||
"@babel/preset-env": "^7.24.7", | ||
"@babel/preset-typescript": "^7.24.7", | ||
"@eslint/compat": "^1.2.5", | ||
"@ezez/eslint": "^0.3.0", | ||
"@types/jest": "^29.5.5", | ||
"@types/react": "^18.2.8", | ||
"@types/react-dom": "^18.2.4", | ||
"@typescript-eslint/eslint-plugin": "^5.61.0", | ||
"@typescript-eslint/parser": "^5.61.0", | ||
"babel-plugin-module-extension": "^0.1.3", | ||
"babel-plugin-module-resolver": "^5.0.0", | ||
"eslint": "^8.44.0", | ||
"eslint-plugin-import": "^2.27.5", | ||
"eslint-plugin-react": "^7.24.0", | ||
"eslint-plugin-react-hooks": "^4.6.0", | ||
"fs-extra": "^11.1.1", | ||
"husky": "^8.0.3", | ||
"jest": "^29.6.1", | ||
"jest": "^29.7.0", | ||
"must": "^0.13.4", | ||
"next": "^14.2.3", | ||
"next": "^14.2.23", | ||
"nodemon": "^3.0.1", | ||
"prettier": "^2.8.8", | ||
"prettier": "^3.2.5", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0", | ||
"resolve-tspaths": "^0.8.14", | ||
"ts-node": "^10.9.1", | ||
"typedoc": "^0.23.28", | ||
"typescript": "^5.1.3" | ||
"resolve-tspaths": "^0.8.15", | ||
"ts-node": "^10.9.2", | ||
"typedoc": "0.26.0-beta.2", | ||
"typescript": "^5.4.5" | ||
}, | ||
"peerDependencies": { | ||
"react": "^18.2.0", | ||
|
@@ -81,7 +72,7 @@ | |
} | ||
}, | ||
"libraryTemplate": { | ||
"version": "3.11.1", | ||
"version": "3.13.0", | ||
"language": "typescript", | ||
"fixDefaultForCommonJS": true, | ||
"jsx": 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
{ | ||
"pages": [], | ||
"pages": [ | ||
{ | ||
"title": "CHANGELOG", | ||
"source": "./CHANGELOG.md" | ||
} | ||
], | ||
"source": "tutorials" | ||
} |
Oops, something went wrong.