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.

Support TypeScript in configuration initializer.

See original GitHub issue

The version of ESLint you are using. master

The problem you want to solve. When running eslint --init, an option for TypeScript can be provided. Ref: https://github.com/eslint/eslint/issues/11368

Your take on the correct solution to problem. Add a question or option in Inquirer questions list.

Are you willing to submit a pull request to implement this change? Yes.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
platinumazurecommented, May 30, 2019

I’m not opposed if the team consensus is to add support to ESLint init specifically for Typescript. After all, we already explicitly ask about React. However, I’m worried about potentially having to field more requests to add support for Flow or other libraries/frameworks.

ESLint was built to get out of the business of legislating rules, and pluggability has been a core design principle in that area. But we haven’t done the same with init.

So, what I would like us to at least consider is: How can we make ESLint init more pluggable? Is there a way we could let plugins extend our init somehow? If such a thing could be implemented, then I envision typescript-eslint could export a binary in their package which might be something like, typescript-eslint-init, and they could choose to ask all, some, or none of the core ESLint init questions and add questions related to the plugin or to the language/framework/library on which the plugin is based.

0reactions
kaicataldocommented, Aug 17, 2019

The TSC resolved this week to include a built-in TypeScript config preset and look into allowing plugins to provide additional init presets in the future.

Read more comments on GitHub >

github_iconTop Results From Across the Web

TSConfig Option: strictPropertyInitialization - TypeScript
How to create and type JavaScript variables. TypeScript in 5 minutes. An overview of building a TypeScript web app. TSConfig Options. All the...
Read more >
What is Ts Config File & How to Initialize the Ts ... - YouTube
In this part of the full TypeScript Tsconfig tutorial for beginners, you will learn what is Ts Config file and how to initialize...
Read more >
Generating Default TypeScript Configuration Files with tsc --init
When you're setting up a new project that uses TypeScript, you're likely going to create a tsconfig.json file in which you specify the...
Read more >
TypeScript complain "has no initializer and is not definitely ...
TypeScript complain "has no initializer and is not definitely assigned in the constructor" about constructors by returning constructed object.
Read more >
How To Set Up a New TypeScript Project - DigitalOcean
With TypeScript installed, you can initialize your TypeScript project by using the following command: npx tsc --init.
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