Skip to content

ts-macro/volar-plugin-ignore-attributes

Repository files navigation

volar-plugin-ignore-attributes

npm version npm downloads bundle JSDocs License

A Volar plugin to ignore unocss attributes for jsx.

Installation

pnpm add -D volar-plugin-ignore-attributes

TS Macro Config

import ignoreAttributes from 'volar-plugin-ignore-attributes'

export default {
  plugins: [
    ignoreAttributes({
      // Optional
      include: ['icon'],
      exclude: ['visible'],
      prefix: 'uno:'
    })
  ]
}

Volar Config

// tsconfig.json
{
  "vueCompilerOptions": {
    "plugins": [
      "volar-plugin-ignore-attributes"
    ]

    // Optional
    // "ignoreAttributes": {
    //   "include": ["icon"],
    //   "exclude": ["visible"]
    //   "prefix": "uno:"
    // }
  }
}

License

MIT License © 2023-PRESENT zhiyuanzmj

About

A Volar plugin to ignore attributes for jsx.

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published