-
-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update dependency nx to v19.7.2 * 🚧 NEW: eslint * findFileOrUp local to eslint to avoid dep issues --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
- Loading branch information
1 parent
3c21b72
commit ae8115d
Showing
13 changed files
with
253 additions
and
214 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@kitql/eslint-config': patch | ||
--- | ||
|
||
improve default config thx to inspector |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@kitql/internals': patch | ||
--- | ||
|
||
add findFileOrUp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,5 +27,4 @@ module.exports = { | |
'', | ||
'^[./]', // inside | ||
], | ||
// importOrderSeparation: true, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { statSync } from 'fs' | ||
import { resolve } from 'path' | ||
|
||
export const findFileOrUp = (fileName, options) => { | ||
// Find file recursively 4 levels max up | ||
for (let i = 0; i < 4; i++) { | ||
try { | ||
const pathFound = '../'.repeat(i) + fileName | ||
if (statSync(pathFound)) { | ||
if (options?.absolute) { | ||
return resolve(pathFound) | ||
} | ||
return pathFound | ||
} | ||
} catch (error) { | ||
// nothing to do | ||
} | ||
} | ||
|
||
console.error(`"${fileName}" not found`) | ||
return null | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,10 @@ | ||
export { getFilesUnder, read, write, relative, dirname, getRelativePackagePath } from './fs/fs.js' | ||
export { | ||
getFilesUnder, | ||
read, | ||
write, | ||
relative, | ||
dirname, | ||
getRelativePackagePath, | ||
findFileOrUp, | ||
} from './fs/fs.js' | ||
export { parseTs, extractHtmlElementAttr_Text } from './ast/ast.js' |
Oops, something went wrong.