Support TypeScript in configuration initializer.
See original GitHub issueThe 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:
- Created 4 years ago
- Reactions:3
- Comments:9 (7 by maintainers)
Top 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 >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
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.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.