0.2.1 • Published 5 years ago
eslint-plugin-tailwind v0.2.1
eslint-plugin-tailwind
ESLint rules for Tailwind CSS
Installation
You'll first need to install ESLint:
$ npm i eslint --save-devNext, install eslint-plugin-tailwind:
$ npm install eslint-plugin-tailwind --save-devNote: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-tailwind globally.
Usage
Extend your ESLint config with tailwind config:
{
"extends": ["plugin:tailwind/recommended"]
}Supported Rules
Supported languages and file extensions
- HTML -
html - React -
js,jsx,tsx
VS Code integration
See /example/.vscode directory for recommended project settings.
Roadmap
- Handle responsive prefixes -
sm,mdetc. - Handle pseudo classes -
hover,activeetc. - Add support for Vue
- Add support for Svelte
- Add support for Angular