eslint-plugin-mpx 0.2.28 → 0.2.29

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.
@@ -596,7 +596,7 @@ module.exports = {
596
596
  },
597
597
 
598
598
  /**
599
- * Check whether the given directive attribute has their empty value (`=""`).
599
+ * Check whether the given directive attribute has their empty value (`=""` or `="{{}}"`).
600
600
  * @param {VDirective} node The directive attribute node to check.
601
601
  * @param {RuleContext} context The rule context to use parser services.
602
602
  * @returns {boolean} `true` if the directive attribute has their empty value (`=""`).
@@ -605,9 +605,9 @@ module.exports = {
605
605
  if (node.value == null) {
606
606
  return false
607
607
  }
608
- if (node.value.expression != null) {
609
- return false
610
- }
608
+ // if (node.value.expression != null) { // expression 可能是空字符串
609
+ // return false
610
+ // }
611
611
 
612
612
  let valueText = context.getSourceCode().getText(node.value)
613
613
  if (
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-mpx",
3
- "version": "0.2.28",
3
+ "version": "0.2.29",
4
4
  "description": "Official ESLint plugin for Mpx.js",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -50,7 +50,7 @@
50
50
  },
51
51
  "dependencies": {
52
52
  "eslint-utils": "^2.1.0",
53
- "mpx-eslint-parser": "^0.0.14",
53
+ "mpx-eslint-parser": "^0.0.17",
54
54
  "natural-compare": "^1.4.0",
55
55
  "semver": "^7.3.2"
56
56
  },