0.4.0 • Published 5 years ago
typescript-tailwindcssinjs-plugin v0.4.0
typescript-tailwindcssinjs-plugin
This package is a typescript language service plugin that adds editor support for @tailwindcssinjs/macro tagged template syntax: tw`...`
Install
# with npm
npm install -D typescript-tailwindcssinjs-plugin
# with Yarn
yarn add -D typescript-tailwindcssinjs-plugin
Usage
Configure the plugins
section in your tsconfig.json to add the language service plugin.
{
"compilerOptions": {
//compiler options...
"plugins": [
{
"name": "typescript-tailwindcssinjs-plugin",
"config": "./tailwind.config.js", //tailwind config filepath
"ignoreErrors": null //regex pattern string or null
}
]
}
}
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.