Skip to content

Commit

Permalink
feat: vue support
Browse files Browse the repository at this point in the history
  • Loading branch information
angeloanan committed Sep 15, 2023
1 parent ed4e2b3 commit 1f5d691
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
registry=https://npm.pkg.github.com
@indonesiafurs:registry=https://npm.pkg.github.com
package-lock=false
36 changes: 36 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,42 @@ module.exports = {
yoda: 'error',
},
overrides: [
{
files: ['**/*.vue'],
parser: 'vue-eslint-parser',
extends: ['plugin:vue/vue3-recommended'],
globals: {
defineProps: 'readonly',
defineEmits: 'readonly',
defineExpose: 'readonly',
withDefaults: 'readonly',
defineOptions: 'readonly',
},
rules: {
'vue/max-attributes-per-line': 'off',
'vue/no-v-html': 'off',
'vue/multi-word-component-names': 'off',
'vue/html-self-closing': [
'error',
{
html: {
void: 'always',
normal: 'always',
component: 'always',
},
svg: 'always',
math: 'always',
},
],

// Reactivity Transform
'vue/no-setup-props-destructure': 'off',
'vue/component-tags-order': [
'error',
{ order: ['script', 'template', 'style'] },
],
},
},
{
files: ['**/*.ts?(x)'],
parser: '@typescript-eslint/parser',
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"eslint-plugin-react": "^7.32.1",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-testing-library": "^5.10.0",
"eslint-plugin-vue": "^9.17.0",
"read-pkg-up": "^7.0.1",
"semver": "^7.3.8"
},
Expand Down

0 comments on commit 1f5d691

Please sign in to comment.