https://marcalexiei.github.io/contribute/setup-pnpm-nvm.html
To check that every thing works correctly run:
pnpm run build && pnpm run test
There are two types of test:
- rules code - tests executed directly on rule code using
ESLint#RuleTester
- configuration tests - they create an
ESLint
instance and they run it on files available in fixtures undertests/fixtures
folders. These files contains errors so they should not be fixed manually.
Tip
Fixtures configuration can also be used as playground to tryout if the rule are working as expected via editor. After changing plugin source code be sure to run the build and restart ESLint server (or VSCode)before test the changes
pnpm run update:eslint-docs
Be sure to check documentation lint via
pnpm run lint:docs