Skip to content

Commit

Permalink
Update .eslintrc.js configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Coder2Mo committed Nov 12, 2023
1 parent 4358377 commit 1c12672
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
module.exports = {
root: true,
env: {
node: true,
},
extends: [
'plugin:vue/essential',
'eslint:recommended',
],
parserOptions: {
parser: 'babel-eslint',
},
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'vue/no-parsing-error': ['error', { 'x-invalid-end-tag': false }],
'vue/no-unused-components': 'warn',
'vue/valid-template-root': 'error',
'vue/no-side-effects-in-computed-properties': 'error',
'vue/require-v-for-key': 'error',
'vue/no-unused-vars': 'error',
},
};

0 comments on commit 1c12672

Please sign in to comment.