react-formutil
Version:
Happy to build the forms in React ^_^
173 lines (172 loc) • 4.75 kB
JSON
{
"name": "react-formutil",
"version": "1.1.9",
"description": "Happy to build the forms in React ^_^",
"main": "dist/index.cjs.js",
"module": "dist/index.esm.js",
"directories": {
"doc": "docs"
},
"entryFile": "src/index.js",
"scripts": {
"start": "cd docs && npm start",
"build": "npm run clear && rollup -c",
"clear": "rimraf dist",
"test": "node jest/test.js",
"tsc": "node -e \"require('fs-extra').outputJsonSync('.git-tsconfig.json',{ extends: './tsconfig.json', include: ['*.d.ts'].concat(process.env.StagedFiles.split(/\\n+/)) })\" && echo 'TS checking...\\n' && tsc -p .git-tsconfig.json --noEmit --checkJs false"
},
"repository": {
"type": "git",
"url": "git+https://github.com/qiqiboy/react-formutil.git"
},
"keywords": [
"react",
"react-components",
"react-form",
"react-formutil",
"forms",
"create-form",
"umd"
],
"author": "qiqiboy",
"license": "ISC",
"bugs": {
"url": "https://github.com/qiqiboy/react-formutil/issues"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest",
"./eslint.config.js"
]
},
"prettier": {
"printWidth": 120,
"tabWidth": 4,
"trailingComma": "none",
"jsxBracketSameLine": true,
"semi": true,
"arrowParens": "avoid",
"singleQuote": true,
"overrides": [
{
"files": "*.json",
"options": {
"tabWidth": 2
}
}
]
},
"homepage": "https://github.com/qiqiboy/react-formutil#readme",
"peerDependencies": {
"react": "^16.3.0 || ^17.0.0 || ^18.0.0",
"prop-types": "^15.0.0"
},
"types": "./index.d.ts",
"devDependencies": {
"@babel/cli": "7.12.1",
"@babel/core": "7.12.3",
"@commitlint/cli": "11.0.0",
"@commitlint/config-conventional": "11.0.0",
"@rollup/plugin-babel": "5.2.1",
"@rollup/plugin-commonjs": "11.1.0",
"@rollup/plugin-eslint": "8.0.0",
"@rollup/plugin-node-resolve": "10.0.0",
"@rollup/plugin-replace": "2.3.4",
"@testing-library/jest-dom": "5.11.5",
"@testing-library/react": "11.1.2",
"@testing-library/user-event": "12.2.2",
"@types/jest": "26.0.15",
"@types/node": "14.14.7",
"@types/react": "16.9.23",
"@types/react-dom": "16.9.5",
"@types/react-is": "16.7.1",
"@typescript-eslint/eslint-plugin": "4.7.0",
"@typescript-eslint/parser": "4.7.0",
"babel-eslint": "10.1.0",
"babel-jest": "26.6.3",
"babel-preset-react-app": "10.0.0",
"eslint": "7.13.0",
"eslint-config-react-app": "6.0.0",
"eslint-plugin-flowtype": "5.2.0",
"eslint-plugin-import": "2.22.1",
"eslint-plugin-jest": "24.1.3",
"eslint-plugin-jsx-a11y": "6.4.1",
"eslint-plugin-react": "7.21.5",
"eslint-plugin-react-hooks": "4.2.0",
"eslint-plugin-testing-library": "3.10.0",
"husky": "3.1.0",
"identity-obj-proxy": "3.0.0",
"jest": "26.6.3",
"jest-environment-jsdom-fourteen": "1.0.1",
"jest-resolve": "26.6.2",
"jest-runner-eslint": "0.10.0",
"jest-watch-typeahead": "0.4.2",
"lint-staged": "10.5.1",
"prettier": "2.1.2",
"prop-types": "15.7.2",
"react": "17.0.1",
"react-app-polyfill": "^1.0.6",
"react-dom": "17.0.1",
"react-hot-loader": "^4.12.19",
"rimraf": "3.0.2",
"rollup": "2.33.1",
"rollup-plugin-clear": "^2.0.7",
"rollup-plugin-copy": "3.3.0",
"rollup-plugin-filesize": "9.0.2",
"rollup-plugin-sass": "1.2.2",
"rollup-plugin-terser": "7.0.2",
"typescript": "5.2.2"
},
"dependencies": {
"hoist-non-react-statics": "^3.3.2",
"react-fast-compare": "^3.0.1",
"warning": "^4.0.3"
},
"sideEffects": false,
"husky": {
"hooks": {
"commit-msg": "node_modules/.bin/commitlint --edit $HUSKY_GIT_PARAMS",
"pre-commit": "lint-staged && export StagedFiles=$(git diff --diff-filter AM --name-only --relative --staged | grep -E '^src/.*\\.m?[jt]sx?$') && if [ -n \"$StagedFiles\" ]; then npm run tsc ; fi"
}
},
"lint-staged": {
"src/**/*.{js,jsx,mjs,ts,tsx}": [
"node_modules/.bin/prettier --write",
"node_modules/.bin/eslint --fix"
],
"src/**/*.{css,scss,less,json,html,md}": [
"node_modules/.bin/prettier --write"
]
},
"stylelint": {
"extends": "stylelint-config-recommended"
},
"browserslist": [
">0.2%",
"not dead",
"not op_mini all"
],
"config": {
"commitizen": {
"path": "cz-conventional-changelog"
}
},
"engines": {
"node": ">=10.13.0",
"tiger-new": "6.2.7"
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
],
"rules": {
"subject-case": [
0
],
"scope-case": [
0
]
}
}
}