primer / eslint-plugin-primer-react

ESLint rules for Primer React
MIT License
10 stars 9 forks source link

add enforce-css-module-default-import rule #266

Open keithamus opened 2 days ago

keithamus commented 2 days ago

Closes https://github.com/github/primer/issues/4355, https://github.com/github/primer/issues/4356

This adds a lint rule which enforces CSS modules be imported a certain way - with default imports, instead of named, and the default name must match a certain pattern.

changeset-bot[bot] commented 2 days ago

🦋 Changeset detected

Latest commit: 693b95161087734c8eee270d065cf51989c7d2a2

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | -------------------------- | ----- | | eslint-plugin-primer-react | Minor |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR