Allow selecting TSLint + ESLint for .vue files
See original GitHub issueWhat problem does this feature solve?
If I would like to work on a project using TypeScript and also I would like to lint templates of .vue
files, I need to start a new project selecting TypeScript and TSLint, and then install and invoke the @vue/cli-plugin-eslint
plugin to add the required packages and the .eslintrc
file.
What does the proposed API look like?
Allow selecting TSLint + ESLint (with the same config as ESLint with error prevention only
) to generate .eslintrc
and tslint.json
files, when I create a new Vue project.
Maybe would be better to add a question after Pick a linter / formatter config
to ask if I would like to lint templates in .vue
files
Issue Analytics
- State:
- Created 6 years ago
- Reactions:14
- Comments:14 (5 by maintainers)
Top Results From Across the Web
User Guide | eslint-plugin-vue
In the Settings/Preferences dialog ( Cmd+, / Ctrl+Alt+S ), choose JavaScript under Languages and Frameworks and then choose ESLint under Code ...
Read more >How To Configure ESLint and Prettier for Vue.js - DigitalOcean
Step 1 — Setting Up the Project Then, start a new Vue project using @vue/cli with default configurations: npx @vue/cli create vue-eslint- ...
Read more >ESLint doesn't believe that I've included .vue files in my tsconfig
I solved the issue by using a solution-style tsconfig instead and using eslintrc overrides to select specific file extensions and point ...
Read more >User Guide | eslint-plugin-vue-scoped-css
In the Settings/Preferences dialog ( Cmd+, / Ctrl+Alt+S ), choose JavaScript under Languages and Frameworks and then choose ESLint under Code ...
Read more >Vue 3 with Typescript, ESLint and Prettier - Javier Fernández
Once installed, we will go to Vetur settings and in Format -> Default Formatter section we will select the formatters for HTML, CSS,...
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
the prompt choice will be long
If it's implemented, the prompt choices need to be trimmed (merge ESLint choice)
using tslint-eslint-rules maybe can help to implement this feature
Thanks @IlCallo for that info, I was disconnected of any news about the JS/TS ecosystem LOL I researched a bit about that and checked the roadmap, and looks like the plan is to implement TS linting into ESLint in June 2019, so… so I think far ESLint + TSLint would be a good approach to cover things in TS that doesn’t exists in ESLint like the conflict between
new-cap
rule and the decorators