• Stars
    star
    100
  • Rank 339,869 (Top 7 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created almost 5 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

ESLint rules for Tailwind CSS

eslint-plugin-tailwind

npm (scoped) npm bundle size (scoped)

ESLint rules for Tailwind CSS

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-tailwind:

$ npm install eslint-plugin-tailwind --save-dev

Note: 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, md etc.
  • Handle pseudo classes - hover, active etc.
  • Add support for Vue
  • Add support for Svelte
  • Add support for Angular

More Repositories

1

Editr.js

โœ HTML, CSS and JavaScript playground
JavaScript
1,308
star
2

chalk.ist

๐Ÿ“ท Create beautiful images of your source code
Vue
928
star
3

typescript-expect-plugin

๐Ÿฆฅ Be lazy, write simple tests in comments.
TypeScript
339
star
4

snatch

๐Ÿ“‹ Beautiful clipboard manager for Windows
C#
269
star
5

cssParentSelector

CSS4 parent selector based on jQuery
CSS
215
star
6

behavior-tree

๐ŸŒฒ Manage React state with Behavior Trees
TypeScript
114
star
7

twix

Style React components with TailwindCSS
TypeScript
95
star
8

iridium

๐Ÿ’Ž VS Code extensions
Vue
71
star
9

vscode-extension-figma

Figma extension for VS Code
TypeScript
66
star
10

zen-form

Add distraction-free mode for forms
CSS
60
star
11

esuna

JavaScript
31
star
12

Garuda

A simple theme for GitHub Pages
JavaScript
18
star
13

snippets

Usefull JS, HTML, CSS and PHP snippets
JavaScript
12
star
14

react-typescript-monorepo

Learn how to manage React components within monorepo using only Typescript
TypeScript
12
star
15

figma-render

Render Figma document into HTML content
TypeScript
9
star
16

storybook-circleci-github-deployments

Learn how to host Storybook with CircleCI and Github Deployments
Shell
6
star
17

react-preset

โš› Smash your props into single preset prop
TypeScript
5
star
18

sauron

One build system to manage all your HTML, CSS, JS projects
CSS
4
star
19

figma-types

TypeScript definitions for Figma API responses
4
star
20

esuna-snippets

Snippets for Esuna Framework
2
star
21

dragToIncDec

Change input value by dragging label.
JavaScript
2
star
22

iPreload

jQuery image preloader
JavaScript
1
star
23

kasper.io

My blog
CSS
1
star
24

console2-flatland

Flatland colors for Console2
1
star
25

l4-title

Laravel 4 version of https://github.com/mywizz/title-for-laravel
PHP
1
star
26

json-wasm

TypeScript
1
star
27

vscode-npm-website

TypeScript
1
star
28

areYouSure

jQuery confirmation plugin
JavaScript
1
star
29

vitesse-motion-ssg-bug

TypeScript
1
star
30

codesandbox-template-remix

Remix template for CodeSandbox Projects
TypeScript
1
star
31

idered.github.com

My website
CSS
1
star
32

firo

SCSS framework to manage RWD fluently.
CSS
1
star
33

json-to-jsdoc

TypeScript
1
star
34

svelte-kit

Svelte
1
star