mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 20:32:10 +00:00
chore(linter): update snapshots
This commit is contained in:
parent
1f1eb6c497
commit
240260ea05
4 changed files with 9 additions and 10 deletions
|
|
@ -1,6 +1,5 @@
|
|||
---
|
||||
source: crates/oxc_linter/src/tester.rs
|
||||
assertion_line: 105
|
||||
expression: ban_types
|
||||
---
|
||||
× eslint@typescript-eslint/ban-types: Do not use "String" as a type. Use "string" instead.
|
||||
|
|
@ -187,7 +186,7 @@ expression: ban_types
|
|||
2 │ class Test<T = Boolean> extends Foo<String> implements Bar<Object> {
|
||||
3 │ constructor(foo: String | Object | Function) {}
|
||||
· ──────
|
||||
4 │
|
||||
4 │
|
||||
╰────
|
||||
|
||||
× eslint@typescript-eslint/ban-types: 'The `Object` type actually means "any non-nullish value", so it is marginally better than `unknown`.',
|
||||
|
|
@ -198,7 +197,7 @@ expression: ban_types
|
|||
2 │ class Test<T = Boolean> extends Foo<String> implements Bar<Object> {
|
||||
3 │ constructor(foo: String | Object | Function) {}
|
||||
· ──────
|
||||
4 │
|
||||
4 │
|
||||
╰────
|
||||
|
||||
× eslint@typescript-eslint/ban-types: Don't use `Function` as a type. The `Function` type accepts any function-like value.
|
||||
|
|
@ -209,7 +208,7 @@ expression: ban_types
|
|||
2 │ class Test<T = Boolean> extends Foo<String> implements Bar<Object> {
|
||||
3 │ constructor(foo: String | Object | Function) {}
|
||||
· ────────
|
||||
4 │
|
||||
4 │
|
||||
╰────
|
||||
|
||||
× eslint@typescript-eslint/ban-types: Do not use "String" as a type. Use "string" instead.
|
||||
|
|
@ -230,7 +229,7 @@ expression: ban_types
|
|||
|
||||
× eslint@typescript-eslint/ban-types: Do not use "String" as a type. Use "string" instead.
|
||||
╭─[ban_types.tsx:4:1]
|
||||
4 │
|
||||
4 │
|
||||
5 │ arg(): Array<String> {
|
||||
· ──────
|
||||
6 │ const foo: String = 1 as String;
|
||||
|
|
|
|||
|
|
@ -68,7 +68,7 @@ expression: no_conditional_expect
|
|||
⚠ eslint(jest/no-conditional-expect): Unexpected conditional expect
|
||||
╭─[no_conditional_expect.tsx:2:1]
|
||||
2 │ function getValue() {
|
||||
3 │ something && expect(something).toHaveBeenCalled();
|
||||
3 │ something && expect(something).toHaveBeenCalled();
|
||||
· ────────────────────────────────────
|
||||
4 │ }
|
||||
╰────
|
||||
|
|
@ -104,7 +104,7 @@ expression: no_conditional_expect
|
|||
⚠ eslint(jest/no-conditional-expect): Unexpected conditional expect
|
||||
╭─[no_conditional_expect.tsx:2:1]
|
||||
2 │ function getValue() {
|
||||
3 │ something || expect(something).toHaveBeenCalled();
|
||||
3 │ something || expect(something).toHaveBeenCalled();
|
||||
· ────────────────────────────────────
|
||||
4 │ }
|
||||
╰────
|
||||
|
|
|
|||
|
|
@ -201,7 +201,7 @@ expression: no_done_callback
|
|||
|
||||
⚠ eslint(jest/no-done-callback): "Function parameter(s) use the `done` argument"
|
||||
╭─[no_done_callback.tsx:3:1]
|
||||
3 │
|
||||
3 │
|
||||
4 │ beforeEach((done) => {
|
||||
· ────
|
||||
5 │ done();
|
||||
|
|
@ -210,7 +210,7 @@ expression: no_done_callback
|
|||
|
||||
⚠ eslint(jest/no-done-callback): "Function parameter(s) use the `done` argument"
|
||||
╭─[no_done_callback.tsx:3:1]
|
||||
3 │
|
||||
3 │
|
||||
4 │ atTheStartOfEachTest((done) => {
|
||||
· ────
|
||||
5 │ done();
|
||||
|
|
|
|||
|
|
@ -349,7 +349,7 @@ expression: valid_title
|
|||
|
||||
⚠ eslint(jest/valid-title): "Should not have leading or trailing spaces"
|
||||
╭─[valid_title.tsx:3:1]
|
||||
3 │
|
||||
3 │
|
||||
4 │ testThat('foo works ', () => {});
|
||||
· ────────────
|
||||
5 │
|
||||
|
|
|
|||
Loading…
Reference in a new issue