@fluid-topics/ft-eslint 1.3.7 → 1.3.9

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.
@@ -16,7 +16,7 @@ export const quotedAttributesRule = {
16
16
  },
17
17
  create(context) {
18
18
  const quotePattern = /=(["'])?$/;
19
- const attributePattern = /[?@.]\w+=["']?$/;
19
+ const propertyPattern = /[?@.][\w-]+=["']?$/;
20
20
  function addQuotes(previousQuasi, nextQuasi) {
21
21
  return (fixer) => {
22
22
  if (!previousQuasi.range || !nextQuasi.range) {
@@ -60,7 +60,7 @@ export const quotedAttributesRule = {
60
60
  if (!quoteMatch) { // we are not at a `foo=` token
61
61
  continue;
62
62
  }
63
- const needQuote = previousQuasi.value.raw.match(attributePattern) === null;
63
+ const needQuote = previousQuasi.value.raw.match(propertyPattern) === null;
64
64
  const hasStartQuote = quoteMatch[1] !== undefined;
65
65
  const isQuoted = hasStartQuote && nextQuasi.value.raw.startsWith(quoteMatch[1]);
66
66
  if (needQuote && !hasStartQuote) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-eslint",
3
- "version": "1.3.7",
3
+ "version": "1.3.9",
4
4
  "description": "ESlint rules for web components",
5
5
  "keywords": [
6
6
  "Lit"
@@ -21,5 +21,5 @@
21
21
  "dependencies": {
22
22
  "lit": "3.1.0"
23
23
  },
24
- "gitHead": "83a6f0c292e6669cc067b7aa40fea8a4a0a61b7f"
24
+ "gitHead": "dc6e10bbbaa21aaa6bf6ba41693dccd334fa9854"
25
25
  }