Skip to content

Comments

test(linter): use eslint tests for rule no-restricted-imports#7916

Closed
Sysix wants to merge 1 commit intooxc-project:mainfrom
Sysix:refactor-linter-use-eslint-tests-for-rule-restricted-imports
Closed

test(linter): use eslint tests for rule no-restricted-imports#7916
Sysix wants to merge 1 commit intooxc-project:mainfrom
Sysix:refactor-linter-use-eslint-tests-for-rule-restricted-imports

Conversation

@Sysix
Copy link
Member

@Sysix Sysix commented Dec 15, 2024

most of the tests are failing because the rule exepects at the moment that configuration-arrays are only strings:

Value::Array(module_names) => {
for module_name in module_names {
if let Some(module_name) = module_name.as_str() {
paths.push(RestrictedPath {
name: CompactStr::new(module_name),
import_names: None,
message: None,
});
}
}

@graphite-app
Copy link
Contributor

graphite-app bot commented Dec 15, 2024

How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • 0-merge - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

@github-actions github-actions bot added A-linter Area - Linter C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior labels Dec 15, 2024
@codspeed-hq
Copy link

codspeed-hq bot commented Dec 15, 2024

CodSpeed Performance Report

Merging #7916 will not alter performance

Comparing Sysix:refactor-linter-use-eslint-tests-for-rule-restricted-imports (baed83b) with main (9989b58)

Summary

✅ 29 untouched benchmarks

@Sysix Sysix changed the title refactor(linter): use eslint tests for rule no-restricted-imports test(linter): use eslint tests for rule no-restricted-imports Dec 15, 2024
@Sysix Sysix removed the C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior label Dec 15, 2024
@github-actions github-actions bot added the C-test Category - Testing. Code is missing test cases, or a PR is adding them label Dec 15, 2024
Boshen pushed a commit that referenced this pull request Dec 16, 2024
@Sysix Sysix closed this Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-linter Area - Linter C-test Category - Testing. Code is missing test cases, or a PR is adding them

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant