How to disable ESLint in vue-cli?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}
How do I go about disabling ESlint
in project generated with vue-cli
?
preLoaders: [
{
test: /.vue$/,
loader: 'eslint',
include: projectRoot,
exclude: /node_modules/
},
{
test: /.js$/,
loader: 'eslint',
include: projectRoot,
exclude: /node_modules/
}
]
If I remove the loader: 'eslint'
line it won't compile, same with setting it to an empty string. I know I can opt out of ESLint
during the initialization phase, but how can I disable it after my project has been created?
javascript webpack vue.js vue-cli
add a comment |
How do I go about disabling ESlint
in project generated with vue-cli
?
preLoaders: [
{
test: /.vue$/,
loader: 'eslint',
include: projectRoot,
exclude: /node_modules/
},
{
test: /.js$/,
loader: 'eslint',
include: projectRoot,
exclude: /node_modules/
}
]
If I remove the loader: 'eslint'
line it won't compile, same with setting it to an empty string. I know I can opt out of ESLint
during the initialization phase, but how can I disable it after my project has been created?
javascript webpack vue.js vue-cli
Which template are you using? Simple webpack?
– Himmet Avsar
Aug 4 '16 at 1:31
full-featured Webpack
– Mahmud Adam
Aug 4 '16 at 1:36
4
Look at the{{#lint}}
blocks in github.com/vuejs-templates/webpack/blob/… - can probably drop the entirepreLoaders
block?
– ceejayoz
Aug 4 '16 at 1:44
@HectorLorenzo Moved it.
– ceejayoz
Aug 4 '16 at 11:56
add a comment |
How do I go about disabling ESlint
in project generated with vue-cli
?
preLoaders: [
{
test: /.vue$/,
loader: 'eslint',
include: projectRoot,
exclude: /node_modules/
},
{
test: /.js$/,
loader: 'eslint',
include: projectRoot,
exclude: /node_modules/
}
]
If I remove the loader: 'eslint'
line it won't compile, same with setting it to an empty string. I know I can opt out of ESLint
during the initialization phase, but how can I disable it after my project has been created?
javascript webpack vue.js vue-cli
How do I go about disabling ESlint
in project generated with vue-cli
?
preLoaders: [
{
test: /.vue$/,
loader: 'eslint',
include: projectRoot,
exclude: /node_modules/
},
{
test: /.js$/,
loader: 'eslint',
include: projectRoot,
exclude: /node_modules/
}
]
If I remove the loader: 'eslint'
line it won't compile, same with setting it to an empty string. I know I can opt out of ESLint
during the initialization phase, but how can I disable it after my project has been created?
javascript webpack vue.js vue-cli
javascript webpack vue.js vue-cli
edited Aug 24 '17 at 20:08
thanksd
25.5k127180
25.5k127180
asked Aug 4 '16 at 1:25
Mahmud AdamMahmud Adam
1,23131337
1,23131337
Which template are you using? Simple webpack?
– Himmet Avsar
Aug 4 '16 at 1:31
full-featured Webpack
– Mahmud Adam
Aug 4 '16 at 1:36
4
Look at the{{#lint}}
blocks in github.com/vuejs-templates/webpack/blob/… - can probably drop the entirepreLoaders
block?
– ceejayoz
Aug 4 '16 at 1:44
@HectorLorenzo Moved it.
– ceejayoz
Aug 4 '16 at 11:56
add a comment |
Which template are you using? Simple webpack?
– Himmet Avsar
Aug 4 '16 at 1:31
full-featured Webpack
– Mahmud Adam
Aug 4 '16 at 1:36
4
Look at the{{#lint}}
blocks in github.com/vuejs-templates/webpack/blob/… - can probably drop the entirepreLoaders
block?
– ceejayoz
Aug 4 '16 at 1:44
@HectorLorenzo Moved it.
– ceejayoz
Aug 4 '16 at 11:56
Which template are you using? Simple webpack?
– Himmet Avsar
Aug 4 '16 at 1:31
Which template are you using? Simple webpack?
– Himmet Avsar
Aug 4 '16 at 1:31
full-featured Webpack
– Mahmud Adam
Aug 4 '16 at 1:36
full-featured Webpack
– Mahmud Adam
Aug 4 '16 at 1:36
4
4
Look at the
{{#lint}}
blocks in github.com/vuejs-templates/webpack/blob/… - can probably drop the entire preLoaders
block?– ceejayoz
Aug 4 '16 at 1:44
Look at the
{{#lint}}
blocks in github.com/vuejs-templates/webpack/blob/… - can probably drop the entire preLoaders
block?– ceejayoz
Aug 4 '16 at 1:44
@HectorLorenzo Moved it.
– ceejayoz
Aug 4 '16 at 11:56
@HectorLorenzo Moved it.
– ceejayoz
Aug 4 '16 at 11:56
add a comment |
8 Answers
8
active
oldest
votes
Vue's starter projects are themselves built with a templating language.
Looking at the templates (the {{#lint}}
bits) it appears you can remove the entire preLoaders
block.
12
Also, a cheap fix in case OP wants to easily enable and disable it is to add paths to the .eslintignore file.
– Bill Criswell
Aug 4 '16 at 13:06
src/*.js
didn't help to disable eslint for src file ... may be needed to take some extra steps? @BillCriswell
– Asqan
Feb 8 '17 at 15:46
Yup. Blocking out this part works.
– Karl Pokus
Mar 28 '17 at 15:24
2
@Asqan you might want to usesrc/**/*.js
andsrc/**/*.vue
to ignore files recursively
– antoine
Jun 28 '17 at 21:14
add a comment |
As of the current version (^3.0?) you can just set:
useEslint: false,
in config/index.js
Worked!I think for recent versions, this should be the acceptable answer.
– dtechplus
Feb 20 '18 at 9:59
1
This isn't working for me.
– Wayne Smallman
Nov 4 '18 at 10:53
add a comment |
As of 2019, March
:
In the vue.config.js
:
module.exports = {
...
lintOnSave: false
...
}
Good Luck...
copy of accepted answer. Does not contribute anything additional
– Hybrid web dev
Mar 29 at 2:42
Hi @Hybridwebdev, there is no mention oflintOnSave
in the accepted answer. Why have you mentioned that it is a copy of the accepted answer?
– Akash
Mar 29 at 4:21
add a comment |
There's a hell lot of solutions here:
https://github.com/vuejs-templates/webpack/issues/73
However the best one is :
To add a line of **/*
to .eslintignore, which will ignore all files.
And then re-run, if it's a web app!
add a comment |
In the latest version, open the ".eslintrc.js" file, and set "root: false".
2
This isn't working for me.
– Wayne Smallman
Nov 4 '18 at 10:53
add a comment |
Set
useEslint: false,
in config/index.js
see this image
Add some description
– Billa
Jul 31 '18 at 5:25
add a comment |
There are some out-of-date answers here.
Because vue-cli 3 is using a zero configuration approach, the way to disable it is to just uninstall the module:
npm remove @vue/cli-plugin-eslint
add a comment |
Go inside file "tslint.json" and exclude all files in linterOptions. Default settings only excludes folder node_modules. You may also set "strict": false, inside tsconfig.json
"linterOptions": {
"exclude": [
"*/**"
]
},
instead of
"linterOptions": {
"exclude": [
"node_modules/**"
]
},
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f38757069%2fhow-to-disable-eslint-in-vue-cli%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
8 Answers
8
active
oldest
votes
8 Answers
8
active
oldest
votes
active
oldest
votes
active
oldest
votes
Vue's starter projects are themselves built with a templating language.
Looking at the templates (the {{#lint}}
bits) it appears you can remove the entire preLoaders
block.
12
Also, a cheap fix in case OP wants to easily enable and disable it is to add paths to the .eslintignore file.
– Bill Criswell
Aug 4 '16 at 13:06
src/*.js
didn't help to disable eslint for src file ... may be needed to take some extra steps? @BillCriswell
– Asqan
Feb 8 '17 at 15:46
Yup. Blocking out this part works.
– Karl Pokus
Mar 28 '17 at 15:24
2
@Asqan you might want to usesrc/**/*.js
andsrc/**/*.vue
to ignore files recursively
– antoine
Jun 28 '17 at 21:14
add a comment |
Vue's starter projects are themselves built with a templating language.
Looking at the templates (the {{#lint}}
bits) it appears you can remove the entire preLoaders
block.
12
Also, a cheap fix in case OP wants to easily enable and disable it is to add paths to the .eslintignore file.
– Bill Criswell
Aug 4 '16 at 13:06
src/*.js
didn't help to disable eslint for src file ... may be needed to take some extra steps? @BillCriswell
– Asqan
Feb 8 '17 at 15:46
Yup. Blocking out this part works.
– Karl Pokus
Mar 28 '17 at 15:24
2
@Asqan you might want to usesrc/**/*.js
andsrc/**/*.vue
to ignore files recursively
– antoine
Jun 28 '17 at 21:14
add a comment |
Vue's starter projects are themselves built with a templating language.
Looking at the templates (the {{#lint}}
bits) it appears you can remove the entire preLoaders
block.
Vue's starter projects are themselves built with a templating language.
Looking at the templates (the {{#lint}}
bits) it appears you can remove the entire preLoaders
block.
answered Aug 4 '16 at 11:56
ceejayozceejayoz
144k34225311
144k34225311
12
Also, a cheap fix in case OP wants to easily enable and disable it is to add paths to the .eslintignore file.
– Bill Criswell
Aug 4 '16 at 13:06
src/*.js
didn't help to disable eslint for src file ... may be needed to take some extra steps? @BillCriswell
– Asqan
Feb 8 '17 at 15:46
Yup. Blocking out this part works.
– Karl Pokus
Mar 28 '17 at 15:24
2
@Asqan you might want to usesrc/**/*.js
andsrc/**/*.vue
to ignore files recursively
– antoine
Jun 28 '17 at 21:14
add a comment |
12
Also, a cheap fix in case OP wants to easily enable and disable it is to add paths to the .eslintignore file.
– Bill Criswell
Aug 4 '16 at 13:06
src/*.js
didn't help to disable eslint for src file ... may be needed to take some extra steps? @BillCriswell
– Asqan
Feb 8 '17 at 15:46
Yup. Blocking out this part works.
– Karl Pokus
Mar 28 '17 at 15:24
2
@Asqan you might want to usesrc/**/*.js
andsrc/**/*.vue
to ignore files recursively
– antoine
Jun 28 '17 at 21:14
12
12
Also, a cheap fix in case OP wants to easily enable and disable it is to add paths to the .eslintignore file.
– Bill Criswell
Aug 4 '16 at 13:06
Also, a cheap fix in case OP wants to easily enable and disable it is to add paths to the .eslintignore file.
– Bill Criswell
Aug 4 '16 at 13:06
src/*.js
didn't help to disable eslint for src file ... may be needed to take some extra steps? @BillCriswell– Asqan
Feb 8 '17 at 15:46
src/*.js
didn't help to disable eslint for src file ... may be needed to take some extra steps? @BillCriswell– Asqan
Feb 8 '17 at 15:46
Yup. Blocking out this part works.
– Karl Pokus
Mar 28 '17 at 15:24
Yup. Blocking out this part works.
– Karl Pokus
Mar 28 '17 at 15:24
2
2
@Asqan you might want to use
src/**/*.js
and src/**/*.vue
to ignore files recursively– antoine
Jun 28 '17 at 21:14
@Asqan you might want to use
src/**/*.js
and src/**/*.vue
to ignore files recursively– antoine
Jun 28 '17 at 21:14
add a comment |
As of the current version (^3.0?) you can just set:
useEslint: false,
in config/index.js
Worked!I think for recent versions, this should be the acceptable answer.
– dtechplus
Feb 20 '18 at 9:59
1
This isn't working for me.
– Wayne Smallman
Nov 4 '18 at 10:53
add a comment |
As of the current version (^3.0?) you can just set:
useEslint: false,
in config/index.js
Worked!I think for recent versions, this should be the acceptable answer.
– dtechplus
Feb 20 '18 at 9:59
1
This isn't working for me.
– Wayne Smallman
Nov 4 '18 at 10:53
add a comment |
As of the current version (^3.0?) you can just set:
useEslint: false,
in config/index.js
As of the current version (^3.0?) you can just set:
useEslint: false,
in config/index.js
answered Feb 9 '18 at 18:52
Eric GrotkeEric Grotke
2,16411317
2,16411317
Worked!I think for recent versions, this should be the acceptable answer.
– dtechplus
Feb 20 '18 at 9:59
1
This isn't working for me.
– Wayne Smallman
Nov 4 '18 at 10:53
add a comment |
Worked!I think for recent versions, this should be the acceptable answer.
– dtechplus
Feb 20 '18 at 9:59
1
This isn't working for me.
– Wayne Smallman
Nov 4 '18 at 10:53
Worked!I think for recent versions, this should be the acceptable answer.
– dtechplus
Feb 20 '18 at 9:59
Worked!I think for recent versions, this should be the acceptable answer.
– dtechplus
Feb 20 '18 at 9:59
1
1
This isn't working for me.
– Wayne Smallman
Nov 4 '18 at 10:53
This isn't working for me.
– Wayne Smallman
Nov 4 '18 at 10:53
add a comment |
As of 2019, March
:
In the vue.config.js
:
module.exports = {
...
lintOnSave: false
...
}
Good Luck...
copy of accepted answer. Does not contribute anything additional
– Hybrid web dev
Mar 29 at 2:42
Hi @Hybridwebdev, there is no mention oflintOnSave
in the accepted answer. Why have you mentioned that it is a copy of the accepted answer?
– Akash
Mar 29 at 4:21
add a comment |
As of 2019, March
:
In the vue.config.js
:
module.exports = {
...
lintOnSave: false
...
}
Good Luck...
copy of accepted answer. Does not contribute anything additional
– Hybrid web dev
Mar 29 at 2:42
Hi @Hybridwebdev, there is no mention oflintOnSave
in the accepted answer. Why have you mentioned that it is a copy of the accepted answer?
– Akash
Mar 29 at 4:21
add a comment |
As of 2019, March
:
In the vue.config.js
:
module.exports = {
...
lintOnSave: false
...
}
Good Luck...
As of 2019, March
:
In the vue.config.js
:
module.exports = {
...
lintOnSave: false
...
}
Good Luck...
answered Mar 21 at 3:31
AkashAkash
6,75614241
6,75614241
copy of accepted answer. Does not contribute anything additional
– Hybrid web dev
Mar 29 at 2:42
Hi @Hybridwebdev, there is no mention oflintOnSave
in the accepted answer. Why have you mentioned that it is a copy of the accepted answer?
– Akash
Mar 29 at 4:21
add a comment |
copy of accepted answer. Does not contribute anything additional
– Hybrid web dev
Mar 29 at 2:42
Hi @Hybridwebdev, there is no mention oflintOnSave
in the accepted answer. Why have you mentioned that it is a copy of the accepted answer?
– Akash
Mar 29 at 4:21
copy of accepted answer. Does not contribute anything additional
– Hybrid web dev
Mar 29 at 2:42
copy of accepted answer. Does not contribute anything additional
– Hybrid web dev
Mar 29 at 2:42
Hi @Hybridwebdev, there is no mention of
lintOnSave
in the accepted answer. Why have you mentioned that it is a copy of the accepted answer?– Akash
Mar 29 at 4:21
Hi @Hybridwebdev, there is no mention of
lintOnSave
in the accepted answer. Why have you mentioned that it is a copy of the accepted answer?– Akash
Mar 29 at 4:21
add a comment |
There's a hell lot of solutions here:
https://github.com/vuejs-templates/webpack/issues/73
However the best one is :
To add a line of **/*
to .eslintignore, which will ignore all files.
And then re-run, if it's a web app!
add a comment |
There's a hell lot of solutions here:
https://github.com/vuejs-templates/webpack/issues/73
However the best one is :
To add a line of **/*
to .eslintignore, which will ignore all files.
And then re-run, if it's a web app!
add a comment |
There's a hell lot of solutions here:
https://github.com/vuejs-templates/webpack/issues/73
However the best one is :
To add a line of **/*
to .eslintignore, which will ignore all files.
And then re-run, if it's a web app!
There's a hell lot of solutions here:
https://github.com/vuejs-templates/webpack/issues/73
However the best one is :
To add a line of **/*
to .eslintignore, which will ignore all files.
And then re-run, if it's a web app!
edited Jul 23 '18 at 7:47
answered Jul 23 '18 at 7:32
reverie_ssreverie_ss
508516
508516
add a comment |
add a comment |
In the latest version, open the ".eslintrc.js" file, and set "root: false".
2
This isn't working for me.
– Wayne Smallman
Nov 4 '18 at 10:53
add a comment |
In the latest version, open the ".eslintrc.js" file, and set "root: false".
2
This isn't working for me.
– Wayne Smallman
Nov 4 '18 at 10:53
add a comment |
In the latest version, open the ".eslintrc.js" file, and set "root: false".
In the latest version, open the ".eslintrc.js" file, and set "root: false".
answered Jul 27 '18 at 11:08
Felix JrFelix Jr
795
795
2
This isn't working for me.
– Wayne Smallman
Nov 4 '18 at 10:53
add a comment |
2
This isn't working for me.
– Wayne Smallman
Nov 4 '18 at 10:53
2
2
This isn't working for me.
– Wayne Smallman
Nov 4 '18 at 10:53
This isn't working for me.
– Wayne Smallman
Nov 4 '18 at 10:53
add a comment |
Set
useEslint: false,
in config/index.js
see this image
Add some description
– Billa
Jul 31 '18 at 5:25
add a comment |
Set
useEslint: false,
in config/index.js
see this image
Add some description
– Billa
Jul 31 '18 at 5:25
add a comment |
Set
useEslint: false,
in config/index.js
see this image
Set
useEslint: false,
in config/index.js
see this image
edited Jul 31 '18 at 6:51
Alien
5,52331128
5,52331128
answered Jul 31 '18 at 5:03
Santosh PSantosh P
292
292
Add some description
– Billa
Jul 31 '18 at 5:25
add a comment |
Add some description
– Billa
Jul 31 '18 at 5:25
Add some description
– Billa
Jul 31 '18 at 5:25
Add some description
– Billa
Jul 31 '18 at 5:25
add a comment |
There are some out-of-date answers here.
Because vue-cli 3 is using a zero configuration approach, the way to disable it is to just uninstall the module:
npm remove @vue/cli-plugin-eslint
add a comment |
There are some out-of-date answers here.
Because vue-cli 3 is using a zero configuration approach, the way to disable it is to just uninstall the module:
npm remove @vue/cli-plugin-eslint
add a comment |
There are some out-of-date answers here.
Because vue-cli 3 is using a zero configuration approach, the way to disable it is to just uninstall the module:
npm remove @vue/cli-plugin-eslint
There are some out-of-date answers here.
Because vue-cli 3 is using a zero configuration approach, the way to disable it is to just uninstall the module:
npm remove @vue/cli-plugin-eslint
answered Jan 18 at 0:24
WossnameWossname
49526
49526
add a comment |
add a comment |
Go inside file "tslint.json" and exclude all files in linterOptions. Default settings only excludes folder node_modules. You may also set "strict": false, inside tsconfig.json
"linterOptions": {
"exclude": [
"*/**"
]
},
instead of
"linterOptions": {
"exclude": [
"node_modules/**"
]
},
add a comment |
Go inside file "tslint.json" and exclude all files in linterOptions. Default settings only excludes folder node_modules. You may also set "strict": false, inside tsconfig.json
"linterOptions": {
"exclude": [
"*/**"
]
},
instead of
"linterOptions": {
"exclude": [
"node_modules/**"
]
},
add a comment |
Go inside file "tslint.json" and exclude all files in linterOptions. Default settings only excludes folder node_modules. You may also set "strict": false, inside tsconfig.json
"linterOptions": {
"exclude": [
"*/**"
]
},
instead of
"linterOptions": {
"exclude": [
"node_modules/**"
]
},
Go inside file "tslint.json" and exclude all files in linterOptions. Default settings only excludes folder node_modules. You may also set "strict": false, inside tsconfig.json
"linterOptions": {
"exclude": [
"*/**"
]
},
instead of
"linterOptions": {
"exclude": [
"node_modules/**"
]
},
edited Feb 21 at 13:22
answered Feb 20 at 7:11
Panayiotis HiripisPanayiotis Hiripis
1294
1294
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f38757069%2fhow-to-disable-eslint-in-vue-cli%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Which template are you using? Simple webpack?
– Himmet Avsar
Aug 4 '16 at 1:31
full-featured Webpack
– Mahmud Adam
Aug 4 '16 at 1:36
4
Look at the
{{#lint}}
blocks in github.com/vuejs-templates/webpack/blob/… - can probably drop the entirepreLoaders
block?– ceejayoz
Aug 4 '16 at 1:44
@HectorLorenzo Moved it.
– ceejayoz
Aug 4 '16 at 11:56