happy-css-modules 0.6.1 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -11
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,10 +2,12 @@
|
|
|
2
2
|
<img alt="Cover image" src="./docs/cover.svg" />
|
|
3
3
|
</p>
|
|
4
4
|
|
|
5
|
-
<h2 align="center">
|
|
5
|
+
<h2 align="center">Happy CSS Modules</h2>
|
|
6
6
|
|
|
7
7
|
<p align="center">
|
|
8
|
-
<em>Typed, definition
|
|
8
|
+
<em>Typed, definition jumpable CSS Modules.</em>
|
|
9
|
+
<br />
|
|
10
|
+
<em>Moreover, easy!</em>
|
|
9
11
|
</p>
|
|
10
12
|
|
|
11
13
|
https://user-images.githubusercontent.com/9639995/189538880-872ad38d-2c9d-4c19-b257-521018963eec.mov
|
|
@@ -17,8 +19,6 @@ https://user-images.githubusercontent.com/9639995/189538880-872ad38d-2c9d-4c19-b
|
|
|
17
19
|
- :mag: Definition jumps
|
|
18
20
|
- Clicking on a property on `.jsx`/`.tsx` will jump to the source of the definition on `.module.css`.
|
|
19
21
|
- This is accomplished by generating `.d.ts.map` (a.k.a. [Declaration Map](https://www.typescriptlang.org/tsconfig#declarationMap)).
|
|
20
|
-
- :rotating_light: Unused selector detection (**Not implemented yet**)
|
|
21
|
-
- Detect unused selectors using information from strict type checking.
|
|
22
22
|
- :handshake: High compatibility with the ecosystem
|
|
23
23
|
- Support for Postcss/Sass/Less
|
|
24
24
|
- Implement webpack-compatible resolving algorithms
|
|
@@ -264,10 +264,3 @@ There are several prior art for each feature. In contrast, happy-css-modules is
|
|
|
264
264
|
|
|
265
265
|
- [typescript-plugin-css-modules](https://github.com/mrmckeb/typescript-plugin-css-modules)
|
|
266
266
|
- Can only jump to the top of `.css`.
|
|
267
|
-
|
|
268
|
-
### Unused selector detection
|
|
269
|
-
|
|
270
|
-
- [stylelint-no-unused-selectors](https://github.com/nodaguti/stylelint-no-unused-selectors)
|
|
271
|
-
- Detectable patterns are limited.
|
|
272
|
-
- However, it works without `.d.ts`.
|
|
273
|
-
- For more information, see [the documentation](https://github.com/nodaguti/stylelint-no-unused-selectors/tree/57eeacaab675957aaa507f5524b9b78947e127b2/src/plugins/stylelint-no-unused-selectors-plugin-tsx#features-and-limitations)
|