mirror of
https://github.com/antebudimir/eslint-plugin-vanilla-extract.git
synced 2026-01-01 09:23:31 +00:00
feat 🥁: add no-empty-style-blocks rule to detect and prevent empty CSS blocks
This commit is contained in:
parent
f346002fb0
commit
47d3deb2f1
45 changed files with 2639 additions and 546 deletions
|
|
@ -1,6 +1,6 @@
|
|||
# @antebudimir/eslint-plugin-vanilla-extract
|
||||
|
||||
[](https://www.npmjs.com/package/@antebudimir/eslint-plugin-vanilla-extract) [](https://github.com/antebudimir/eslint-plugin-vanilla-extract/actions/workflows/ci.yml) [](https://coveralls.io/github/antebudimir/eslint-plugin-vanilla-extract?branch=main)
|
||||
[](https://github.com/antebudimir/eslint-plugin-vanilla-extract/actions/workflows/ci.yml) [](https://coveralls.io/github/antebudimir/eslint-plugin-vanilla-extract?branch=main) [](https://www.npmjs.com/package/@antebudimir/eslint-plugin-vanilla-extract) 
|
||||
|
||||
An ESLint plugin for enforcing best practices in [vanilla-extract](https://github.com/vanilla-extract-css/vanilla-extract) CSS styles, including CSS property ordering and additional linting rules. Available presets are for alphabetical and [concentric](https://rhodesmill.org/brandon/2011/concentric-css/) CSS ordering. The plugin also supports a custom group ordering option based on groups available in [concentric CSS](src/css-rules/concentric-order/concentric-groups.ts).
|
||||
|
||||
|
|
@ -266,11 +266,12 @@ The roadmap outlines the project's current status and future plans:
|
|||
- Initial release with support for alphabetical, concentric, and custom group CSS ordering.
|
||||
- Auto-fix capability integrated into ESLint.
|
||||
- Support for multiple vanilla-extract APIs (e.g., `style`, `styleVariants`, `recipe`, `globalStyle`, `fontFace`, etc.).
|
||||
- Rules tested.
|
||||
- `no-empty-style-blocks` rule to disallow empty blocks.
|
||||
- Comprehensive rule testing.
|
||||
|
||||
### Current Work
|
||||
|
||||
- `no-empty-blocks` rule to disallow empty blocks.
|
||||
- Setting up recommended ESLint configuration for the plugin.
|
||||
|
||||
### Upcoming Features
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue