@plumeria/eslint-plugin 0.2.0 → 0.2.2
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.
|
@@ -49,11 +49,10 @@ module.exports = {
|
|
|
49
49
|
if (objectName === 'css') {
|
|
50
50
|
const fullName = `${objectName}.${propertyName}`;
|
|
51
51
|
if (
|
|
52
|
-
propertyName
|
|
52
|
+
propertyName.startsWith('create') ||
|
|
53
53
|
propertyName === 'global' ||
|
|
54
54
|
propertyName === 'keyframes' ||
|
|
55
|
-
propertyName
|
|
56
|
-
propertyName === 'defineTheme'
|
|
55
|
+
propertyName.startsWith('define')
|
|
57
56
|
) {
|
|
58
57
|
context.report({
|
|
59
58
|
node,
|
|
@@ -161,9 +161,11 @@ function buildColorMixPattern() {
|
|
|
161
161
|
}
|
|
162
162
|
|
|
163
163
|
const colorMixString = buildColorMixPattern();
|
|
164
|
+
const lightDarkValue = `${colorValue}|${colorMixString}|${varString}`;
|
|
165
|
+
const lightDarkString = `light-dark\\((?:${lightDarkValue}),\\s*(?:${lightDarkValue})\\)`;
|
|
164
166
|
|
|
165
167
|
const colorRegex = new RegExp(
|
|
166
|
-
`^(${colorValue}|${colorMixString}|${varString})$`,
|
|
168
|
+
`^(${colorValue}|${colorMixString}|${lightDarkString}|${varString})$`,
|
|
167
169
|
);
|
|
168
170
|
const colorSource = colorRegex.source.slice(1, -1);
|
|
169
171
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plumeria/eslint-plugin",
|
|
3
|
-
"version": "0.2.
|
|
4
|
-
"description": "Zero-runtime CSS
|
|
3
|
+
"version": "0.2.2",
|
|
4
|
+
"description": "Zero-runtime, expressive CSS-in-JS library for TypeScript.",
|
|
5
5
|
"repository": "github:zss-in-js/plumeria",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"keywords": [
|