question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can this plugin be used without TypeScript?

See original GitHub issue

Hello, 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:closed
  • Created 4 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
RebeccaStevenscommented, Jul 29, 2019

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.

npm install typescript --save-dev
0reactions
RebeccaStevenscommented, Jul 30, 2019

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found