Skip to content

Commit

Permalink
- updated eslint config (added presets and rule overrides) (#488)
Browse files Browse the repository at this point in the history
- app version = 4.3.2
- added eslint  vuetify plugin
- fixed some lint issues
- auto-fixed v-col class
- auto-fixed v-flex -> v-col
- deleted obsolete tsx shim
  • Loading branch information
severinbeauvais authored Apr 21, 2023
1 parent 2633b02 commit 63295cb
Show file tree
Hide file tree
Showing 33 changed files with 391 additions and 258 deletions.
15 changes: 15 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,31 @@ module.exports = {
node: true
},
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:vue/base',
'plugin:vue/essential',
// 'plugin:vue/recommended',
// 'plugin:vue/strongly-recommended',
'plugin:vue/vue3-essential',
// 'plugin:vue/vue3-recommended',
// 'plugin:vue/vue3-strongly-recommended',
'plugin:vuetify/base',
'plugin:vuetify/recommended',
'@vue/standard',
'@vue/typescript'
],
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'max-len': ['warn', { code: 120, ignoreRegExpLiterals: true }],
// 'vue/attribute-hyphenation': 'off',
// 'vue/no-deprecated-filter': 'warn',
'vue/no-deprecated-slot-scope-attribute': 'warn',
// 'vue/no-deprecated-v-on-native-modifier': 'warn',
'vue/no-v-for-template-key-on-child': 'warn',
'vue/no-v-html': 'off',
'vue/v-on-event-hyphenation': 'off',
'@typescript-eslint/ban-types': 'warn',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-explicit-any': 'off'
Expand Down
Loading

0 comments on commit 63295cb

Please sign in to comment.