Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update deno_lint and swc #21718

Merged
merged 8 commits into from
Jan 9, 2024
Merged

Conversation

bartlomieju
Copy link
Member

@bartlomieju bartlomieju commented Dec 27, 2023

Closes #20187

Comment on lines +260 to +265
let filename = file_path.to_string_lossy().to_string();
let media_type = MediaType::from_path(file_path);

let linter = create_linter(media_type, lint_rules);
let linter = create_linter(lint_rules);

let (_, file_diagnostics) = linter.lint(file_name, source_code.clone())?;
let (_, file_diagnostics) = linter.lint_file(LintFileOptions {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rewrite this function. Linter should be created only once for all files.

@dsherret dsherret marked this pull request as ready for review January 9, 2024 17:29
@dsherret dsherret changed the title [WIP] chore: update deno_lint fix: update deno_lint and swc Jan 9, 2024
Copy link
Member

@dsherret dsherret left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dsherret dsherret enabled auto-merge (squash) January 9, 2024 23:17
@dsherret dsherret merged commit 69959aa into denoland:main Jan 9, 2024
14 checks passed
bartlomieju added a commit that referenced this pull request Jan 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat: Add no-console rule to deno lint
2 participants