ministryofjustice / moj-frontend

Use the MoJ Design System to design, build, and deliver accessible and consistent services.
https://design-patterns.service.justice.gov.uk/
MIT License
33 stars 20 forks source link

Add JS linting and formatting #891

Open chrispymm opened 2 weeks ago

chrispymm commented 2 weeks ago

What

Ensure our JS files are formatted to a consistent standard. We should follow GDS standards: https://gds-way.digital.cabinet-office.gov.uk/manuals/programming-languages/js.html#linting

Why

Keeps code consistent, helps avoid errors, and makes contributions/review easier.

Who needs to be involved

Done

chrispymm commented 1 week ago

need tests for datepicker before refactoring to appease linting rules