stylelint / eslint-config-stylelint

Stylelint org's shareable config for eslint
MIT License
60 stars 9 forks source link

[Breaking] Add config for Jest #211

Closed ybiquitous closed 1 year ago

ybiquitous commented 1 year ago

Which issue, if any, is this issue related to?

Closes #205

Is there anything in the PR that needs further explanation?

This change extracts the config for Jest from the default one. Breaking change. See the update README.md for details.

How to test locally

  1. Check out 2 repos:
./
├── eslint-config-stylelint/   (on `jest-config` branch)
└── stylelint/                 (on `main` branch)
  1. Run the commands below:
$ cd eslint-config-stylelint/
$ npm pack
$ cd ../stylelint
$ npm i -D ../eslint-config-stylelint/eslint-config-stylelint-17.1.0.tgz eslint-plugin-jest
$ npm pkg set 'eslintConfig.extends[]=stylelint/jest'
$ npm run lint:js

Successful if no lint errors are reported.

ybiquitous commented 1 year ago

Thank you. I'm going to prepare v18.0.0.