-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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(lint): linting package with .css file should raise no errors #26695
base: main
Are you sure you want to change the base?
Conversation
This is currently failing with
There are two issues here that I want to fix:
|
eprintln!("paths {:#?}", paths); | ||
let mut futures = Vec::with_capacity(2); | ||
if linter.has_package_rules() { | ||
// Package rules are only in effect if user didn't explicitly specify paths on the command line | ||
if paths.is_empty() && linter.has_package_rules() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This bit seems broken - whether we invoke deno lint
or deno lint main.ts
in a directory that has deno.json
, the paths
contains main.ts
. We were unconditionally running the "package rules" lints as long as the deno.json
contains "publish config". Changing this conditional effectively breaks package lints. I think this whole bit should be rewritten to account for the fact that we're running lint for a whole dir or a certain file.
@@ -276,7 +280,9 @@ impl ModuleGraphCreator { | |||
loader: None, | |||
}) | |||
.await?; | |||
self.graph_valid(&graph)?; | |||
let r = self.graph_valid(&graph); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This call should filter out "unsupported media type" errors when graph is used for linting
Closes #26308