@plumeria/eslint-plugin 21.2.1 → 21.2.3
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 +3 -3
- package/dist/util/staticValue.js +3 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -109,7 +109,7 @@ A shorthand resets what it omits, so `borderBlock: 'solid'` expands with
|
|
|
109
109
|
|
|
110
110
|
### no-combinator
|
|
111
111
|
|
|
112
|
-
Disallow combinators `>`, `+`, `~` and descendant combinator (space) unless inside functional pseudo-classes.
|
|
112
|
+
Disallow combinators `>`, `+`, `~` and descendant combinator (space) unless inside functional pseudo-classes. A `css.createStatic` value is checked only when it starts with `:` or `[`, the ones that become a selector when used as a key.
|
|
113
113
|
|
|
114
114
|
### no-destructure
|
|
115
115
|
|
|
@@ -156,7 +156,7 @@ is known to be vertical.
|
|
|
156
156
|
|
|
157
157
|
### no-style-prop-relay
|
|
158
158
|
|
|
159
|
-
Reports a style prop that a component receives but only passes on. Apply it to the styling prop or `css.use()` on an element the component renders.
|
|
159
|
+
Reports a style prop that a component receives but only passes on, and a received style passed through the styling prop to a component that declares it. Apply it to the styling prop or `css.use()` on an element the component renders.
|
|
160
160
|
|
|
161
161
|
Accepts `{ styleProp }`; see [Configuring the styling prop](#configuring-the-styling-prop).
|
|
162
162
|
|
|
@@ -178,7 +178,7 @@ Warns when object keys are defined but not used, mainly in component files.
|
|
|
178
178
|
|
|
179
179
|
### sort-properties
|
|
180
180
|
|
|
181
|
-
Automatically sorts CSS properties in the recommended order for consistency and maintainability.
|
|
181
|
+
Automatically sorts CSS properties in the recommended order for consistency and maintainability. A computed key from `css.createStatic` is read as the at-rule it holds and sorted with the other at-rules, after the pseudo-classes.
|
|
182
182
|
|
|
183
183
|
### format-properties
|
|
184
184
|
|
package/dist/util/staticValue.js
CHANGED
|
@@ -82,7 +82,9 @@ function staticValueResolver(context) {
|
|
|
82
82
|
return node.property.name;
|
|
83
83
|
}
|
|
84
84
|
const key = resolve(node.property);
|
|
85
|
-
return typeof key === 'string'
|
|
85
|
+
return typeof key === 'string' || typeof key === 'number'
|
|
86
|
+
? String(key)
|
|
87
|
+
: undefined;
|
|
86
88
|
};
|
|
87
89
|
const resolve = (node) => {
|
|
88
90
|
node = unwrap(node);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plumeria/eslint-plugin",
|
|
3
|
-
"version": "21.2.
|
|
3
|
+
"version": "21.2.3",
|
|
4
4
|
"description": "Plumeria ESLint plugin",
|
|
5
5
|
"author": "Refirst 11",
|
|
6
6
|
"license": "MIT",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"dependencies": {
|
|
60
60
|
"oxlint": "1.87.0",
|
|
61
61
|
"zss-engine": "3.0.1",
|
|
62
|
-
"@plumeria/compiler": "21.2.
|
|
62
|
+
"@plumeria/compiler": "21.2.3"
|
|
63
63
|
},
|
|
64
64
|
"scripts": {
|
|
65
65
|
"build": "rimraf dist && pnpm cjs",
|