-
Notifications
You must be signed in to change notification settings - Fork 24
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
Can I mark a file/node to be ignored? #187
Comments
(A similar thing happened here Munter/netlify-plugin-checklinks#286) |
Munter/hyperlink#187 (cherry picked from commit 9f0e22a)
Optional chaining is supported by the newest version of acorn, which assetgraph has adopted on master, but it hadn't been released yet. I've just backported it to 6.x and released 6.3.0. If you update to the just released hyperlink 4.6.0, it should work 🤗 |
In the selective ignore pattern, it would be possible to create some patterns, for example in HTML, which hyperlink could exclude. I just don't like the idea much. I can't think of a convention that would be generally applicable across all the asset types that we support, and I'm not a big fan of spreading a lot of build tool specifics into your code either. And even if we came up with a convention for ignoring parts of your dependency graph, how can the tool then give you any guarantees anymore? I think assetgraph (tool behind hyperlink) should always support code that can run in modern browsers. Of course than hinges on there being updated releases of the specific parsers we are depending on, and us having the time to upgrade them :) |
Awesome work, I'll try it out again :-) What I was getting at, I suppose, is:
|
|
Tried it out, I've removed all my old Thanks again for an awesome tool! |
Here's an example page that causes an error,
Parse error in inline JavaScript in test_case.html\nUnknown node type ChainExpression.
The error here is, I believe, because
hyperlink
doesn't know about optional chaining. That's OK: I can't expect it to understand every bleeding-edge JS experiment.But I do expect the freedom to use bleeding-edge browser features without this causing all CI to fail. I would like to be able to mark a file/node/section as "trust me, I know what I'm doing, don't test this", e.g. like this
Is this possible today? If so, could I see an example? Thanks!
The text was updated successfully, but these errors were encountered: