Skip to content

Commit 468b94d

Browse files
manual fix
1 parent db981c5 commit 468b94d

1 file changed

Lines changed: 0 additions & 30 deletions

File tree

  • packages/cli/snap-tests-global/command-staged-with-config

packages/cli/snap-tests-global/command-staged-with-config/snap.txt

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -23,33 +23,3 @@
2323
> printf 'eval("code");\n' > src/fail.js && git add src/fail.js
2424
[1]> vp staged # should fail when staged .js file has lint errors
2525
[STARTED] Backing up original state...
26-
[COMPLETED] Backed up original state in git stash (<hash>)
27-
[STARTED] Running tasks for staged files...
28-
[STARTED] Config object — 1 file
29-
[STARTED] *.ts — 0 files
30-
[STARTED] *.js — 1 file
31-
[SKIPPED] *.ts — no files
32-
[STARTED] vp lint
33-
[FAILED] vp lint [FAILED]
34-
[FAILED] vp lint [FAILED]
35-
[COMPLETED] Running tasks for staged files...
36-
[STARTED] Applying modifications from tasks...
37-
[SKIPPED] Skipped because of errors from tasks.
38-
[STARTED] Reverting to original state because of errors...
39-
[COMPLETED] Reverting to original state because of errors...
40-
[STARTED] Cleaning up temporary files...
41-
[COMPLETED] Cleaning up temporary files...
42-
43-
✖ vp lint:
44-
VITE+ - The Unified Toolchain for the Web
45-
46-
47-
× eslint(no-eval): eval can be harmful.
48-
╭─[src/fail.js:1:1]
49-
1 │ eval("code");
50-
· ────
51-
╰────
52-
help: Avoid eval(). For JSON parsing use JSON.parse(); for dynamic property access use bracket notation (obj[key]); for other cases refactor to avoid evaluating strings as code.
53-
54-
Found 0 warnings and 1 error.
55-
Finished in <variable>ms on 1 file with <variable> rules using <variable> threads.

0 commit comments

Comments
 (0)