oxlint-plugin-arch 0.3.0 → 0.3.1
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 +4 -0
- package/dist/index.js +3 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.3.1
|
|
4
|
+
|
|
5
|
+
- Fix `key-value-same-line` reporting `key: (` values whose parenthesized expression starts on the next line.
|
|
6
|
+
|
|
3
7
|
## 0.3.0
|
|
4
8
|
|
|
5
9
|
- Add `no-promise-all-mutation`, `no-literal-in`, and `test-title-pattern` to replace hand-written `no-restricted-syntax` selectors with scope-aware, configurable rules.
|
package/dist/index.js
CHANGED
|
@@ -1477,7 +1477,9 @@ var keyValueSameLine = defineRule10({
|
|
|
1477
1477
|
keyEndLine = bracket.loc.end.line;
|
|
1478
1478
|
}
|
|
1479
1479
|
}
|
|
1480
|
-
|
|
1480
|
+
const tokens = source.getTokensBetween(node.key, node.value);
|
|
1481
|
+
const valueStart = tokens[tokens.findIndex((token) => token.value === ":") + 1] ?? node.value;
|
|
1482
|
+
if (keyEndLine === valueStart.loc.start.line) {
|
|
1481
1483
|
return;
|
|
1482
1484
|
}
|
|
1483
1485
|
const between = source.text.slice(keyEnd, node.value.range[0]);
|