-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow selecting TSLint + ESLint for .vue files #1021
Comments
the prompt choice will be long? Pick a linter / formatter config:
❯ TSLint
TSLint + Airbnb ESLint config
TSLint + Standard ESLint config
TSLint + Prettier
ESLint with error prevention only
ESLint + Airbnb config
ESLint + Standard config
ESLint + Prettier If it's implemented, the prompt choices need to be trimmed (merge ESLint choice)? Pick a linter / formatter config:
❯ TSLint
TSLint + Airbnb ESLint config
TSLint + Standard ESLint config
TSLint + Prettier using tslint-eslint-rules maybe can help to implement this feature |
In my opinion removing ESLint as a prompt choice would be bad because with ESLint i can use https://github.com/vuejs/eslint-plugin-vue. :-) |
+1 for an automatic setup with both TSLint, ESLint and eslint-plugin-vue |
Anyone know how to manually configure this currently? I have tslint, eslint, and eslint-plugin-vue, but eslint is not always happy with my TS code:
I could just turn off the |
Hi @ffxsam, TL;DR; In deep: I would like to hear about other opinions about that, and I just found wotam (https://github.com/fimbullinter/wotan) somebody experienced that? |
hi, any best practice for this feature? |
Hi @summercn, hope it didn't block you and find a way to deal with it. I just backed to Vue.js after some months without using it, and checking this for a new project with the latest version of vue-cli (3.5.1) I found a solution that may will be useful for this case. First I ran There are 2 little things to review (I'll try to update soon on this)
Maybe it could be changed to a single instruction, like
|
AFAIK, vue-cli recommended eslint over tslint for ts projects now? Is that true? |
TSLint will be deprecated and all efforts will converge into ESLint, so I guess this issue will solve itself more or less when 2019 ends: the standard will be ESLint. |
Thanks @IlCallo for that info, I was disconnected of any news about the JS/TS ecosystem LOL |
Now that TSLint is officially deprecated, I think we should no longer consider putting energy into TSLint-related features. So I'm closing this issue. |
@sodatea how can I migrate my existing TSLint project to ESlint? For example, making |
@vegerot Just run |
Trying to do that in my project gives an error:
|
What 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
andtslint.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
filesThe text was updated successfully, but these errors were encountered: