UNPKG

react-hook-use-async

Version:
111 lines (110 loc) 3.01 kB
{ "name": "react-hook-use-async", "version": "2.0.1", "description": "Playing with an async task in React", "main": "lib/index.js", "types": "index.d.ts", "scripts": { "build": "npm run clean && babel src --out-dir lib --ignore \"**/*.spec.js\",\"**/*.test.js\"", "clean": "rimraf lib coverage", "cover": "npm run test -- --coverage", "cover:codacy": "npm run cover && cat ./coverage/lcov.info | codacy-coverage", "format": "eslint --max-warnings=0 --fix \"src/**/*.js\" && remark *.md --output", "lint": "eslint --max-warnings=0 \"src/**/*.js\" && remark -f *.md", "prepublishOnly": "npm run clean && npm run format && npm run lint && npm run test && npm run build", "test": "jest --bail --verbose", "test:watch": "npm run test -- --watch" }, "husky": { "hooks": { "pre-commit": "lint-staged" } }, "lint-staged": { "!(.eslintrc).js": [ "eslint --max-warnings=0" ], "*.md": [ "remark -f" ] }, "remarkConfig": { "plugins": [ "remark-preset-lint-recommended" ] }, "repository": { "type": "git", "url": "git+https://github.com/we-code-now/react-hook-use-async.git" }, "keywords": [ "react", "hook", "hooks", "async", "useAsync", "use-async", "promise", "usePromise", "use-promise", "promises", "usePromises", "use-promises", "click", "fetch", "useFetch", "use-fetch", "react-use-fetch", "react-use-async", "react-use-async-hook", "react-async-hook", "react-use-promise", "react-use-promises", "react-use-promise-hook", "react-use-promises-hook", "react-promise-hook", "react-promises-hook", "react-promise", "react-promises", "react-hook-use-async" ], "author": "Steven <steven@wecodenow.com>", "license": "MIT", "bugs": { "url": "https://github.com/we-code-now/react-hook-use-async/issues" }, "homepage": "https://github.com/we-code-now/react-hook-use-async#readme", "peerDependencies": { "react": ">=16.8.0", "react-dom": ">=16.8.0" }, "devDependencies": { "@babel/cli": "^7.5.5", "@babel/core": "^7.5.5", "@babel/plugin-transform-runtime": "^7.5.5", "@babel/preset-env": "^7.5.5", "@babel/preset-react": "^7.0.0", "@testing-library/jest-dom": "^4.1.0", "@testing-library/react": "^9.1.3", "babel-jest": "^24.9.0", "codacy-coverage": "^3.4.0", "eslint": "^6.1.0", "eslint-config-airbnb": "^18.0.0", "eslint-plugin-import": "^2.18.2", "eslint-plugin-jsx-a11y": "^6.2.3", "eslint-plugin-react": "^7.14.3", "eslint-plugin-react-hooks": "^1.7.0", "husky": "^3.0.3", "jest": "^24.8.0", "lint-staged": "^9.2.1", "react": "^16.9.0", "react-dom": "^16.9.0", "react-test-renderer": "^16.9.0", "remark-cli": "^7.0.0", "remark-preset-lint-recommended": "^3.0.3", "rimraf": "^2.7.0" }, "dependencies": { "@babel/runtime": "^7.5.5" } }