This is a validator library, containing frontend validators used in CMC frontend applications. i.e cmc-citizen-frontend and cmc-legal-rep-frontend
How to use it?
To add library to the project dependencies run:
$ yarn add @hmcts/cmc-validators
$ npm install @hmcts/cmc-validators
Install dependencies by executing the following command:
$ yarn install
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
This project is licensed under the MIT License - see the LICENSE file for details