@plumeria/eslint-plugin 20.0.0 → 21.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 CHANGED
@@ -125,7 +125,7 @@ Disallow calling APIs inside functions.
125
125
 
126
126
  ### no-invalid-selector
127
127
 
128
- Disallow invalid selector inside `css.create()` and `css.keyframes()` and `css.viewTransition()`.
128
+ Disallow invalid selector inside `css.create()` and `css.keyframes()` and `css.viewTransitionClass()`.
129
129
  `create()` example: (Pseudo -> Query, Query -> Query)
130
130
  Also reports a functional pseudo-class nested inside one of the same name, such as `:where(:where(.a), .b)`, and flattens it with a fix when the nested call is a whole argument. `:not()` may nest inside `:not()`. Reports a key nested deeper than 16 levels or holding a stray quote.
131
131
 
@@ -162,7 +162,7 @@ Accepts `{ styleProp }`; see [Configuring the styling prop](#configuring-the-sty
162
162
 
163
163
  ### no-unknown-css-properties
164
164
 
165
- Disallow unknown CSS properties in camelCase within `css.create`, `css.keyframes`, `css.viewTransition`, and `css.positionTry`. Inside `css.positionTry`, it also reports properties that `@position-try` does not accept.
165
+ Disallow unknown CSS properties in camelCase within `css.create`, `css.keyframes`, `css.viewTransitionClass`, and `css.positionTry`. Inside `css.positionTry`, it also reports properties that `@position-try` does not accept.
166
166
 
167
167
  In `css.create`, a key that holds an object is reported with a hint that nested selectors start with `:`, `[` or `@`.
168
168
 
@@ -50,7 +50,7 @@ exports.expandBorderShorthands = {
50
50
  : null;
51
51
  if (propertyName === 'create' ||
52
52
  propertyName === 'keyframes' ||
53
- propertyName === 'viewTransition' ||
53
+ propertyName === 'viewTransitionClass' ||
54
54
  propertyName === 'positionTry') {
55
55
  isCssProperties = true;
56
56
  isPositionTry = propertyName === 'positionTry';
@@ -61,7 +61,7 @@ exports.expandBorderShorthands = {
61
61
  const aliasName = plumeriaAliases[node.callee.name];
62
62
  if (aliasName === 'create' ||
63
63
  aliasName === 'keyframes' ||
64
- aliasName === 'viewTransition' ||
64
+ aliasName === 'viewTransitionClass' ||
65
65
  aliasName === 'positionTry') {
66
66
  isCssProperties = true;
67
67
  isPositionTry = aliasName === 'positionTry';
@@ -149,7 +149,7 @@ exports.formatProperties = {
149
149
  : null;
150
150
  if (propertyName === 'create' ||
151
151
  propertyName === 'keyframes' ||
152
- propertyName === 'viewTransition' ||
152
+ propertyName === 'viewTransitionClass' ||
153
153
  propertyName === 'positionTry') {
154
154
  isCssProperties = true;
155
155
  isPositionTry = propertyName === 'positionTry';
@@ -160,7 +160,7 @@ exports.formatProperties = {
160
160
  const alias = plumeriaAliases[node.callee.name];
161
161
  if (alias === 'create' ||
162
162
  alias === 'keyframes' ||
163
- alias === 'viewTransition' ||
163
+ alias === 'viewTransitionClass' ||
164
164
  alias === 'positionTry') {
165
165
  isCssProperties = true;
166
166
  isPositionTry = alias === 'positionTry';
@@ -48,7 +48,7 @@ exports.noDestructure = {
48
48
  keyName === 'createStatic' ||
49
49
  keyName === 'createTheme' ||
50
50
  keyName === 'keyframes' ||
51
- keyName === 'viewTransition' ||
51
+ keyName === 'viewTransitionClass' ||
52
52
  keyName === 'positionTry' ||
53
53
  keyName === 'varType' ||
54
54
  keyName === 'use') {
@@ -80,7 +80,7 @@ exports.noInnerCall = {
80
80
  propertyName === 'createStatic' ||
81
81
  propertyName === 'createTheme' ||
82
82
  propertyName === 'keyframes' ||
83
- propertyName === 'viewTransition' ||
83
+ propertyName === 'viewTransitionClass' ||
84
84
  propertyName === 'positionTry' ||
85
85
  propertyName === 'varType') {
86
86
  context.report({
@@ -425,7 +425,7 @@ exports.noInvalidSelector = {
425
425
  isCssCreate = true;
426
426
  if (propertyName === 'keyframes')
427
427
  isCssKeyframes = true;
428
- if (propertyName === 'viewTransition')
428
+ if (propertyName === 'viewTransitionClass')
429
429
  isCssViewTransition = true;
430
430
  }
431
431
  }
@@ -435,7 +435,7 @@ exports.noInvalidSelector = {
435
435
  isCssCreate = true;
436
436
  if (alias === 'keyframes')
437
437
  isCssKeyframes = true;
438
- if (alias === 'viewTransition')
438
+ if (alias === 'viewTransitionClass')
439
439
  isCssViewTransition = true;
440
440
  }
441
441
  if (isCssCreate && node.arguments[0]?.type === 'ObjectExpression') {
@@ -6,7 +6,7 @@ const STYLE_APIS = new Set([
6
6
  'createStatic',
7
7
  'createTheme',
8
8
  'keyframes',
9
- 'viewTransition',
9
+ 'viewTransitionClass',
10
10
  'positionTry',
11
11
  'varType',
12
12
  ]);
@@ -124,7 +124,7 @@ exports.noOrderDependentOverlap = {
124
124
  : null;
125
125
  if (propertyName === 'create' ||
126
126
  propertyName === 'keyframes' ||
127
- propertyName === 'viewTransition' ||
127
+ propertyName === 'viewTransitionClass' ||
128
128
  propertyName === 'positionTry') {
129
129
  isCssProperties = true;
130
130
  isPositionTry = propertyName === 'positionTry';
@@ -135,7 +135,7 @@ exports.noOrderDependentOverlap = {
135
135
  const aliasName = plumeriaAliases[node.callee.name];
136
136
  if (aliasName === 'create' ||
137
137
  aliasName === 'keyframes' ||
138
- aliasName === 'viewTransition' ||
138
+ aliasName === 'viewTransitionClass' ||
139
139
  aliasName === 'positionTry') {
140
140
  isCssProperties = true;
141
141
  isPositionTry = aliasName === 'positionTry';
@@ -50,7 +50,7 @@ exports.noUnknownCssProperties = {
50
50
  meta: {
51
51
  type: 'problem',
52
52
  docs: {
53
- description: 'Disallow unknown CSS properties in camelCase within css.create, css.keyframes, css.viewTransition, and css.positionTry',
53
+ description: 'Disallow unknown CSS properties in camelCase within css.create, css.keyframes, css.viewTransitionClass, and css.positionTry',
54
54
  },
55
55
  messages: {
56
56
  unknownProperty: "Unknown CSS property '{{ name }}'.",
@@ -91,7 +91,7 @@ exports.noUnknownCssProperties = {
91
91
  : null;
92
92
  if (propertyName === 'create' ||
93
93
  propertyName === 'keyframes' ||
94
- propertyName === 'viewTransition' ||
94
+ propertyName === 'viewTransitionClass' ||
95
95
  propertyName === 'positionTry') {
96
96
  isCssProperties = true;
97
97
  isPositionTry = propertyName === 'positionTry';
@@ -103,7 +103,7 @@ exports.noUnknownCssProperties = {
103
103
  const alias = plumeriaAliases[node.callee.name];
104
104
  if (alias === 'create' ||
105
105
  alias === 'keyframes' ||
106
- alias === 'viewTransition' ||
106
+ alias === 'viewTransitionClass' ||
107
107
  alias === 'positionTry') {
108
108
  isCssProperties = true;
109
109
  isPositionTry = alias === 'positionTry';
@@ -197,7 +197,7 @@ exports.sortProperties = {
197
197
  : null;
198
198
  if (propertyName === 'create' ||
199
199
  propertyName === 'keyframes' ||
200
- propertyName === 'viewTransition' ||
200
+ propertyName === 'viewTransitionClass' ||
201
201
  propertyName === 'positionTry') {
202
202
  isCssProperties = true;
203
203
  isPositionTry = propertyName === 'positionTry';
@@ -208,7 +208,7 @@ exports.sortProperties = {
208
208
  const alias = plumeriaAliases[node.callee.name];
209
209
  if (alias === 'create' ||
210
210
  alias === 'keyframes' ||
211
- alias === 'viewTransition' ||
211
+ alias === 'viewTransitionClass' ||
212
212
  alias === 'positionTry') {
213
213
  isCssProperties = true;
214
214
  isPositionTry = alias === 'positionTry';
@@ -2132,7 +2132,7 @@ exports.validateValues = {
2132
2132
  : null;
2133
2133
  if (propertyName === 'create' ||
2134
2134
  propertyName === 'keyframes' ||
2135
- propertyName === 'viewTransition' ||
2135
+ propertyName === 'viewTransitionClass' ||
2136
2136
  propertyName === 'positionTry') {
2137
2137
  isCssProperties = true;
2138
2138
  isPositionTry = propertyName === 'positionTry';
@@ -2143,7 +2143,7 @@ exports.validateValues = {
2143
2143
  const alias = plumeriaAliases[node.callee.name];
2144
2144
  if (alias === 'create' ||
2145
2145
  alias === 'keyframes' ||
2146
- alias === 'viewTransition' ||
2146
+ alias === 'viewTransitionClass' ||
2147
2147
  alias === 'positionTry') {
2148
2148
  isCssProperties = true;
2149
2149
  isPositionTry = alias === 'positionTry';
@@ -62,7 +62,7 @@ const createSpellingRule = (reject) => ({
62
62
  : null;
63
63
  if (propertyName === 'create' ||
64
64
  propertyName === 'keyframes' ||
65
- propertyName === 'viewTransition' ||
65
+ propertyName === 'viewTransitionClass' ||
66
66
  propertyName === 'positionTry') {
67
67
  isCssProperties = true;
68
68
  isPositionTry = propertyName === 'positionTry';
@@ -73,7 +73,7 @@ const createSpellingRule = (reject) => ({
73
73
  const aliasName = plumeriaAliases[node.callee.name];
74
74
  if (aliasName === 'create' ||
75
75
  aliasName === 'keyframes' ||
76
- aliasName === 'viewTransition' ||
76
+ aliasName === 'viewTransitionClass' ||
77
77
  aliasName === 'positionTry') {
78
78
  isCssProperties = true;
79
79
  isPositionTry = aliasName === 'positionTry';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plumeria/eslint-plugin",
3
- "version": "20.0.0",
3
+ "version": "21.0.0",
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": "20.0.0"
62
+ "@plumeria/compiler": "21.0.0"
63
63
  },
64
64
  "scripts": {
65
65
  "build": "rimraf dist && pnpm cjs",