mirror of
https://github.com/langchain-ai/langgraph-builder.git
synced 2026-07-01 19:55:58 -04:00
11 lines
461 B
JavaScript
11 lines
461 B
JavaScript
const path = require('path')
|
|
|
|
// With `next lint`: https://nextjs.org/docs/basic-features/eslint#lint-staged
|
|
const buildEslintCommand = (filenames) =>
|
|
`yarn lint:fix --file ${filenames.map((f) => path.relative(process.cwd(), f)).join(' --file ')}`
|
|
|
|
module.exports = {
|
|
'*.{js,jsx,ts,tsx}': [buildEslintCommand],
|
|
'*.{ts,tsx}': "bash -c 'npm run typecheck'", // running this via bash https://github.com/okonet/lint-staged/issues/825#issuecomment-727185296
|
|
}
|