@hmcts/cmc-validators

This is a validator library, containing frontend validators used in CMC frontend applications. i.e [cmc-citizen-frontend](https://github.com/hmcts/cmc-citizen-frontend) and [cmc-legal-rep-frontend](https://github.com/hmcts/cmc-legal-rep-frontend)

Stats

StarsIssuesVersionUpdatedCreatedSize
@hmcts/cmc-validators
0180.2.62 years ago3 years agoMinified + gzip package size for @hmcts/cmc-validators in KB

Readme

cmc-validators

This is a validator library, containing frontend validators used in CMC frontend applications. i.e cmc-citizen-frontend and cmc-legal-rep-frontend

Getting started

How to use it?

Installation

To add library to the project dependencies run:

$ yarn add @hmcts/cmc-validators

or

$ npm install @hmcts/cmc-validators

Dependencies

Install dependencies by executing the following command:

$ yarn install

Code style

We use TSLint with StandardJS rules

Run the linting:

$ yarn lint

Linting will also run automatically prior to committing changes.

Running the tests

Mocha is used for writing tests.

Run them with:

$ yarn test

For test coverage run:

$ yarn test:coverage

License

This project is licensed under the MIT License - see the LICENSE file for details

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.