@kyh/eslint-config 1.0.2 → 1.0.3

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/base.js +6 -1
  3. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @kyh/eslint-config
2
2
 
3
+ ## 1.0.3
4
+
5
+ ### Patch Changes
6
+
7
+ - update
8
+
3
9
  ## 1.0.2
4
10
 
5
11
  ### Patch Changes
package/base.js CHANGED
@@ -8,6 +8,11 @@ import importPlugin from "eslint-plugin-import";
8
8
  import turboPlugin from "eslint-plugin-turbo";
9
9
  import tseslint from "typescript-eslint";
10
10
 
11
+ /**
12
+ * Recursively search for a `.gitignore` file starting from the given directory.
13
+ * @param {string} startDir The directory to start searching from.
14
+ * @returns {Promise<string>} The path to the `.gitignore` file or `null` if not found.
15
+ */
11
16
  async function findGitignorePath(startDir) {
12
17
  const gitignorePath = path.join(startDir, ".gitignore");
13
18
 
@@ -20,7 +25,7 @@ async function findGitignorePath(startDir) {
20
25
 
21
26
  // Check if we've reached the root directory
22
27
  if (parentDir === startDir) {
23
- return null; // .gitignore not found
28
+ return ""; // .gitignore not found
24
29
  }
25
30
 
26
31
  // Recursively search in the parent directory
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kyh/eslint-config",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -24,8 +24,8 @@
24
24
  "eslint": "^9.9.0",
25
25
  "prettier": "^3.3.3",
26
26
  "typescript": "^5.5.4",
27
- "@kyh/prettier-config": "1.0.2",
28
- "@kyh/tsconfig": "1.0.2"
27
+ "@kyh/tsconfig": "1.0.3",
28
+ "@kyh/prettier-config": "1.0.3"
29
29
  },
30
30
  "prettier": "@kyh/prettier-config",
31
31
  "scripts": {