💼recommended
config. This rule warns in the 🌐 all
config.
❌ Examples of incorrect code for this rule:
// a.js
export const useBarStore = defineStore('bar', () => {
const bar = ref(0)
return { bar }
})
// b.js
export const useAnotherBarStore = defineStore('bar', () => {
const foo = ref(0)
return { foo }
})
export const useBarStore = defineStore('bar', () => {
const bar = ref(0)
return { bar }
})
export const useAnotherBarStore = defineStore('bar', () => {
const foo = ref(0)
return { foo }
})
✅ Examples of correct code for this rule:
export const useBarStore = defineStore('bar', () => {
const bar = ref(0)
return { bar }
})
export const useAnotherCounterStore = defineStore('foo', () => {
const foo = ref(0)
return { foo }
})