@hmcts/cmc-validators
v0.2.6
Published
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)
Downloads
196
Maintainers
Keywords
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