├── .babelrc ├── .eslintignore ├── .eslintrc ├── .github └── workflows │ └── ci.yml ├── .gitignore ├── .npmrc ├── CHANGELOG.md ├── LICENSE ├── README.md ├── docs ├── API Reference.md ├── Custom Helpers.md ├── ObjectValidator.md ├── Squareup-API-Documentation.md └── ValidatorBuilder.md ├── package.json ├── script └── build ├── src ├── lgtm.js └── lgtm │ ├── config.js │ ├── helpers │ └── core.js │ ├── object_validator.js │ ├── utils.js │ ├── validation.js │ └── validator_builder.js ├── test ├── .eslintrc ├── helpers │ ├── core_test.js │ └── registration_test.js ├── helpers_test.js ├── lgtm.js ├── mocha.opts ├── object_validator_test.js ├── regressions │ ├── 08_duplicate_errors_test.js │ └── 17_required_message_test.js ├── support │ └── resolve.js ├── validates_test.js └── validator_test.js └── yarn.lock /.babelrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/lgtm/HEAD/.babelrc -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | dist -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/lgtm/HEAD/.eslintrc -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/lgtm/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | lib 2 | node_modules 3 | *.map 4 | dist 5 | *.log 6 | -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/lgtm/HEAD/.npmrc -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/lgtm/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/lgtm/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/lgtm/HEAD/README.md -------------------------------------------------------------------------------- /docs/API Reference.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/lgtm/HEAD/docs/API Reference.md -------------------------------------------------------------------------------- /docs/Custom Helpers.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/lgtm/HEAD/docs/Custom Helpers.md -------------------------------------------------------------------------------- /docs/ObjectValidator.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/lgtm/HEAD/docs/ObjectValidator.md -------------------------------------------------------------------------------- /docs/Squareup-API-Documentation.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/lgtm/HEAD/docs/Squareup-API-Documentation.md -------------------------------------------------------------------------------- /docs/ValidatorBuilder.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/lgtm/HEAD/docs/ValidatorBuilder.md -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/lgtm/HEAD/package.json -------------------------------------------------------------------------------- /script/build: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/lgtm/HEAD/script/build -------------------------------------------------------------------------------- /src/lgtm.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/lgtm/HEAD/src/lgtm.js -------------------------------------------------------------------------------- /src/lgtm/config.js: -------------------------------------------------------------------------------- 1 | export default {}; 2 | -------------------------------------------------------------------------------- /src/lgtm/helpers/core.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/lgtm/HEAD/src/lgtm/helpers/core.js -------------------------------------------------------------------------------- /src/lgtm/object_validator.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/lgtm/HEAD/src/lgtm/object_validator.js -------------------------------------------------------------------------------- /src/lgtm/utils.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/lgtm/HEAD/src/lgtm/utils.js -------------------------------------------------------------------------------- /src/lgtm/validation.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/lgtm/HEAD/src/lgtm/validation.js -------------------------------------------------------------------------------- /src/lgtm/validator_builder.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/lgtm/HEAD/src/lgtm/validator_builder.js -------------------------------------------------------------------------------- /test/.eslintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/lgtm/HEAD/test/.eslintrc -------------------------------------------------------------------------------- /test/helpers/core_test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/lgtm/HEAD/test/helpers/core_test.js -------------------------------------------------------------------------------- /test/helpers/registration_test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/lgtm/HEAD/test/helpers/registration_test.js -------------------------------------------------------------------------------- /test/helpers_test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/lgtm/HEAD/test/helpers_test.js -------------------------------------------------------------------------------- /test/lgtm.js: -------------------------------------------------------------------------------- 1 | export * from '../src/lgtm'; 2 | -------------------------------------------------------------------------------- /test/mocha.opts: -------------------------------------------------------------------------------- 1 | --recursive --require @babel/register test 2 | -------------------------------------------------------------------------------- /test/object_validator_test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/lgtm/HEAD/test/object_validator_test.js -------------------------------------------------------------------------------- /test/regressions/08_duplicate_errors_test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/lgtm/HEAD/test/regressions/08_duplicate_errors_test.js -------------------------------------------------------------------------------- /test/regressions/17_required_message_test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/lgtm/HEAD/test/regressions/17_required_message_test.js -------------------------------------------------------------------------------- /test/support/resolve.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/lgtm/HEAD/test/support/resolve.js -------------------------------------------------------------------------------- /test/validates_test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/lgtm/HEAD/test/validates_test.js -------------------------------------------------------------------------------- /test/validator_test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/lgtm/HEAD/test/validator_test.js -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/square/lgtm/HEAD/yarn.lock --------------------------------------------------------------------------------