yamllint-js 0.2.3 → 0.2.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 CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.2.4](https://github.com/kimzuni-labs/yamllint-js/compare/v0.2.3...v0.2.4) (2026-02-22)
4
+
5
+
6
+ ### 🐛 Bug Fixes
7
+
8
+ * correct detect config file in stopDir ([f1b182c](https://github.com/kimzuni-labs/yamllint-js/commit/f1b182c7f646e8d8ab169e36984681d9a2e03109))
9
+ * move package.json to after getNodeSearchPlaces ([f1b182c](https://github.com/kimzuni-labs/yamllint-js/commit/f1b182c7f646e8d8ab169e36984681d9a2e03109))
10
+
3
11
  ## [0.2.3](https://github.com/kimzuni-labs/yamllint-js/compare/v0.2.2...v0.2.3) (2026-02-19)
4
12
 
5
13
 
package/dist/config.mjs CHANGED
@@ -167,8 +167,8 @@ async function validateRuleConf(rule, config) {
167
167
  const loadConfigFile = (() => {
168
168
  const jsReg = /\.[cm]?js$/;
169
169
  const filenames = [
170
- "package.json",
171
170
  ...getNodeSearchPlaces(COMMAND_NAMES),
171
+ "package.json",
172
172
  ...PY_YAMLLINT_CONFIG_FILES
173
173
  ];
174
174
  const loadFile = async (filepath, throwOnFailure = false) => {
@@ -203,8 +203,9 @@ const loadConfigFile = (() => {
203
203
  if (typeof filepath === "string") return loadFile(filepath, true);
204
204
  const startDir = filepath?.startDir ?? process.cwd();
205
205
  const stopDir = filepath?.stopDir === void 0 ? getHomedir() : path.resolve(filepath.stopDir);
206
- let currDir = path.resolve(startDir);
206
+ let currDir = path.resolve(startDir, "xxx");
207
207
  do {
208
+ currDir = path.dirname(currDir);
208
209
  for (const filename of filenames) {
209
210
  const curr = path.join(currDir, filename);
210
211
  if (await fs.stat(curr).then((x) => x.isFile() || x.isSymbolicLink()).catch(() => false)) {
@@ -212,7 +213,6 @@ const loadConfigFile = (() => {
212
213
  if (content) return content;
213
214
  }
214
215
  }
215
- currDir = path.dirname(currDir);
216
216
  } while (currDir !== stopDir && currDir !== path.dirname(currDir));
217
217
  };
218
218
  })();
package/dist/package.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  var name = "yamllint-js";
2
2
  var description = "A linter for YAML files — an unofficial native Node.js port of Python yamllint.";
3
- var version = "0.2.3";
3
+ var version = "0.2.4";
4
4
  var bin = {
5
5
  "yamllint-js": "dist/main.mjs",
6
6
  "yamllint": "dist/main.mjs"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "yamllint-js",
3
3
  "description": "A linter for YAML files — an unofficial native Node.js port of Python yamllint.",
4
- "version": "0.2.3",
4
+ "version": "0.2.4",
5
5
  "license": "GPL-3.0-or-later",
6
6
  "type": "module",
7
7
  "author": {