Skip to content

Commit 61ddf44

Browse files
committed
chore(linter): disable correctness rules in two snapshot test (oxc-project#18917)
Simple little update to avoid correctness rules in two snaps. Also updated two other snaps to match the newly-updated format from insta.
1 parent bb1eb97 commit 61ddf44

5 files changed

Lines changed: 14 additions & 6 deletions
Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
{
22
"ignorePatterns": [
33
"*.js"
4-
]
4+
],
5+
"categories": {
6+
"correctness": "off"
7+
},
8+
"rules": {
9+
"unicorn/no-empty-file": "error"
10+
}
511
}

apps/oxlint/src/snapshots/_-c fixtures__config_ignore_patterns__ignore_extension__eslintrc.json fixtures__config_ignore_patterns__ignore_extension@oxlint.snap

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ arguments: -c fixtures/config_ignore_patterns/ignore_extension/eslintrc.json fix
66
working directory:
77
----------
88

9-
! eslint-plugin-unicorn(no-empty-file): Empty files are not allowed.
9+
x eslint-plugin-unicorn(no-empty-file): Empty files are not allowed.
1010
,-[fixtures/config_ignore_patterns/ignore_extension/main.ts:1:1]
1111
`----
1212
help: Delete this file or add some code to it.
1313
14-
Found 1 warning and 0 errors.
15-
Finished in <variable>ms on 1 file with 91 rules using 1 threads.
14+
Found 0 warnings and 1 error.
15+
Finished in <variable>ms on 1 file with 1 rules using 1 threads.
1616
----------
17-
CLI result: LintSucceeded
17+
CLI result: LintFoundErrors
1818
----------

apps/oxlint/src/snapshots/_-c fixtures__config_ignore_patterns__ignore_extension__eslintrc.json fixtures__config_ignore_patterns__ignore_extension__main.js@oxlint.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ arguments: -c fixtures/config_ignore_patterns/ignore_extension/eslintrc.json fix
66
working directory:
77
----------
88
Found 0 warnings and 0 errors.
9-
Finished in <variable>ms on 0 files with 91 rules using 1 threads.
9+
Finished in <variable>ms on 0 files with 1 rules using 1 threads.
1010
----------
1111
CLI result: LintSucceeded
1212
----------

crates/oxc_linter/src/snapshots/unicorn_relative_url_style.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
source: crates/oxc_linter/src/tester.rs
33
---
4+
45
eslint-plugin-unicorn(relative-url-style): Remove the `./` prefix from the relative URL.
56
╭─[relative_url_style.tsx:1:9]
67
1new URL("./foo", base)

crates/oxc_linter/src/snapshots/vitest_prefer_expect_type_of.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
source: crates/oxc_linter/src/tester.rs
33
---
4+
45
eslint-plugin-vitest(prefer-expect-type-of): Type assertions should be done using `expectTypeOf`.
56
╭─[prefer_expect_type_of.tsx:1:1]
67
1expect(typeof 12).toBe("number")

0 commit comments

Comments
 (0)