-
Notifications
You must be signed in to change notification settings - Fork 42
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
Option to skip validation for Node10 #112
Comments
This is more or less something I have been wanting/planning for some time, but I think I want to implement it differently from
On the CLI, you could specify what you intend to conform to, whereas on the web, it could show all profiles and whether they’re satisfied. (I know most people using this project only want to test their own code with the CLI, but I personally track trends in the results on several thousand popular packages over time, and it would be cool for me to be able to have an additional useful way to segment that data.) |
Yes, that would be wonderful! Here's another slightly different scenario to toss out there. For React-Redux, we've got a couple alternate entry points. React-Redux v8 had I'm generating the right bundles and setup for |
It would be nice if it looked at the Similarly, it would be nice to be able to skip the "node16 (from CJS)" validations since my package is ESM-only. I set |
Just to provide another data point - we have both a design library, a web frontend, and an Electron-based app. Until Electron fully supports ESM, it's stuck on |
It is possible for consumers to have typescript moduleResolution set to node10 — regardless of the Node version, in which case the types will be broken. EDIT: Nvm, didn't read that package is ESM-only :D |
- arethetypeswrong/arethetypeswrong.github.io#112 - unfortunately, attw/no-resolution needs to be disabled entirely. manual review is required Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
Has there been any development on this? @markerikson I'm having the same issue as you mentioned here: #112 (comment). I have some endpoints in package.json that won't (and shouldn't) resolve when Edit: FWIW, I ended up using |
I needed this feature too. So what I did as a workaround was to write a script that:
You can look at the script here: I wish I didn't have to write the output to a file, and then read and parse that file. But I could never get it to work just straight up reading the output of attw. It's possible that #184 is related to why I can't read the full output. (Neither can jq) |
since attw will report a node10 related issue we want to ignore (see https://github.com/arethetypeswrong/arethetypeswrong.github.io/blob/main/docs/problems/NoResolution.md#true-positive-node-10-doesnt-support-packagejson-exports) and cannot (yet) be configured to skip node10 (see arethetypeswrong/arethetypeswrong.github.io#112), the `no-resolution` rule is skipped
since attw will report a node10 related issue we want to ignore (see https://github.com/arethetypeswrong/arethetypeswrong.github.io/blob/main/docs/problems/NoResolution.md#true-positive-node-10-doesnt-support-packagejson-exports) and cannot (yet) be configured to skip node10 (see arethetypeswrong/arethetypeswrong.github.io#112), the `no-resolution` rule is skipped
* chore: upgrade to latest config version to generate correct .d.ts files see #2223 * chore: added arethetypeswrong (attw) since attw will report a node10 related issue we want to ignore (see https://github.com/arethetypeswrong/arethetypeswrong.github.io/blob/main/docs/problems/NoResolution.md#true-positive-node-10-doesnt-support-packagejson-exports) and cannot (yet) be configured to skip node10 (see arethetypeswrong/arethetypeswrong.github.io#112), the `no-resolution` rule is skipped * fix(start): correctly reference client * ci: apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Is there any update on this? can we have a flag |
Add option to ignore resolution modes such as `Node10`. Via config: `ignoreResolutions` Via cli: `--ignoreResolutions` Option to skip validation for Node10 arethetypeswrong#112
Add option to ignore resolution modes such as `Node10`. Via config: `ignoreResolutions` Via cli: `--ignoreResolutions` Option to skip validation for Node10 arethetypeswrong#112
Hi. Is there an option to entirely skip validation for Node10? It's possible to run it with
--ignore-rules no-resolution
but unless I'm wrong that also skips that rule for the other categories, correct?The text was updated successfully, but these errors were encountered: