Skip to content

Commit

Permalink
feat(eslint): vue force lang="ts" and inline handler style
Browse files Browse the repository at this point in the history
  • Loading branch information
DrJume committed Apr 18, 2024
1 parent 80c84d7 commit af1781a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/eslint-config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ export function eslintConfig(

// prefer `test` over `it` because it makes the test name more readable (no `should`)
'test/consistent-test-it': ['error', { fn: 'test', withinDescribe: 'test' }],

// force <script lang="ts">
'vue/block-lang': ['error', { script: { lang: 'ts' } }],
// force @click="handler()"
'vue/v-on-handler-style': ['error', 'inline'],
},
})
.append(
Expand Down

0 comments on commit af1781a

Please sign in to comment.