chore(linter): update snapshots

This commit is contained in:
Boshen 2023-10-16 21:11:39 +08:00
parent 1f1eb6c497
commit 240260ea05
No known key found for this signature in database
GPG key ID: 9C7A8C8AB22BEBD1
4 changed files with 9 additions and 10 deletions

View file

@ -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;

View file

@ -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 │ }
╰────

View file

@ -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();

View file

@ -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 │