|
| 1 | +--- |
| 2 | +source: apps/oxlint/src/tester.rs |
| 3 | +--- |
| 4 | +########## |
| 5 | +arguments: -c .oxlintrc.json --report-unused-disable-directives |
| 6 | +working directory: fixtures/cli/report_unused_directives_oxlint_only |
| 7 | +---------- |
| 8 | + |
| 9 | + ! eslint(no-console): Unexpected console statement. |
| 10 | + ,-[test.js:2:1] |
| 11 | + 1 | // eslint-disable-next-line no-console |
| 12 | + 2 | console.log("eslint prefix is ignored"); |
| 13 | + : ^^^^^^^^^^^ |
| 14 | + 3 | |
| 15 | + `---- |
| 16 | + help: Delete this console statement. |
| 17 | +
|
| 18 | + ! Unused eslint-disable directive (no problems were reported). |
| 19 | + ,-[test.js:7:1] |
| 20 | + 6 | |
| 21 | + 7 | // oxlint-disable-next-line no-debugger |
| 22 | + : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 23 | + 8 | console.log("oxlint unused"); |
| 24 | + `---- |
| 25 | + |
| 26 | + ! eslint(no-console): Unexpected console statement. |
| 27 | + ,-[test.js:8:1] |
| 28 | + 7 | // oxlint-disable-next-line no-debugger |
| 29 | + 8 | console.log("oxlint unused"); |
| 30 | + : ^^^^^^^^^^^ |
| 31 | + 9 | |
| 32 | + `---- |
| 33 | + help: Delete this console statement. |
| 34 | +
|
| 35 | + ! Unused eslint-disable directive (no problems were reported). |
| 36 | + ,-[test.js:10:1] |
| 37 | + 9 | |
| 38 | + 10 | // oxlint-disable-next-line no-console |
| 39 | + : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 40 | + 11 | debugger; |
| 41 | + `---- |
| 42 | + |
| 43 | + ! eslint(no-debugger): `debugger` statement is not allowed |
| 44 | + ,-[test.js:11:1] |
| 45 | + 10 | // oxlint-disable-next-line no-console |
| 46 | + 11 | debugger; |
| 47 | + : ^^^^^^^^^ |
| 48 | + 12 | |
| 49 | + `---- |
| 50 | + help: Remove the debugger statement |
| 51 | +
|
| 52 | + ! Unused eslint-enable directive (no matching eslint-disable directives were found). |
| 53 | + ,-[test.js:14:3] |
| 54 | + 13 | // eslint-enable |
| 55 | + 14 | // oxlint-enable |
| 56 | + : ^^^^^^^^^^^^^^ |
| 57 | + `---- |
| 58 | + |
| 59 | + ! eslint(no-console): Unexpected console statement. |
| 60 | + ,-[test.vue:4:1] |
| 61 | + 3 | // eslint-disable-next-line no-console |
| 62 | + 4 | console.log("eslint prefix is ignored"); |
| 63 | + : ^^^^^^^^^^^ |
| 64 | + 5 | |
| 65 | + `---- |
| 66 | + help: Delete this console statement. |
| 67 | +
|
| 68 | + ! Unused eslint-disable directive (no problems were reported). |
| 69 | + ,-[test.vue:9:1] |
| 70 | + 8 | |
| 71 | + 9 | // oxlint-disable-next-line no-debugger |
| 72 | + : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 73 | + 10 | console.log("oxlint unused"); |
| 74 | + `---- |
| 75 | + |
| 76 | + ! eslint(no-console): Unexpected console statement. |
| 77 | + ,-[test.vue:10:1] |
| 78 | + 9 | // oxlint-disable-next-line no-debugger |
| 79 | + 10 | console.log("oxlint unused"); |
| 80 | + : ^^^^^^^^^^^ |
| 81 | + 11 | |
| 82 | + `---- |
| 83 | + help: Delete this console statement. |
| 84 | +
|
| 85 | + ! Unused eslint-disable directive (no problems were reported). |
| 86 | + ,-[test.vue:12:1] |
| 87 | + 11 | |
| 88 | + 12 | // oxlint-disable-next-line no-console |
| 89 | + : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 90 | + 13 | debugger; |
| 91 | + `---- |
| 92 | + |
| 93 | + ! eslint(no-debugger): `debugger` statement is not allowed |
| 94 | + ,-[test.vue:13:1] |
| 95 | + 12 | // oxlint-disable-next-line no-console |
| 96 | + 13 | debugger; |
| 97 | + : ^^^^^^^^^ |
| 98 | + 14 | |
| 99 | + `---- |
| 100 | + help: Remove the debugger statement |
| 101 | +
|
| 102 | + ! Unused eslint-enable directive (no matching eslint-disable directives were found). |
| 103 | + ,-[test.vue:16:3] |
| 104 | + 15 | // eslint-enable |
| 105 | + 16 | // oxlint-enable |
| 106 | + : ^^^^^^^^^^^^^^ |
| 107 | + 17 | |
| 108 | + `---- |
| 109 | + |
| 110 | +Found 12 warnings and 0 errors. |
| 111 | +Finished in <variable>ms on 2 files with 2 rules using 1 threads. |
| 112 | +---------- |
| 113 | +CLI result: LintSucceeded |
| 114 | +---------- |
0 commit comments