Skip to content

Commit b14c90d

Browse files
committed
test: update command-staged-with-config snap output
1 parent dcadf1f commit b14c90d

1 file changed

Lines changed: 1 addition & 17 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: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,4 @@
2121

2222
> git add -A && git commit -m 'second'
2323
> printf 'eval("code");\n' > src/fail.js && git add src/fail.js
24-
[1]> vp staged > /dev/null 2>&1 # should fail when staged .js file has lint errors
25-
[FAILED] vp lint [FAILED]
26-
[FAILED] vp lint [FAILED]
27-
28-
✖ vp lint:
29-
VITE+ - The Unified Toolchain for the Web
30-
31-
32-
× eslint(no-eval): eval can be harmful.
33-
╭─[src/fail.js:1:1]
34-
1 │ eval("code");
35-
· ────
36-
╰────
37-
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.
38-
39-
Found 0 warnings and 1 error.
40-
Finished in <variable>ms on 1 file with <variable> rules using <variable> threads.
24+
[1]> vp staged > /dev/null 2>&1 # should fail when staged .js file has lint errors

0 commit comments

Comments
 (0)