├── .eslintignore ├── .eslintrc.json ├── .gitignore ├── .husky ├── .gitignore └── pre-commit ├── .lintstagedrc.json ├── .prettierignore ├── .prettierrc.json ├── CHANGELOG.md ├── LICENSE ├── README.md ├── jest.config.js ├── package.json ├── src ├── Beforeunload.js ├── __tests__ │ ├── Beforeunload.test.js │ └── useBeforeunload.test.js ├── index.js └── useBeforeunload.js └── vite.config.js /.eslintignore: -------------------------------------------------------------------------------- 1 | coverage/ 2 | dist/ 3 | node_modules/ 4 | -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliebuck/react-beforeunload/HEAD/.eslintrc.json -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliebuck/react-beforeunload/HEAD/.gitignore -------------------------------------------------------------------------------- /.husky/.gitignore: -------------------------------------------------------------------------------- 1 | _ 2 | -------------------------------------------------------------------------------- /.husky/pre-commit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliebuck/react-beforeunload/HEAD/.husky/pre-commit -------------------------------------------------------------------------------- /.lintstagedrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "*": ["prettier --write --ignore-unknown"] 3 | } 4 | -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | coverage/ 2 | dist/ 3 | node_modules/ 4 | -------------------------------------------------------------------------------- /.prettierrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "singleQuote": true 3 | } 4 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliebuck/react-beforeunload/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliebuck/react-beforeunload/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliebuck/react-beforeunload/HEAD/README.md -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliebuck/react-beforeunload/HEAD/jest.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliebuck/react-beforeunload/HEAD/package.json -------------------------------------------------------------------------------- /src/Beforeunload.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliebuck/react-beforeunload/HEAD/src/Beforeunload.js -------------------------------------------------------------------------------- /src/__tests__/Beforeunload.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliebuck/react-beforeunload/HEAD/src/__tests__/Beforeunload.test.js -------------------------------------------------------------------------------- /src/__tests__/useBeforeunload.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliebuck/react-beforeunload/HEAD/src/__tests__/useBeforeunload.test.js -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliebuck/react-beforeunload/HEAD/src/index.js -------------------------------------------------------------------------------- /src/useBeforeunload.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliebuck/react-beforeunload/HEAD/src/useBeforeunload.js -------------------------------------------------------------------------------- /vite.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliebuck/react-beforeunload/HEAD/vite.config.js --------------------------------------------------------------------------------