isml-linter 5.43.3 → 5.43.4
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/CHANGELOG.md +7 -0
- package/package.json +1 -1
- package/src/rules/tree/indent.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [5.43.4] - 2023-02-20
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
- [Issue #39][issue#39] - Allow closing tag to be in the same line as corresponding opening tag last character;
|
|
7
|
+
|
|
3
8
|
## [5.43.3] - 2023-02-20
|
|
4
9
|
|
|
5
10
|
### Fixed
|
|
@@ -1103,6 +1108,7 @@
|
|
|
1103
1108
|
### Added
|
|
1104
1109
|
- Linter is published;
|
|
1105
1110
|
|
|
1111
|
+
[5.43.4]: https://github.com/FabiowQuixada/isml-linter/compare/v5.43.3...v5.43.4
|
|
1106
1112
|
[5.43.3]: https://github.com/FabiowQuixada/isml-linter/compare/v5.43.2...v5.43.3
|
|
1107
1113
|
[5.43.2]: https://github.com/FabiowQuixada/isml-linter/compare/v5.43.1...v5.43.2
|
|
1108
1114
|
[5.43.1]: https://github.com/FabiowQuixada/isml-linter/compare/v5.43.0...v5.43.1
|
|
@@ -1270,6 +1276,7 @@
|
|
|
1270
1276
|
[issue#30]: https://github.com/FabiowQuixada/isml-linter/issues/30
|
|
1271
1277
|
[issue#31]: https://github.com/FabiowQuixada/isml-linter/issues/31
|
|
1272
1278
|
[issue#35]: https://github.com/FabiowQuixada/isml-linter/issues/35
|
|
1279
|
+
[issue#39]: https://github.com/FabiowQuixada/isml-linter/issues/39
|
|
1273
1280
|
|
|
1274
1281
|
[cli-docs]: <docs/cli.md>
|
|
1275
1282
|
[api-docs]: <docs/api.md>
|
package/package.json
CHANGED
package/src/rules/tree/indent.js
CHANGED
|
@@ -63,7 +63,7 @@ Rule.isTailBroken = function(node) {
|
|
|
63
63
|
const configIndentSize = this.getConfigs().indent;
|
|
64
64
|
const expectedIndentation = getExpectedIndentation(node, configIndentSize);
|
|
65
65
|
const actualIndentation = getActualTailIndentation(node);
|
|
66
|
-
const isInSameLineAsOpeningTag = node.
|
|
66
|
+
const isInSameLineAsOpeningTag = node.endLineNumber === node.tailLineNumber;
|
|
67
67
|
const isInSameLineAsLastChild = node.hasChildren() && node.getLastChild().getLastLineNumber() === node.tailLineNumber;
|
|
68
68
|
|
|
69
69
|
return !node.isRoot() &&
|