@daleal/oxd-config-vue
v0.1.0
Published
daleal's opinionated Oxlint and Oxfmt configs for Vue + TypeScript projects
Readme
@daleal/oxd-config-vue
. Opinionated Oxlint and Oxfmt configs for Vue + TypeScript projects, tuned for the way daleal likes imports, style rules, and type-aware linting.
Install
bun add -D @daleal/oxd-config-vue oxlint oxfmt typescriptUsage
// oxlint.config.ts
import { oxlint } from '@daleal/oxd-config-vue';
export default oxlint();// oxfmt.config.ts
import { oxfmt } from '@daleal/oxd-config-vue';
export default oxfmt();Oxfmt can receive the shorthands used in your project to sort the imports better:
export default oxfmt({ shorthands: ['~', '@'] });Both functions accept an overrides option. Oxlint overrides are composed after the preset; Oxfmt overrides are merged after it.
export default oxfmt({
shorthands: ['~', '@'],
overrides: {
semi: false,
},
});