ni / nimble

The NI Nimble Design System
https://nimble.ni.dev
MIT License
29 stars 9 forks source link

Lint organization #2168

Closed rajsite closed 3 weeks ago

rajsite commented 3 weeks ago

Pull Request

🀨 Rationale

Found that eslint rules and prettier rules were configured inconsistently resulting in different rules being enforced unexpectedly in different packages.

Cleaning up the build configuration resulted in more files being covered (not just src but build scripts, infra, etc), generated files being correctly ignored, and moving the nimble-components linting from our slowest validation step (5m58s) to one of the fastest (1m29s). Now linting is consistently faster than testing.

πŸ‘©β€πŸ’» Implementation

Also aligned on the following organization for eslint files:

πŸ§ͺ Testing

Ran locally and on CI. Also added back top level npm run test and npm run lint commands in case someone wants to run those individually instead of using validate which does both.

βœ… Checklist