I just initiated a new Nuxt app with npm init nuxt-app <project-name>
and configured ESlint with npx eslint --init
.
Additionally, I added two rules to the .eslintrc.js config file like so:
module.exports = {
env: {
browser: true,
es2021: true
},
extends: [
'plugin:vue/essential',
'standard'
],
parserOptions: {
ecmaVersion: 12,
sourceType: 'module'
},
plugins: [
'vue'
],
rules: {
'vue/multi-word-component-names': 'warn',
'no-unused-vars': 'warn'
}
}
When I run my app and test whether everything is working I notice the rules that I have set in the .eslintrc.js file don't get applied properly. For example, I still get an error, and not a warning, when using unused variables.
Any experience with this? Or solution?
It always worked for me in Vue apps, but now with Nuxt it does not.