UNPKG

@knightburton/react-use-form

Version:

React hook to handle form change and validation.

116 lines (115 loc) 3.16 kB
{ "name": "@knightburton/react-use-form", "version": "1.2.1", "description": "React hook to handle form change and validation.", "homepage": "https://github.com/knightburton/react-use-form#readme", "repository": { "type": "git", "url": "git+https://github.com/knightburton/react-use-form.git" }, "bugs": { "url": "https://github.com/knightburton/react-use-form/issues" }, "author": "Imre Kiss", "license": "MIT", "private": false, "keywords": [ "react", "react-hooks", "typescript", "form", "form-validation", "form-handler", "form-hook", "use-form", "use-form-hook" ], "main": "dist/index.js", "module": "dist/index.es.js", "types": "dist/index.d.ts", "jsnext:main": "dist/index.es.js", "source": "src/index.ts", "files": [ "dist" ], "engines": { "node": ">=12", "npm": ">=6" }, "scripts": { "start": "rollup -c -w", "build": "npm run clean:dist && npm run prepare:build", "clean:dist": "rm -rf dist", "prepare:build": "rollup -c", "jest": "jest --coverage", "jest:watch": "jest --watch --coverage", "lint": "eslint --ext .jsx,.js,.tsx,.ts src/", "test": "npm run lint && npm run jest" }, "peerDependencies": { "react": ">=16.8.0" }, "devDependencies": { "@rollup/plugin-babel": "^5.3.0", "@rollup/plugin-commonjs": "^19.0.0", "@rollup/plugin-node-resolve": "^13.0.0", "@rollup/plugin-url": "^6.0.0", "@testing-library/jest-dom": "^5.13.0", "@testing-library/react": "^11.2.7", "@testing-library/react-hooks": "^6.0.0", "@types/jest": "^26.0.23", "@types/react": "^17.0.6", "@typescript-eslint/eslint-plugin": "^4.24.0", "@typescript-eslint/parser": "^4.24.0", "eslint": "^7.26.0", "eslint-config-airbnb": "^18.2.1", "eslint-config-airbnb-typescript": "^12.3.1", "eslint-config-prettier": "^8.3.0", "eslint-plugin-import": "^2.23.2", "eslint-plugin-jest": "^24.3.6", "eslint-plugin-jest-dom": "^3.9.0", "eslint-plugin-jsx-a11y": "^6.4.1", "eslint-plugin-prettier": "^3.4.0", "eslint-plugin-react": "^7.23.2", "eslint-plugin-react-hooks": "^4.2.0", "eslint-plugin-testing-library": "^4.6.0", "jest": "^26.6.3", "prettier": "^2.3.0", "react": "^17.0.2", "rollup": "^2.48.0", "rollup-plugin-peer-deps-external": "^2.2.4", "rollup-plugin-terser": "^7.0.2", "rollup-plugin-typescript2": "^0.30.0", "ts-jest": "^26.5.6", "ts-node": "^9.1.1", "typescript": "^4.2.4" }, "jest": { "verbose": false, "coverageReporters": [ "text" ], "transform": { "\\.(ts|tsx)$": "ts-jest" }, "testRegex": "(/test/.*|\\.(test|spec))\\.(ts|tsx|js)$", "moduleFileExtensions": [ "ts", "tsx", "js" ], "setupFiles": [ "<rootDir>/test/setupTests.ts" ], "testPathIgnorePatterns": [ "<rootDir>/node_modules/", "<rootDir>/dist/", "<rootDir>/test/setupTests.ts" ], "coveragePathIgnorePatterns": [ "<rootDir>/node_modules/", "<rootDir>/dist/", "<rootDir>/test/setupTests.ts" ] } }