@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.
- package/CHANGELOG.md +6 -0
- package/base.js +6 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
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
|
|
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.
|
|
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/
|
|
28
|
-
"@kyh/
|
|
27
|
+
"@kyh/tsconfig": "1.0.3",
|
|
28
|
+
"@kyh/prettier-config": "1.0.3"
|
|
29
29
|
},
|
|
30
30
|
"prettier": "@kyh/prettier-config",
|
|
31
31
|
"scripts": {
|