stylelint / eslint-config-stylelint

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

Add rules for ESM files #227

Closed ybiquitous closed 1 year ago

ybiquitous commented 1 year ago

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

Ref https://github.com/stylelint/stylelint/issues/5291

Is there anything in the PR that needs further explanation?

This change suggests adding the following rules for ESM files.

Someone may disagree with using overrides in sharable configs. Please let me know if you have concerns.


Motivation

I want to automatically check ESM files during the migration from CJS to ESM in the stylelint/stylelint repository.

Also, I believe these enabled rules are useful for other projects.

ybiquitous commented 1 year ago

Thanks for the review! I'll release 19.1.0 soon.

ybiquitous commented 1 year ago

https://github.com/stylelint/eslint-config-stylelint/releases/tag/19.1.0 released! 🎉