Can this plugin be used without TypeScript?
See original GitHub issueHello, it says in the readme that “Most rules can be used both for JavaScript and TypeScript”. I assumed rules like no-let
should work fine, but I get a Cannot find module 'typescript'
error. Please advise!
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Can this plugin be used without TypeScript? · Issue #49 - GitHub
Hello, it says in the readme that "Most rules can be used both for JavaScript and TypeScript". I assumed rules like no-let should...
Read more >Module: Plugin - TypeScript: Documentation
While this is legal in CommonJS and other loaders, ES6 modules are considered immutable and this pattern will not be possible.
Read more >Develop a Grafana plugin with react without using typescript
I am going to develop a custom plugin for Grafana. As far as I know, it must be developed using React and Typescript....
Read more >@rollup/plugin-typescript - npm
@rollup/plugin-typescript. A Rollup plugin for seamless integration between Rollup and Typescript. Requirements. This plugin requires an ...
Read more >TypeScript | Plugin API - Figma
You're free to use plain JavaScript, or any of the languages that can be translated into JavaScript. However, to build a quality plugin...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Looks like this is an upstream issue with @typescript-eslint/typescript-estree. I’ve created an issue for this.
As a work around for now, I’d recommend installing typescript as a devDependency.
@yosevukilonzo, I’ve managed to modify the build process so that
@typescript-eslint
is no longer a dependency. In doing so,typescript
will no longer be a peer dependency.From the next release, things should now just work for vanilla JS out of the box.