mirror of https://github.com/cupcakearmy/zod.git
Test husky
This commit is contained in:
parent
2348c00719
commit
0dbd4ec815
|
@ -12,7 +12,7 @@ module.exports = {
|
|||
extends: [
|
||||
"eslint:recommended",
|
||||
"plugin:@typescript-eslint/recommended",
|
||||
"prettier/@typescript-eslint", // Uses eslint-config-prettier to disable ESLint rules from @typescript-eslint/eslint-plugin that would conflict with prettier
|
||||
"prettier",
|
||||
],
|
||||
rules: {
|
||||
"import/order": 0, // turn off in favor of eslint-plugin-simple-import-sort
|
||||
|
|
|
@ -375,6 +375,7 @@ export abstract class ZodType<
|
|||
|
||||
optional(): ZodOptional<this> {
|
||||
("");
|
||||
("asdf");
|
||||
return ZodOptional.create(this) as any;
|
||||
}
|
||||
nullable(): ZodNullable<this> {
|
||||
|
|
File diff suppressed because it is too large
Load Diff
29
package.json
29
package.json
|
@ -68,35 +68,34 @@
|
|||
"@rollup/plugin-typescript": "^8.2.0",
|
||||
"@types/benchmark": "^2.1.0",
|
||||
"@types/jest": "^26.0.17",
|
||||
"@types/node": "^14.14.10",
|
||||
"@types/node": "14",
|
||||
"@typescript-eslint/eslint-plugin": "^5.15.0",
|
||||
"@typescript-eslint/parser": "^5.15.0",
|
||||
"benchmark": "^2.1.4",
|
||||
"dependency-cruiser": "^9.19.0",
|
||||
"eslint": "^7.15.0",
|
||||
"eslint-config-prettier": "^7.1.0",
|
||||
"eslint-plugin-ban": "^1.5.2",
|
||||
"eslint-plugin-import": "^2.22.1",
|
||||
"eslint": "^8.11.0",
|
||||
"eslint-config-prettier": "^8.5.0",
|
||||
"eslint-plugin-ban": "^1.6.0",
|
||||
"eslint-plugin-import": "^2.25.4",
|
||||
"eslint-plugin-simple-import-sort": "^7.0.0",
|
||||
"eslint-plugin-unused-imports": "^1.1.0",
|
||||
"eslint-plugin-unused-imports": "^2.0.0",
|
||||
"husky": "^7.0.4",
|
||||
"jest": "^26.6.3",
|
||||
"jest": "^27.5.1",
|
||||
"lint-staged": "^12.3.7",
|
||||
"make-coverage-badge": "^1.2.0",
|
||||
"nodemon": "^2.0.2",
|
||||
"prettier": "^2.2.1",
|
||||
"rollup": "^2.42.1",
|
||||
"rollup-plugin-uglify": "^6.0.4",
|
||||
"table": "^6.8.0",
|
||||
"ts-jest": "^26.4.4",
|
||||
"ts-node": "^9.1.0",
|
||||
"nodemon": "^2.0.15",
|
||||
"prettier": "^2.6.0",
|
||||
"pretty-quick": "^3.1.3",
|
||||
"rollup": "^2.70.1",
|
||||
"ts-jest": "^27.1.3",
|
||||
"ts-node": "^10.7.0",
|
||||
"tslib": "^2.3.1",
|
||||
"typescript": "^4.6.2"
|
||||
},
|
||||
"lint-staged": {
|
||||
"src/*.ts": [
|
||||
"eslint --cache --fix",
|
||||
"prettier --ignore-unknown --debug --loglevel debug --write"
|
||||
"prettier --ignore-unknown --write"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -375,6 +375,7 @@ export abstract class ZodType<
|
|||
|
||||
optional(): ZodOptional<this> {
|
||||
("");
|
||||
("asdf");
|
||||
return ZodOptional.create(this) as any;
|
||||
}
|
||||
nullable(): ZodNullable<this> {
|
||||
|
|
Loading…
Reference in New Issue