typescript-xwind-plugin
TypeScript icon, indicating that this package has built-in type declarations

0.8.0 • Public • Published

typescript-xwind-plugin

NPM version License

This package is a typescript language service plugin that adds editor support for xwind tagged template syntax: tw`...` or xw`...`

Install

# with npm
npm install -D typescript-xwind-plugin

# with Yarn
yarn add -D typescript-xwind-plugin

Usage

Configure the plugins section in your tsconfig.json to add the language service plugin.

{
  "compilerOptions": {
    //compiler options...
    "plugins": [
      {
        "name": "typescript-xwind-plugin",
        "config": ".../User/.../tailwind.config.js", //Absolute filepath to tailwind config
        "ignoreErrors": null, //regex pattern string or null
        "tags": ["tw", "xw"] //tags that trigger xwind plugin
      }
    ]
  }
}

Note: If you're using VS Code, you'll have to use the workspace TypeScript version or install the VS Code extension.

License

MIT. Copyright (c) 2020 Arthur Petrie.

Readme

Keywords

none

Package Sidebar

Install

npm i typescript-xwind-plugin

Weekly Downloads

30

Version

0.8.0

License

MIT

Unpacked Size

188 kB

Total Files

23

Last publish

Collaborators

  • arthie