Comments (5)
What's your lint-staged config, are you using the --shell
flag, and can you post the logs you get when using the --debug
flag?
from lint-staged.
lint-staged:bin Running [email protected]
on Node.js v20.10.0 (darwin) +0ms
lint-staged:bin Options parsed from command-line: {
allowEmpty: false,
concurrent: true,
configPath: undefined,
cwd: undefined,
debug: true,
diff: undefined,
diffFilter: undefined,
maxArgLength: undefined,
quiet: false,
relative: false,
shell: false,
stash: true,
hidePartiallyStaged: true,
verbose: false
} +0ms
lint-staged:validateOptions Validating options... +0ms
lint-staged:validateOptions Validated options! +0ms
lint-staged Unset GIT_LITERAL_PATHSPECS (was undefined
) +0ms
lint-staged:runAll Running all linter scripts... +0ms
lint-staged:runAll Using working directory /Users/arslonbekalimbayev/projects/comfi/merchant-dashboard.2.0
+0ms
lint-staged:resolveGitRepo Resolving git repo from /Users/arslonbekalimbayev/projects/comfi/merchant-dashboard.2.0
+0ms
lint-staged:resolveGitRepo Unset GIT_DIR (was undefined
) +0ms
lint-staged:resolveGitRepo Unset GIT_WORK_TREE (was undefined
) +0ms
lint-staged:execGit Running git command [ 'rev-parse', '--show-prefix' ] +0ms
lint-staged:resolveGitRepo Resolved git directory to be /Users/arslonbekalimbayev/projects/comfi/merchant-dashboard.2.0
+7ms
lint-staged:resolveGitRepo Resolved git config directory to be /Users/arslonbekalimbayev/projects/comfi/merchant-dashboard.2.0/.git
+0ms
lint-staged:execGit Running git command [ 'log', '-1' ] +6ms
lint-staged:execGit Running git command [ 'diff', '--name-only', '-z', '--diff-filter=ACMR', '--staged' ] +6ms
lint-staged:runAll Loaded list of staged files in git:
lint-staged:runAll [
lint-staged:runAll '/Users/arslonbekalimbayev/projects/comfi/merchant-dashboard.2.0/.husky/pre-commit',
lint-staged:runAll '/Users/arslonbekalimbayev/projects/comfi/merchant-dashboard.2.0/src/app/(auth)/layout.tsx'
lint-staged:runAll ] +22ms
lint-staged:searchConfigs Searching for configuration files... +0ms
lint-staged:execGit Running git command [ 'ls-files', '-z', '--full-name' ] +9ms
lint-staged:execGit Running git command [ 'ls-files', '-z', '--full-name', '--others', '--exclude-standard' ] +1ms
lint-staged:searchConfigs Found possible config files: [
'/Users/arslonbekalimbayev/projects/comfi/merchant-dashboard.2.0/.lintstagedrc.json',
'/Users/arslonbekalimbayev/projects/comfi/merchant-dashboard.2.0/package.json'
] +6ms
lint-staged:loadConfig Loading configuration from /Users/arslonbekalimbayev/projects/comfi/merchant-dashboard.2.0/.lintstagedrc.json
... +0ms
lint-staged:loadConfig Loading configuration from /Users/arslonbekalimbayev/projects/comfi/merchant-dashboard.2.0/package.json
... +0ms
lint-staged:loadConfig Successfully loaded config from /Users/arslonbekalimbayev/projects/comfi/merchant-dashboard.2.0/package.json
:
lint-staged:loadConfig null +0ms
lint-staged:loadConfig Successfully loaded config from /Users/arslonbekalimbayev/projects/comfi/merchant-dashboard.2.0/.lintstagedrc.json
:
lint-staged:loadConfig {
lint-staged:loadConfig '/*.scss': [ 'bun format', 'bun stylelint' ],
lint-staged:loadConfig '/.{js,jsx,ts,tsx}': [ 'bun format', 'bun lint:fix' ],
lint-staged:loadConfig '**/.{json,ts,tsx,js,jsx,md,scss,html}': [ 'bun format' ]
lint-staged:loadConfig } +0ms
lint-staged:validateConfig Validating config from /Users/arslonbekalimbayev/projects/comfi/merchant-dashboard.2.0/.lintstagedrc.json
... +0ms
lint-staged:validateConfig Validated config from /Users/arslonbekalimbayev/projects/comfi/merchant-dashboard.2.0/.lintstagedrc.json
: +0ms
lint-staged:validateConfig {
lint-staged:validateConfig '/*.scss': [
lint-staged:validateConfig 'bun format',
lint-staged:validateConfig 'bun stylelint'
lint-staged:validateConfig ],
lint-staged:validateConfig '/.{js,jsx,ts,tsx}': [
lint-staged:validateConfig 'bun format',
lint-staged:validateConfig 'bun lint:fix'
lint-staged:validateConfig ],
lint-staged:validateConfig '**/.{json,ts,tsx,js,jsx,md,scss,html}': [
lint-staged:validateConfig 'bun format'
lint-staged:validateConfig ]
lint-staged:validateConfig } +1ms
lint-staged:searchConfigs Found 1 config files +2ms
lint-staged:groupFilesByConfig Grouping 2 files by 1 configurations +0ms
lint-staged:chunkFiles Resolved an argument string length of 171 characters from 2 files +0ms
lint-staged:chunkFiles Creating 1 chunks for maxArgLength of 131072 +0ms
lint-staged:generateTasks Generating linter tasks +0ms
lint-staged:generateTasks Generated task:
lint-staged:generateTasks {
lint-staged:generateTasks pattern: '/*.scss',
lint-staged:generateTasks commands: [ 'bun format', 'bun stylelint' ],
lint-staged:generateTasks fileList: []
lint-staged:generateTasks } +1ms
lint-staged:generateTasks Generated task:
lint-staged:generateTasks {
lint-staged:generateTasks pattern: '/.{js,jsx,ts,tsx}',
lint-staged:generateTasks commands: [ 'bun format', 'bun lint:fix' ],
lint-staged:generateTasks fileList: [
lint-staged:generateTasks '/Users/arslonbekalimbayev/projects/comfi/merchant-dashboard.2.0/src/app/(auth)/layout.tsx'
lint-staged:generateTasks ]
lint-staged:generateTasks } +1ms
lint-staged:generateTasks Generated task:
lint-staged:generateTasks {
lint-staged:generateTasks pattern: '**/.{json,ts,tsx,js,jsx,md,scss,html}',
lint-staged:generateTasks commands: [ 'bun format' ],
lint-staged:generateTasks fileList: [
lint-staged:generateTasks '/Users/arslonbekalimbayev/projects/comfi/merchant-dashboard.2.0/src/app/(auth)/layout.tsx'
lint-staged:generateTasks ]
lint-staged:generateTasks } +0ms
lint-staged:makeCmdTasks Creating listr tasks for commands [ 'bun format', 'bun stylelint' ] +0ms
lint-staged:resolveTaskFn cmd: bun +0ms
lint-staged:resolveTaskFn args: [ 'format' ] +0ms
lint-staged:resolveTaskFn execaOptions: {
cwd: '/Users/arslonbekalimbayev/projects/comfi/merchant-dashboard.2.0',
preferLocal: true,
reject: false,
shell: false
} +0ms
lint-staged:resolveTaskFn cmd: bun +0ms
lint-staged:resolveTaskFn args: [ 'stylelint' ] +0ms
lint-staged:resolveTaskFn execaOptions: {
cwd: '/Users/arslonbekalimbayev/projects/comfi/merchant-dashboard.2.0',
preferLocal: true,
reject: false,
shell: false
} +0ms
lint-staged:makeCmdTasks Creating listr tasks for commands [ 'bun format', 'bun lint:fix' ] +1ms
lint-staged:resolveTaskFn cmd: bun +0ms
lint-staged:resolveTaskFn args: [ 'format' ] +0ms
lint-staged:resolveTaskFn execaOptions: {
cwd: '/Users/arslonbekalimbayev/projects/comfi/merchant-dashboard.2.0',
preferLocal: true,
reject: false,
shell: false
} +0ms
lint-staged:resolveTaskFn cmd: bun +0ms
lint-staged:resolveTaskFn args: [ 'lint:fix' ] +0ms
lint-staged:resolveTaskFn execaOptions: {
cwd: '/Users/arslonbekalimbayev/projects/comfi/merchant-dashboard.2.0',
preferLocal: true,
reject: false,
shell: false
} +0ms
lint-staged:makeCmdTasks Creating listr tasks for commands [ 'bun format' ] +0ms
lint-staged:resolveTaskFn cmd: bun +0ms
lint-staged:resolveTaskFn args: [ 'format' ] +0ms
lint-staged:resolveTaskFn execaOptions: {
cwd: '/Users/arslonbekalimbayev/projects/comfi/merchant-dashboard.2.0',
preferLocal: true,
reject: false,
shell: false
} +0ms
lint-staged:chunkFiles Resolved an argument string length of 89 characters from 1 files +3ms
lint-staged:chunkFiles Creating 1 chunks for maxArgLength of 131072 +0ms
[STARTED] Preparing lint-staged...
lint-staged:GitWorkflow Backing up original state... +0ms
lint-staged:GitWorkflow Getting partially staged files... +0ms
lint-staged:execGit Running git command [ 'status', '-z' ] +11ms
lint-staged:GitWorkflow Found partially staged files: [] +6ms
lint-staged:GitWorkflow Backing up merge state... +1ms
lint-staged:file Reading file /Users/arslonbekalimbayev/projects/comfi/merchant-dashboard.2.0/.git/MERGE_HEAD
+0ms
lint-staged:file Reading file /Users/arslonbekalimbayev/projects/comfi/merchant-dashboard.2.0/.git/MERGE_MODE
+0ms
lint-staged:file Reading file /Users/arslonbekalimbayev/projects/comfi/merchant-dashboard.2.0/.git/MERGE_MSG
+0ms
lint-staged:file File /Users/arslonbekalimbayev/projects/comfi/merchant-dashboard.2.0/.git/MERGE_HEAD
doesn't exist, ignoring... +0ms
lint-staged:file File /Users/arslonbekalimbayev/projects/comfi/merchant-dashboard.2.0/.git/MERGE_MSG
doesn't exist, ignoring... +0ms
lint-staged:file File /Users/arslonbekalimbayev/projects/comfi/merchant-dashboard.2.0/.git/MERGE_MODE
doesn't exist, ignoring... +0ms
lint-staged:GitWorkflow Done backing up merge state! +0ms
lint-staged:GitWorkflow Getting deleted files... +0ms
lint-staged:execGit Running git command [ 'ls-files', '--deleted' ] +7ms
lint-staged:GitWorkflow Found deleted files: [] +5ms
lint-staged:execGit Running git command [ 'stash', 'create' ] +5ms
lint-staged:execGit Running git command [
'stash',
'store',
'--quiet',
'--message',
'lint-staged automatic backup',
'7914da567dde72b94b8bd02e85832033430d7e64'
] +14ms
lint-staged:GitWorkflow Done backing up original state! +20ms
[COMPLETED] Preparing lint-staged...
[STARTED] Running tasks for staged files...
[STARTED] .lintstagedrc.json — 2 files
[STARTED] **/.scss — 0 files
[STARTED] **/.{js,jsx,ts,tsx} — 1 file
[STARTED] **/.{json,ts,tsx,js,jsx,md,scss,html} — 1 file
[SKIPPED] **/.scss — no files
[STARTED] bun format
[STARTED] bun format
[FAILED] bun format [FAILED]
[FAILED] bun format [FAILED]
[COMPLETED] Running tasks for staged files...
[STARTED] Applying modifications from tasks...
[SKIPPED] Skipped because of errors from tasks.
[STARTED] Reverting to original state because of errors...
lint-staged:GitWorkflow Restoring original state... +12ms
lint-staged:execGit Running git command [ 'reset', '--hard', 'HEAD' ] +18ms
lint-staged:execGit Running git command [ 'stash', 'list' ] +10ms
[FAILED] bun format [FAILED]
[FAILED] bun format [FAILED]
lint-staged:execGit Running git command [ 'stash', 'apply', '--quiet', '--index', '0' ] +9ms
lint-staged:GitWorkflow Restoring merge state... +44ms
lint-staged:GitWorkflow Done restoring merge state! +0ms
lint-staged:file Removing file /Users/arslonbekalimbayev/projects/comfi/merchant-dashboard.2.0/.git/lint-staged_unstaged.patch
+81ms
lint-staged:file File /Users/arslonbekalimbayev/projects/comfi/merchant-dashboard.2.0/.git/lint-staged_unstaged.patch
doesn't exist, ignoring... +0ms
lint-staged:GitWorkflow Done restoring original state! +0ms
[COMPLETED] Reverting to original state because of errors...
[STARTED] Cleaning up temporary files...
lint-staged:GitWorkflow Dropping backup stash... +0ms
lint-staged:execGit Running git command [ 'stash', 'list' ] +25ms
lint-staged:execGit Running git command [ 'stash', 'drop', '--quiet', '0' ] +8ms
lint-staged:GitWorkflow Done dropping backup stash! +13ms
[COMPLETED] Cleaning up temporary files...
✖ bun format:
$ prettier --write "/*.{json,ts,tsx,js,jsx,md,scss,css,html}" --no-error-on-unmatched-pattern /Users/arslonbekalimbayev/projects/comfi/merchant-dashboard.2.0/src/app/(auth)/layout.tsx
/bin/bash: -c: line 0: syntax error near unexpected token (' /bin/bash: -c: line 0:
prettier --write "/*.{json,ts,tsx,js,jsx,md,scss,css,html}" --no-error-on-unmatched-pattern /Users/arslonbekalimbayev/projects/comfi/merchant-dashboard.2.0/src/app/(auth)/layout.tsx'
✖ bun format:
$ prettier --write "/*.{json,ts,tsx,js,jsx,md,scss,css,html}" --no-error-on-unmatched-pattern /Users/arslonbekalimbayev/projects/comfi/merchant-dashboard.2.0/src/app/(auth)/layout.tsx
/bin/bash: -c: line 0: syntax error near unexpected token (' /bin/bash: -c: line 0:
prettier --write "/*.{json,ts,tsx,js,jsx,md,scss,css,html}" --no-error-on-unmatched-pattern /Users/arslonbekalimbayev/projects/comfi/merchant-dashboard.2.0/src/app/(auth)/layout.tsx'
error: "lint-staged" exited with code 1 (SIGHUP)
husky - pre-commit hook exited with code 1 (error)
from lint-staged.
from lint-staged.
I think the problem is in the name of this folder
from lint-staged.
This is probably the same issue as #962, so input is not escaped properly.
from lint-staged.
Related Issues (20)
- Failed to resolve git repo on mapped network drive HOT 12
- Commits from Github Desktop occur errors HOT 4
- Not all lintstagedrc.json files are found in the rush.js monorepo HOT 4
- Type '(filenames: string[]) => Commands | Promise<Commands>' is not assignable to type 'string' HOT 2
- Importing a reusable json file to ESM JS config fails HOT 1
- Path for baseConfig HOT 2
- lint-staged is unable to resolve path to module in Monorepo with map imports HOT 9
- Many errors in standard output when using git sparse-checkout HOT 4
- `--all` flag HOT 3
- lint-staged repeat many time ,when commit in windows powershell,cmd HOT 2
- [feat] override the current pattern HOT 1
- Make lint-staged more compatible with git sparse checkout feature HOT 6
- How to `git reset $file` ? HOT 3
- How to output the print content of the script in lint-staged in real time?
- `npx lint-staged --cwd $PWD` for all OS HOT 6
- Hooks to know if the lint staged commands have completed HOT 4
- Prettier breaks when run through lint-staged on files with dollar sign ($) in the name HOT 6
- Consider allowing running of programatic tasks via Node API HOT 5
- Is it possible to run 2 different configurations for pre-commit and pre-push? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lint-staged.