-
-
Notifications
You must be signed in to change notification settings - Fork 35.5k
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
TS: Export TextGeometryParameters #20467
Conversation
mrdoob#20437 is helpful in adding missing exports, but it removed exporting some helpful interfaces like `TextGeometryParamters`. It's a much better experience to be able to do: ``` import { Geometry, Material, MeshBasicMaterial, TextGeometryParameters } from 'three'; ``` rather than: ``` import { Geometry, Material, MeshBasicMaterial } from 'three'; import { TextGeometryParameters } from 'three/src/geometries/TextGeometry'; ```
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 PR seems to introduce multiple linter warnings.
@Mugen87 Thanks for noticing. Any reason not to make the ESLint config have those rules be errors instead of warnings so that the CI will fail? |
@mrdoob has a preference for less configs last time I checked. From your knowledge, can you turn the package.json eslint rules from warnings to errors? |
@DefinitelyMaybe Yeah, just change the 1's to 2's. Should I make a PR? |
Give it a go. My brains trying to think about un-intended consequences (like what I came up against when I added the |
This will `@typescript-eslint/no-unused-vars` an error instead of a warning. It's helpful for the rule to error so that the build will fail so that you don't have to check the logs to see if there was a warning. See mrdoob#20467 for context.
Thanks! |
Description
#20437 is helpful in adding missing exports, but it removed exporting some helpful interfaces like
TextGeometryParamters
. It's a much better experience to be able to do:rather than: