@plumeria/eslint-plugin 15.1.2 → 15.1.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.
@@ -86,10 +86,21 @@ exports.noUnknownCssProperties = {
86
86
  if (prop.value.type === 'ObjectExpression') {
87
87
  checkStyleObject(prop.value);
88
88
  }
89
+ let isCheckable = false;
90
+ let keyName = '';
89
91
  if (!prop.computed) {
90
- const keyName = prop.key.type === 'Identifier'
91
- ? prop.key.name
92
- : String(prop.key.value);
92
+ isCheckable = true;
93
+ keyName =
94
+ prop.key.type === 'Identifier'
95
+ ? prop.key.name
96
+ : String(prop.key.value);
97
+ }
98
+ else if (prop.key.type === 'Literal' &&
99
+ typeof prop.key.value === 'string') {
100
+ isCheckable = true;
101
+ keyName = prop.key.value;
102
+ }
103
+ if (isCheckable) {
93
104
  if (!keyName.startsWith(':') &&
94
105
  !keyName.startsWith('[') &&
95
106
  !keyName.startsWith('@') &&
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plumeria/eslint-plugin",
3
- "version": "15.1.2",
3
+ "version": "15.1.3",
4
4
  "description": "Plumeria ESLint plugin",
5
5
  "author": "Refirst 11",
6
6
  "license": "MIT",