@html-eslint/eslint-plugin 0.17.0 → 0.17.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.
@@ -27,7 +27,7 @@ const INDENT_TYPES = {
27
27
  SPACE: "space",
28
28
  };
29
29
 
30
- const IGNORING_NODES = ["pre", "xmp", "script", "style"];
30
+ const IGNORING_NODES = ["pre", "xmp"];
31
31
 
32
32
  /**
33
33
  * @type {Rule}
@@ -223,6 +223,14 @@ module.exports = {
223
223
  }
224
224
  indent();
225
225
  },
226
+ ScriptTag: indent,
227
+ "ScriptTag:exit": unindent,
228
+ OpenScriptTagStart: checkIndent,
229
+ OpenScriptTagEnd: checkIndent,
230
+ StyleTag: indent,
231
+ "StyleTag:exit": unindent,
232
+ OpenStyleTagStart: checkIndent,
233
+ OpenStyleTagEnd: checkIndent,
226
234
  OpenTagStart: checkIndent,
227
235
  OpenTagEnd: checkIndent,
228
236
  CloseTag: checkIndent,
@@ -74,9 +74,8 @@ module.exports = {
74
74
  },
75
75
  });
76
76
  } else if (
77
- attr.value &&
78
77
  typeof option.value === "string" &&
79
- attr.value.value !== option.value
78
+ (!attr.value || attr.value.value !== option.value)
80
79
  ) {
81
80
  context.report({
82
81
  messageId: MESSAGE_IDS.UNEXPECTED,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@html-eslint/eslint-plugin",
3
- "version": "0.17.0",
3
+ "version": "0.17.2",
4
4
  "description": "ESLint plugin for html",
5
5
  "author": "yeonjuan",
6
6
  "homepage": "https://github.com/yeonjuan/html-eslint#readme",
@@ -40,11 +40,11 @@
40
40
  "accessibility"
41
41
  ],
42
42
  "devDependencies": {
43
- "@html-eslint/parser": "^0.17.0",
43
+ "@html-eslint/parser": "^0.17.1",
44
44
  "@types/eslint": "^7.2.10",
45
45
  "@types/estree": "^0.0.47",
46
46
  "es-html-parser": "^0.0.8",
47
47
  "typescript": "^4.4.4"
48
48
  },
49
- "gitHead": "4ff87ae244278c889699622cba70400595ea069d"
49
+ "gitHead": "11ef4b320550daeabe9afa2896b3a0decc48ba75"
50
50
  }