We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e7ebe3f commit d66216fCopy full SHA for d66216f
README.md
@@ -114,6 +114,27 @@ export default {
114
}
115
```
116
117
+## How to fix Eslint auto lint error
118
+If you turn on Eslint on save by server, you should exclude `.svg` files of `eslint-loader`.
119
+
120
+Example:
121
+```js
122
+// nuxt.config.js
123
+build: {
124
+ extend(config, ctx) {
125
+ // Run ESLint on save
126
+ if (ctx.isDev && ctx.isClient) {
127
+ config.module.rules.push({
128
+ enforce: 'pre',
129
+ test: /\.(js|vue)$/,
130
+ loader: 'eslint-loader',
131
+ exclude: /(node_modules)||(.svg$)/ /* <--- here */
132
+ })
133
+ }
134
135
+}
136
+```
137
138
## Development
139
140
- Clone this repository
0 commit comments