File tree Expand file tree Collapse file tree 2 files changed +30
-1
lines changed
packages/cli/snap-tests/nested-oxc-config-proj-1 Expand file tree Collapse file tree 2 files changed +30
-1
lines changed Original file line number Diff line number Diff line change @@ -12,3 +12,27 @@ Finished in <variable>ms on 2 files with <variable> rules using <variable> threa
1212Checking formatting...
1313All matched files use the correct format.
1414Finished in <variable>ms on 1 files using <variable> threads.
15+
16+ > # Running from the workspace root must use the root config, so both
17+ > # commands should fail: lint flags the `debugger;` and fmt flags the
18+ > # double-quoted string in packages/proj-1/src/index.js.
19+ [1]> vp lint
20+
21+ × eslint(no-debugger): `debugger` statement is not allowed
22+ ╭─[packages/proj-1/src/index.js:2:3]
23+ 1 │ function hello() {
24+ 2 │ debugger;
25+ · ─────────
26+ 3 │ return "hello from proj-1";
27+ ╰────
28+ help: Remove the debugger statement
29+
30+ Found 0 warnings and 1 error.
31+ Finished in <variable>ms on 3 files with <variable> rules using <variable> threads.
32+
33+ [1]> vp fmt --check packages/proj-1/src
34+ Checking formatting...
35+ packages/proj-1/src/index.js (<variable>ms)
36+
37+ Format issues found in above 1 files. Run without `--check` to fix.
38+ Finished in <variable>ms on 1 files using <variable> threads.
Original file line number Diff line number Diff line change 88 " # root config leaks through, lint reports a debugger violation and fmt" ,
99 " # reports a quote-style diff." ,
1010 " cd packages/proj-1 && vp lint" ,
11- " cd packages/proj-1 && vp fmt --check src"
11+ " cd packages/proj-1 && vp fmt --check src" ,
12+ " # Running from the workspace root must use the root config, so both" ,
13+ " # commands should fail: lint flags the `debugger;` and fmt flags the" ,
14+ " # double-quoted string in packages/proj-1/src/index.js." ,
15+ " vp lint" ,
16+ " vp fmt --check packages/proj-1/src"
1217 ]
1318}
You can’t perform that action at this time.
0 commit comments