Skip to content

Commit

Permalink
add recommended config
Browse files Browse the repository at this point in the history
  • Loading branch information
ktsn committed Jun 13, 2023
1 parent 279b448 commit 1ca32de
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import { ESLint } from 'eslint'
import composablePlacement from './rules/composable-placement'

const { name, version } = require('../package.json')

const prefix = 'vue-composable'

export = {
meta: {
name,
Expand All @@ -11,4 +14,13 @@ export = {
rules: {
'composable-placement': composablePlacement,
},
}

configs: {
recommended: {
plugins: [prefix],
rules: {
[`${prefix}/composable-placement`]: 'error',
},
},
},
} as ESLint.Plugin

0 comments on commit 1ca32de

Please sign in to comment.