This repository was archived by the owner on Mar 4, 2025. It is now read-only.
File tree 4 files changed +5
-13
lines changed 4 files changed +5
-13
lines changed Original file line number Diff line number Diff line change 57
57
"devDependencies" : {
58
58
"nodemon" : " ^1.18.9" <% if (eslint === 'yes') { %>,
59
59
"@nuxtjs/eslint-config" : " ^0.0.1" ,
60
+ "@nuxtjs/eslint-module" : " ^0.0.1" ,
60
61
"babel-eslint" : " ^10.0.1" ,
61
62
"eslint" : " ^5.15.1" ,
62
63
"eslint-config-standard" : " >=12.0.0" ,
66
67
"eslint-plugin-nuxt" : " >=0.4.2" ,
67
68
"eslint-plugin-promise" : " >=4.0.1" ,
68
69
"eslint-plugin-standard" : " >=4.0.0" ,
69
- "eslint-loader" : " ^2.1.2" ,
70
70
"eslint-plugin-vue" : " ^5.2.2" <% } %><% if (prettier === 'yes') { %>,
71
71
"eslint-config-prettier" : " ^4.1.0" ,
72
72
"eslint-plugin-prettier" : " ^3.0.1" ,
Original file line number Diff line number Diff line change @@ -79,7 +79,8 @@ module.exports = {
79
79
'@nuxtjs/bulma',< % } % > < % if ( ui = == 'buefy ') { % >
80
80
// Doc: https://buefy.github.io/#/documentation
81
81
'nuxt-buefy',< % } % > < % if ( pwa = == 'yes ') { % >
82
- '@nuxtjs/pwa',< % } % >
82
+ '@nuxtjs/pwa',< % } % > < % if ( eslint = == 'yes ') { % >
83
+ '@nuxtjs/eslint-module',< % } % >
83
84
],
84
85
< % if ( axios = == 'yes ') { % >
85
86
/*
@@ -112,16 +113,7 @@ module.exports = {
112
113
/*
113
114
** You can extend webpack config here
114
115
*/
115
- extend(config, ctx) { < % if ( eslint === 'yes' ) { % >
116
- // Run ESLint on save
117
- if ( ctx . isDev && ctx . isClient ) {
118
- config . module . rules . push ( {
119
- enforce : 'pre' ,
120
- test : / \. ( j s | v u e ) $ / ,
121
- loader : 'eslint-loader' ,
122
- exclude : / ( n o d e _ m o d u l e s ) /
123
- } )
124
- } < % } % >
116
+ extend(config, ctx) {
125
117
}
126
118
}
127
119
}
Original file line number Diff line number Diff line change @@ -178,10 +178,10 @@ Generated by [AVA](https://ava.li).
178
178
},
179
179
devDependencies: {
180
180
'@nuxtjs/eslint-config': '^0.0.1',
181
+ '@nuxtjs/eslint-module': '^0.0.1',
181
182
'babel-eslint': '^10.0.1',
182
183
eslint: '^5.15.1',
183
184
'eslint-config-standard': '>=12.0.0',
184
- 'eslint-loader': '^2.1.2',
185
185
'eslint-plugin-import': '>=2.16.0',
186
186
'eslint-plugin-jest': '>=22.3.0',
187
187
'eslint-plugin-node': '>=8.0.1',
You can’t perform that action at this time.
0 commit comments