├── .eslintrc ├── .github └── workflows │ ├── deploy.yml │ └── verify.yml ├── .gitignore ├── .husky ├── .gitignore └── pre-commit ├── .prettierrc ├── CHANGELOG.md ├── LICENSE ├── README.md ├── misc ├── code-examples │ └── react.md └── intro.jpg ├── package.json ├── playground ├── index.html ├── main.ts └── vite.config.ts ├── renovate.json ├── src ├── facile-validator.ts ├── index.ts ├── locales │ ├── cs.ts │ ├── de.ts │ ├── en.ts │ ├── fa.ts │ ├── fr.ts │ ├── index.ts │ ├── it.ts │ ├── nl.ts │ └── zh.ts ├── modules │ ├── events.ts │ ├── language.ts │ ├── rule-adapter.ts │ ├── rule-error.ts │ └── validator-error.ts ├── rules │ ├── accepted.ts │ ├── alpha-num-dash.ts │ ├── alpha-num.ts │ ├── alpha.ts │ ├── between.ts │ ├── digits.ts │ ├── email.ts │ ├── ends-with.ts │ ├── index.ts │ ├── int.ts │ ├── max.ts │ ├── min.ts │ ├── num-dash.ts │ ├── number.ts │ ├── regex.ts │ ├── required-if.ts │ ├── required.ts │ ├── size.ts │ ├── starts-with.ts │ └── within.ts ├── types │ ├── elements.ts │ ├── error-dev.ts │ ├── index.ts │ └── rules.ts └── utils │ ├── helpers.ts │ └── regex.ts ├── tests ├── rules │ ├── accepted.test.ts │ ├── alpha-num-dash.test.ts │ ├── alpha-num.test.ts │ ├── alpha.test.ts │ ├── between.test.ts │ ├── digits.test.ts │ ├── email.test.ts │ ├── ends-with.test.ts │ ├── int.test.ts │ ├── max.test.ts │ ├── min.test.ts │ ├── num-dash.test.ts │ ├── number.test.ts │ ├── regex.test.ts │ ├── required.test.ts │ ├── size.test.ts │ ├── starts-with.test.ts │ └── within.test.ts └── utils │ ├── process-args.test.ts │ ├── process-rule.test.ts │ └── to-camel-case.test.ts ├── tsconfig.json ├── vitest.config.ts └── yarn.lock /.eslintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upjs/facile-validator/HEAD/.eslintrc -------------------------------------------------------------------------------- /.github/workflows/deploy.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upjs/facile-validator/HEAD/.github/workflows/deploy.yml -------------------------------------------------------------------------------- /.github/workflows/verify.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upjs/facile-validator/HEAD/.github/workflows/verify.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upjs/facile-validator/HEAD/.gitignore -------------------------------------------------------------------------------- /.husky/.gitignore: -------------------------------------------------------------------------------- 1 | _ 2 | -------------------------------------------------------------------------------- /.husky/pre-commit: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | . "$(dirname "$0")/_/husky.sh" 3 | 4 | npx lint-staged 5 | -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upjs/facile-validator/HEAD/.prettierrc -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upjs/facile-validator/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upjs/facile-validator/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upjs/facile-validator/HEAD/README.md -------------------------------------------------------------------------------- /misc/code-examples/react.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upjs/facile-validator/HEAD/misc/code-examples/react.md -------------------------------------------------------------------------------- /misc/intro.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upjs/facile-validator/HEAD/misc/intro.jpg -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upjs/facile-validator/HEAD/package.json -------------------------------------------------------------------------------- /playground/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upjs/facile-validator/HEAD/playground/index.html -------------------------------------------------------------------------------- /playground/main.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upjs/facile-validator/HEAD/playground/main.ts -------------------------------------------------------------------------------- /playground/vite.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upjs/facile-validator/HEAD/playground/vite.config.ts -------------------------------------------------------------------------------- /renovate.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upjs/facile-validator/HEAD/renovate.json -------------------------------------------------------------------------------- /src/facile-validator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upjs/facile-validator/HEAD/src/facile-validator.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upjs/facile-validator/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/locales/cs.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upjs/facile-validator/HEAD/src/locales/cs.ts -------------------------------------------------------------------------------- /src/locales/de.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upjs/facile-validator/HEAD/src/locales/de.ts -------------------------------------------------------------------------------- /src/locales/en.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upjs/facile-validator/HEAD/src/locales/en.ts -------------------------------------------------------------------------------- /src/locales/fa.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upjs/facile-validator/HEAD/src/locales/fa.ts -------------------------------------------------------------------------------- /src/locales/fr.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upjs/facile-validator/HEAD/src/locales/fr.ts -------------------------------------------------------------------------------- /src/locales/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upjs/facile-validator/HEAD/src/locales/index.ts -------------------------------------------------------------------------------- /src/locales/it.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upjs/facile-validator/HEAD/src/locales/it.ts -------------------------------------------------------------------------------- /src/locales/nl.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upjs/facile-validator/HEAD/src/locales/nl.ts -------------------------------------------------------------------------------- /src/locales/zh.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upjs/facile-validator/HEAD/src/locales/zh.ts -------------------------------------------------------------------------------- /src/modules/events.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upjs/facile-validator/HEAD/src/modules/events.ts -------------------------------------------------------------------------------- /src/modules/language.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upjs/facile-validator/HEAD/src/modules/language.ts -------------------------------------------------------------------------------- /src/modules/rule-adapter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upjs/facile-validator/HEAD/src/modules/rule-adapter.ts -------------------------------------------------------------------------------- /src/modules/rule-error.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upjs/facile-validator/HEAD/src/modules/rule-error.ts -------------------------------------------------------------------------------- /src/modules/validator-error.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upjs/facile-validator/HEAD/src/modules/validator-error.ts -------------------------------------------------------------------------------- /src/rules/accepted.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upjs/facile-validator/HEAD/src/rules/accepted.ts -------------------------------------------------------------------------------- /src/rules/alpha-num-dash.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upjs/facile-validator/HEAD/src/rules/alpha-num-dash.ts -------------------------------------------------------------------------------- /src/rules/alpha-num.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upjs/facile-validator/HEAD/src/rules/alpha-num.ts -------------------------------------------------------------------------------- /src/rules/alpha.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upjs/facile-validator/HEAD/src/rules/alpha.ts -------------------------------------------------------------------------------- /src/rules/between.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upjs/facile-validator/HEAD/src/rules/between.ts -------------------------------------------------------------------------------- /src/rules/digits.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upjs/facile-validator/HEAD/src/rules/digits.ts -------------------------------------------------------------------------------- /src/rules/email.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upjs/facile-validator/HEAD/src/rules/email.ts -------------------------------------------------------------------------------- /src/rules/ends-with.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upjs/facile-validator/HEAD/src/rules/ends-with.ts -------------------------------------------------------------------------------- /src/rules/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upjs/facile-validator/HEAD/src/rules/index.ts -------------------------------------------------------------------------------- /src/rules/int.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upjs/facile-validator/HEAD/src/rules/int.ts -------------------------------------------------------------------------------- /src/rules/max.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upjs/facile-validator/HEAD/src/rules/max.ts -------------------------------------------------------------------------------- /src/rules/min.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upjs/facile-validator/HEAD/src/rules/min.ts -------------------------------------------------------------------------------- /src/rules/num-dash.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upjs/facile-validator/HEAD/src/rules/num-dash.ts -------------------------------------------------------------------------------- /src/rules/number.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upjs/facile-validator/HEAD/src/rules/number.ts -------------------------------------------------------------------------------- /src/rules/regex.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upjs/facile-validator/HEAD/src/rules/regex.ts -------------------------------------------------------------------------------- /src/rules/required-if.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upjs/facile-validator/HEAD/src/rules/required-if.ts -------------------------------------------------------------------------------- /src/rules/required.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upjs/facile-validator/HEAD/src/rules/required.ts -------------------------------------------------------------------------------- /src/rules/size.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upjs/facile-validator/HEAD/src/rules/size.ts -------------------------------------------------------------------------------- /src/rules/starts-with.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upjs/facile-validator/HEAD/src/rules/starts-with.ts -------------------------------------------------------------------------------- /src/rules/within.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upjs/facile-validator/HEAD/src/rules/within.ts -------------------------------------------------------------------------------- /src/types/elements.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upjs/facile-validator/HEAD/src/types/elements.ts -------------------------------------------------------------------------------- /src/types/error-dev.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upjs/facile-validator/HEAD/src/types/error-dev.ts -------------------------------------------------------------------------------- /src/types/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upjs/facile-validator/HEAD/src/types/index.ts -------------------------------------------------------------------------------- /src/types/rules.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upjs/facile-validator/HEAD/src/types/rules.ts -------------------------------------------------------------------------------- /src/utils/helpers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upjs/facile-validator/HEAD/src/utils/helpers.ts -------------------------------------------------------------------------------- /src/utils/regex.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upjs/facile-validator/HEAD/src/utils/regex.ts -------------------------------------------------------------------------------- /tests/rules/accepted.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upjs/facile-validator/HEAD/tests/rules/accepted.test.ts -------------------------------------------------------------------------------- /tests/rules/alpha-num-dash.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upjs/facile-validator/HEAD/tests/rules/alpha-num-dash.test.ts -------------------------------------------------------------------------------- /tests/rules/alpha-num.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upjs/facile-validator/HEAD/tests/rules/alpha-num.test.ts -------------------------------------------------------------------------------- /tests/rules/alpha.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upjs/facile-validator/HEAD/tests/rules/alpha.test.ts -------------------------------------------------------------------------------- /tests/rules/between.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upjs/facile-validator/HEAD/tests/rules/between.test.ts -------------------------------------------------------------------------------- /tests/rules/digits.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upjs/facile-validator/HEAD/tests/rules/digits.test.ts -------------------------------------------------------------------------------- /tests/rules/email.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upjs/facile-validator/HEAD/tests/rules/email.test.ts -------------------------------------------------------------------------------- /tests/rules/ends-with.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upjs/facile-validator/HEAD/tests/rules/ends-with.test.ts -------------------------------------------------------------------------------- /tests/rules/int.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upjs/facile-validator/HEAD/tests/rules/int.test.ts -------------------------------------------------------------------------------- /tests/rules/max.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upjs/facile-validator/HEAD/tests/rules/max.test.ts -------------------------------------------------------------------------------- /tests/rules/min.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upjs/facile-validator/HEAD/tests/rules/min.test.ts -------------------------------------------------------------------------------- /tests/rules/num-dash.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upjs/facile-validator/HEAD/tests/rules/num-dash.test.ts -------------------------------------------------------------------------------- /tests/rules/number.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upjs/facile-validator/HEAD/tests/rules/number.test.ts -------------------------------------------------------------------------------- /tests/rules/regex.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upjs/facile-validator/HEAD/tests/rules/regex.test.ts -------------------------------------------------------------------------------- /tests/rules/required.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upjs/facile-validator/HEAD/tests/rules/required.test.ts -------------------------------------------------------------------------------- /tests/rules/size.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upjs/facile-validator/HEAD/tests/rules/size.test.ts -------------------------------------------------------------------------------- /tests/rules/starts-with.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upjs/facile-validator/HEAD/tests/rules/starts-with.test.ts -------------------------------------------------------------------------------- /tests/rules/within.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upjs/facile-validator/HEAD/tests/rules/within.test.ts -------------------------------------------------------------------------------- /tests/utils/process-args.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upjs/facile-validator/HEAD/tests/utils/process-args.test.ts -------------------------------------------------------------------------------- /tests/utils/process-rule.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upjs/facile-validator/HEAD/tests/utils/process-rule.test.ts -------------------------------------------------------------------------------- /tests/utils/to-camel-case.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upjs/facile-validator/HEAD/tests/utils/to-camel-case.test.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upjs/facile-validator/HEAD/tsconfig.json -------------------------------------------------------------------------------- /vitest.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upjs/facile-validator/HEAD/vitest.config.ts -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upjs/facile-validator/HEAD/yarn.lock --------------------------------------------------------------------------------