UNPKG

@kne/react-form-antd

Version:

把 @kne/react-form 表单校验逻辑应用到antd

82 lines (81 loc) 2.42 kB
{ "name": "@kne/react-form-antd", "version": "4.0.3", "syntax": { "esmodules": true }, "description": "把 @kne/react-form 表单校验逻辑应用到antd", "main": "dist/index.js", "module": "dist/index.modern.js", "source": "src/index.js", "scripts": { "init": "husky && npm run init-example", "start": "run-p start:lib start:md start:example", "build": "run-s build:lib build:md build:example", "init-example": "modules-dev-libs-init", "build:md": "npx @kne/md-doc", "start:md": "npx @kne/md-doc --watch", "build:lib": "microbundle --no-compress --format modern,cjs --jsx React.createElement --jsxFragment React.Fragment", "start:lib": "microbundle watch --no-compress --format modern,cjs --jsx React.createElement --jsxFragment React.Fragment", "build:example": "cd example && npm run build", "start:example": "cd example && npm run start", "test:build": "run-s build", "test:lint": "eslint .", "test:unit": "cross-env CI=1 react-scripts test --env=jsdom", "test:watch": "react-scripts test --env=jsdom", "prettier": "prettier --config .prettierrc --write '{src/**/*,index,prompts}.{js,jsx,ts,tsx,json,css,scss}'", "lint-staged": "npx lint-staged" }, "repository": { "type": "git", "url": "git+https://github.com/kne-union/react-form-antd.git" }, "husky": { "hooks": { "pre-commit": "lint-staged" } }, "lint-staged": { "src/**/*.{js,jsx,ts,tsx,json,css,scss,md}": [ "prettier --config .prettierrc --write", "git add" ] }, "files": [ "dist" ], "keywords": [ "react", "form", "validate" ], "author": "linzp", "license": "ISC", "bugs": { "url": "https://github.com/kne-union/react-form-antd/issues" }, "homepage": "https://github.com/kne-union/react-form-antd#readme", "peerDependencies": { "antd": ">=5.x", "react": ">=18.x" }, "dependencies": { "@kne/react-form": "^3.1.2", "@kne/react-form-helper": "^3.0.2", "@kne/use-control-value": "^0.1.1", "classnames": "^2.2.6", "dayjs": "^1.11.7", "lodash": "^4.17.15" }, "devDependencies": { "@kne/microbundle": "^0.15.5", "@kne/modules-dev": "^2.1.2", "@kne/react-form": "^3.1.0", "cross-env": "^7.0.3", "husky": "^9.0.11", "npm-run-all": "^4.1.5", "prettier": "^3.2.5", "react": "^18.2.0", "react-dom": "^18.2.0" } }