@plumeria/eslint-plugin 0.1.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/LICENSE +21 -0
- package/lib/index.d.ts +18 -0
- package/lib/index.js +47 -0
- package/lib/rules/no-inner-call.js +69 -0
- package/lib/rules/no-unused-keys.js +96 -0
- package/lib/rules/sort-properties.js +126 -0
- package/lib/rules/validate-values.js +2251 -0
- package/lib/util/colorData.js +211 -0
- package/lib/util/place.js +291 -0
- package/lib/util/propertyGroups.js +557 -0
- package/lib/util/unitData.js +42 -0
- package/lib/util/validData.js +1052 -0
- package/package.json +26 -0
- package/readme.md +37 -0
package/package.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@plumeria/eslint-plugin",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Near Zero-runtime CSS-in-JS for efficient design systems.",
|
|
5
|
+
"repository": "github:zss-in-js/plumeria",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"keywords": [
|
|
8
|
+
"css",
|
|
9
|
+
"css-in-js",
|
|
10
|
+
"plumeria",
|
|
11
|
+
"react",
|
|
12
|
+
"next",
|
|
13
|
+
"vite"
|
|
14
|
+
],
|
|
15
|
+
"main": "lib/index.js",
|
|
16
|
+
"types": "lib/index.d.ts",
|
|
17
|
+
"files": [
|
|
18
|
+
"lib/"
|
|
19
|
+
],
|
|
20
|
+
"devDependencies": {
|
|
21
|
+
"eslint": "^9.15.0"
|
|
22
|
+
},
|
|
23
|
+
"publishConfig": {
|
|
24
|
+
"access": "public"
|
|
25
|
+
}
|
|
26
|
+
}
|
package/readme.md
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# @plumeria/eslint-plugin
|
|
2
|
+
|
|
3
|
+
ESLint plugin for Plumeria.
|
|
4
|
+
Below are the available rules and the recommended configuration.
|
|
5
|
+
|
|
6
|
+
## Recommended Configuration
|
|
7
|
+
|
|
8
|
+
The `plugin:@plumeria/recommended` config enables the following:
|
|
9
|
+
|
|
10
|
+
- `@plumeria/no-inner-call`: **error**
|
|
11
|
+
- `@plumeria/no-unused-keys`: **warn**
|
|
12
|
+
- `@plumeria/sort-properties`: **warn**
|
|
13
|
+
- `@plumeria/validate-values`: **warn**
|
|
14
|
+
|
|
15
|
+
```js
|
|
16
|
+
import plumeria from '@plumeria/eslint-plugin';
|
|
17
|
+
|
|
18
|
+
export default [plumeria.flatConfigs.recommended];
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Rules
|
|
22
|
+
|
|
23
|
+
### no-inner-call
|
|
24
|
+
|
|
25
|
+
Disallow calling `css.create`, `css.global`, etc. inside functions.
|
|
26
|
+
|
|
27
|
+
### no-unused-keys
|
|
28
|
+
|
|
29
|
+
Warns when object keys are defined but not used, mainly in component files.
|
|
30
|
+
|
|
31
|
+
### sort-properties
|
|
32
|
+
|
|
33
|
+
Automatically sorts CSS properties in the recommended order for consistency and maintainability.
|
|
34
|
+
|
|
35
|
+
### validate-values
|
|
36
|
+
|
|
37
|
+
Validates CSS property values for correctness. Only standard CSS properties are checked; properties with string literal keys (e.g., computed or dynamic property names) are not validated.
|