Skip to content

Commit

Permalink
refactor(crates): clean up snapshot files (#8680)
Browse files Browse the repository at this point in the history
  • Loading branch information
Boshen committed Jan 23, 2025
1 parent 99607d3 commit a3dc4c3
Show file tree
Hide file tree
Showing 782 changed files with 7 additions and 781 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
source: crates/oxc_codegen/tests/integration/main.rs
snapshot_kind: text
---
########## 0
/* @license */
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
source: crates/oxc_codegen/tests/integration/main.rs
snapshot_kind: text
---
########## 0
/* @license */
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
source: crates/oxc_codegen/tests/integration/main.rs
snapshot_kind: text
---
########## 0
/* @license */
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
source: crates/oxc_isolated_declarations/tests/mod.rs
input_file: crates/oxc_isolated_declarations/tests/fixtures/infer-expression.ts
snapshot_kind: text
---
```
==================== .D.TS ====================
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
source: crates/oxc_linter/src/tester.rs
snapshot_kind: text
---
eslint(array-callback-return): Missing return on some path for array method "Array.from"
╭─[array_callback_return.tsx:1:26]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
source: crates/oxc_linter/src/tester.rs
snapshot_kind: text
---

1 change: 0 additions & 1 deletion crates/oxc_linter/src/snapshots/eslint_default_case.snap
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
source: crates/oxc_linter/src/tester.rs
snapshot_kind: text
---
eslint(default-case): Require default cases in switch statements.
╭─[default_case.tsx:1:1]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
source: crates/oxc_linter/src/tester.rs
snapshot_kind: text
---
eslint(default-case-last): Enforce default clauses in switch statements to be last
╭─[default_case_last.tsx:1:16]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
source: crates/oxc_linter/src/tester.rs
assertion_line: 357
---
eslint(default-param-last): Default parameters should be last
╭─[default_param_last.tsx:1:12]
Expand Down
1 change: 0 additions & 1 deletion crates/oxc_linter/src/snapshots/eslint_eqeqeq.snap
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
source: crates/oxc_linter/src/tester.rs
snapshot_kind: text
---
eslint(eqeqeq): Expected > and instead saw >=
╭─[eqeqeq.tsx:1:1]
Expand Down
1 change: 0 additions & 1 deletion crates/oxc_linter/src/snapshots/eslint_for_direction.snap
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
source: crates/oxc_linter/src/tester.rs
snapshot_kind: text
---
eslint(for-direction): The update clause in this loop moves the variable in the wrong direction
╭─[for_direction.tsx:1:17]
Expand Down
1 change: 0 additions & 1 deletion crates/oxc_linter/src/snapshots/eslint_func_names.snap
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
source: crates/oxc_linter/src/tester.rs
snapshot_kind: text
---
eslint(func-names): Unexpected unnamed function.
╭─[func_names.tsx:1:21]
Expand Down
1 change: 0 additions & 1 deletion crates/oxc_linter/src/snapshots/eslint_getter_return.snap
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
source: crates/oxc_linter/src/tester.rs
snapshot_kind: text
---
eslint(getter-return): Expected to always return a value in getter.
╭─[getter_return.js:1:20]
Expand Down
1 change: 0 additions & 1 deletion crates/oxc_linter/src/snapshots/eslint_guard_for_in.snap
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
source: crates/oxc_linter/src/tester.rs
snapshot_kind: text
---
eslint(guard-for-in): Require `for-in` loops to include an `if` statement
╭─[guard_for_in.tsx:1:1]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
source: crates/oxc_linter/src/tester.rs
snapshot_kind: text
---
eslint(max-classes-per-file): File has too many classes (2). Maximum allowed is 1
╭─[max_classes_per_file.tsx:2:4]
Expand Down
1 change: 0 additions & 1 deletion crates/oxc_linter/src/snapshots/eslint_max_params.snap
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
source: crates/oxc_linter/src/tester.rs
snapshot_kind: text
---
eslint(max-params): Function 'test' has too many parameters (3). Maximum allowed is 2.
╭─[max_params.tsx:1:14]
Expand Down
1 change: 0 additions & 1 deletion crates/oxc_linter/src/snapshots/eslint_new_cap.snap
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
source: crates/oxc_linter/src/tester.rs
snapshot_kind: text
---
eslint(new-cap): A constructor name should not start with a lowercase letter.
╭─[new_cap.tsx:1:13]
Expand Down
1 change: 0 additions & 1 deletion crates/oxc_linter/src/snapshots/eslint_no_alert.snap
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
source: crates/oxc_linter/src/tester.rs
snapshot_kind: text
---
eslint(no-alert): `alert`, `confirm` and `prompt` functions are not allowed
╭─[no_alert.tsx:1:1]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
source: crates/oxc_linter/src/tester.rs
snapshot_kind: text
---
eslint(no-array-constructor): Do not use `new` to create arrays
╭─[no_array_constructor.tsx:1:1]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
source: crates/oxc_linter/src/tester.rs
snapshot_kind: text
---
eslint(no-async-promise-executor): Promise executor functions should not be `async`.
╭─[no_async_promise_executor.tsx:1:13]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
source: crates/oxc_linter/src/tester.rs
snapshot_kind: text
---
eslint(no-await-in-loop): Unexpected `await` inside a loop.
╭─[no_await_in_loop.tsx:1:38]
Expand Down
1 change: 0 additions & 1 deletion crates/oxc_linter/src/snapshots/eslint_no_bitwise.snap
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
source: crates/oxc_linter/src/tester.rs
snapshot_kind: text
---
eslint(no-bitwise): Unexpected use of "^"
╭─[no_bitwise.tsx:1:1]
Expand Down
1 change: 0 additions & 1 deletion crates/oxc_linter/src/snapshots/eslint_no_caller.snap
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
source: crates/oxc_linter/src/tester.rs
snapshot_kind: text
---
eslint(no-caller): Do not use `arguments.callee`
╭─[no_caller.tsx:1:19]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
source: crates/oxc_linter/src/tester.rs
snapshot_kind: text
---
eslint(no-case-declarations): Unexpected lexical declaration in case block.
╭─[no_case_declarations.tsx:1:22]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
source: crates/oxc_linter/src/tester.rs
snapshot_kind: text
---
eslint(no-class-assign): Unexpected re-assignment of class A
╭─[no_class_assign.tsx:1:7]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
source: crates/oxc_linter/src/tester.rs
snapshot_kind: text
---
eslint(no-compare-neg-zero): Do not use the === operator to compare against -0.
╭─[no_compare_neg_zero.tsx:1:1]
Expand Down
1 change: 0 additions & 1 deletion crates/oxc_linter/src/snapshots/eslint_no_cond_assign.snap
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
source: crates/oxc_linter/src/tester.rs
snapshot_kind: text
---
eslint(no-cond-assign): Expected a conditional expression and instead saw an assignment
╭─[no_cond_assign.tsx:1:14]
Expand Down
1 change: 0 additions & 1 deletion crates/oxc_linter/src/snapshots/eslint_no_console.snap
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
source: crates/oxc_linter/src/tester.rs
snapshot_kind: text
---
eslint(no-console): eslint(no-console): Unexpected console statement.
╭─[no_console.tsx:1:1]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
source: crates/oxc_linter/src/tester.rs
snapshot_kind: text
---
eslint(no-const-assign): eslint(no-const-assign): Unexpected re-assignment of const variable x
╭─[no_const_assign.tsx:1:7]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
source: crates/oxc_linter/src/tester.rs
snapshot_kind: text
---
eslint(no-constant-binary-expression): Unexpected constant "truthiness" on the left-hand side of a "&&" expression
╭─[no_constant_binary_expression.tsx:1:1]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
source: crates/oxc_linter/src/tester.rs
snapshot_kind: text
---
eslint(no-constant-condition): Unexpected constant condition
╭─[no_constant_condition.tsx:1:4]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
source: crates/oxc_linter/src/tester.rs
snapshot_kind: text
---
eslint(no-constructor-return): Unexpected return statement in constructor.
╭─[no_constructor_return.tsx:1:27]
Expand Down
1 change: 0 additions & 1 deletion crates/oxc_linter/src/snapshots/eslint_no_continue.snap
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
source: crates/oxc_linter/src/tester.rs
snapshot_kind: text
---
eslint(no-continue): Unexpected use of `continue` statement.
╭─[no_continue.tsx:1:55]
Expand Down
Binary file modified crates/oxc_linter/src/snapshots/eslint_no_control_regex.snap
Binary file not shown.
1 change: 0 additions & 1 deletion crates/oxc_linter/src/snapshots/[email protected]
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
source: crates/oxc_linter/src/tester.rs
snapshot_kind: text
---
eslint(no-control-regex): Unexpected control character
╭─[no_control_regex.tsx:1:11]
Expand Down
1 change: 0 additions & 1 deletion crates/oxc_linter/src/snapshots/eslint_no_debugger.snap
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
source: crates/oxc_linter/src/tester.rs
snapshot_kind: text
---
eslint(no-debugger): `debugger` statement is not allowed
╭─[no_debugger.tsx:1:10]
Expand Down
1 change: 0 additions & 1 deletion crates/oxc_linter/src/snapshots/eslint_no_delete_var.snap
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
source: crates/oxc_linter/src/tester.rs
snapshot_kind: text
---
eslint(no-delete-var): variables should not be deleted
╭─[no_delete_var.tsx:1:1]
Expand Down
1 change: 0 additions & 1 deletion crates/oxc_linter/src/snapshots/eslint_no_div_regex.snap
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
source: crates/oxc_linter/src/tester.rs
snapshot_kind: text
---
eslint(no-div-regex): A regular expression literal can be confused with '/='.
╭─[no_div_regex.tsx:1:29]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
source: crates/oxc_linter/src/tester.rs
snapshot_kind: text
---
eslint(no-dupe-class-members): Duplicate class member: "foo"
╭─[no_dupe_class_members.tsx:1:11]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
source: crates/oxc_linter/src/tester.rs
snapshot_kind: text
---
eslint(no-dupe-else-if): duplicate conditions in if-else-if chains
╭─[no_dupe_else_if.tsx:1:5]
Expand Down
1 change: 0 additions & 1 deletion crates/oxc_linter/src/snapshots/eslint_no_dupe_keys.snap
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
source: crates/oxc_linter/src/tester.rs
snapshot_kind: text
---
eslint(no-dupe-keys): Duplicate key 'a'
╭─[no_dupe_keys.tsx:1:11]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
source: crates/oxc_linter/src/tester.rs
snapshot_kind: text
---
eslint(no-duplicate-case): Duplicate case label
╭─[no_duplicate_case.tsx:1:29]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
source: crates/oxc_linter/src/tester.rs
snapshot_kind: text
---
eslint(no-duplicate-imports): 'fs' import is duplicated
╭─[no_duplicate_imports.tsx:1:8]
Expand Down
1 change: 0 additions & 1 deletion crates/oxc_linter/src/snapshots/eslint_no_else_return.snap
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
source: crates/oxc_linter/src/tester.rs
snapshot_kind: text
---
eslint(no-else-return): Unnecessary 'else' after 'return'.
╭─[no_else_return.tsx:1:6]
Expand Down
1 change: 0 additions & 1 deletion crates/oxc_linter/src/snapshots/eslint_no_empty.snap
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
source: crates/oxc_linter/src/tester.rs
snapshot_kind: text
---
eslint(no-empty): Unexpected empty block statements
╭─[no_empty.tsx:1:5]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
source: crates/oxc_linter/src/tester.rs
snapshot_kind: text
---
eslint(no-empty-character-class): Empty character class will not match anything
╭─[no_empty_character_class.tsx:1:16]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
source: crates/oxc_linter/src/tester.rs
snapshot_kind: text
---
eslint(no-empty-function): Unexpected empty function `foo`
╭─[no_empty_function.tsx:1:16]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
source: crates/oxc_linter/src/tester.rs
snapshot_kind: text
---
eslint(no-empty-pattern): Empty object binding pattern
╭─[no_empty_pattern.tsx:1:5]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
source: crates/oxc_linter/src/tester.rs
snapshot_kind: text
---
eslint(no-empty-static-block): Unexpected empty static blocks
╭─[no_empty_static_block.tsx:1:13]
Expand Down
1 change: 0 additions & 1 deletion crates/oxc_linter/src/snapshots/eslint_no_eq_null.snap
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
source: crates/oxc_linter/src/tester.rs
snapshot_kind: text
---
eslint(no-eq-null): Do not use `null` comparisons without type-checking operators.
╭─[no_eq_null.tsx:1:5]
Expand Down
1 change: 0 additions & 1 deletion crates/oxc_linter/src/snapshots/eslint_no_eval.snap
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
source: crates/oxc_linter/src/tester.rs
snapshot_kind: text
---
eslint(no-eval): eval can be harmful.
╭─[no_eval.tsx:1:1]
Expand Down
1 change: 0 additions & 1 deletion crates/oxc_linter/src/snapshots/eslint_no_ex_assign.snap
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
source: crates/oxc_linter/src/tester.rs
snapshot_kind: text
---
⚠ eslint(no-ex-assign): Do not assign to the exception parameter.
╭─[no_ex_assign.tsx:1:21]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
source: crates/oxc_linter/src/tester.rs
snapshot_kind: text
---
⚠ eslint(no-extend-native): Object prototype is read-only, properties should not be added.
╭─[no_extend_native.tsx:1:1]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
source: crates/oxc_linter/src/tester.rs
snapshot_kind: text
---
⚠ eslint(no-extra-boolean-cast): Redundant double negation
╭─[no_extra_boolean_cast.tsx:1:5]
Expand Down
1 change: 0 additions & 1 deletion crates/oxc_linter/src/snapshots/eslint_no_extra_label.snap
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
source: crates/oxc_linter/src/tester.rs
snapshot_kind: text
---
⚠ eslint(no-extra-label): This label 'A' is unnecessary
╭─[no_extra_label.tsx:1:20]
Expand Down
1 change: 0 additions & 1 deletion crates/oxc_linter/src/snapshots/eslint_no_fallthrough.snap
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
source: crates/oxc_linter/src/tester.rs
snapshot_kind: text
---
⚠ eslint(no-fallthrough): Expected a 'break' statement before 'case'.
╭─[no_fallthrough.tsx:2:1]
Expand Down
1 change: 0 additions & 1 deletion crates/oxc_linter/src/snapshots/eslint_no_func_assign.snap
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
source: crates/oxc_linter/src/tester.rs
snapshot_kind: text
---
⚠ eslint(no-func-assign): 'foo' is a function.
╭─[no_func_assign.tsx:1:20]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
source: crates/oxc_linter/src/tester.rs
snapshot_kind: text
---
⚠ eslint(no-global-assign): Read-only global 'String' should not be modified.
╭─[no_global_assign.tsx:1:1]
Expand Down
Loading

0 comments on commit a3dc4c3

Please sign in to comment.