jarrodldavis / eslint-plugin-tailwindcss Goto Github PK
View Code? Open in Web Editor NEWAn ESLint plugin to enforce usage of Tailwind CSS utility and component classes.
License: MIT License
An ESLint plugin to enforce usage of Tailwind CSS utility and component classes.
License: MIT License
With @tailwindcss/ui@^0.7.2
(upgraded from 0.6.2
):
yarn run v1.22.10
$ eslint .
Oops! Something went wrong! :(
ESLint: 7.13.0
Error: Error while loading rule '@jarrodldavis/tailwindcss/no-unknown-class': spawnSync /usr/local/Cellar/node@12/12.19.0_1/bin/node ENOBUFS
Occurred while linting /Users/jarrodldavis/ghq/github.com/[redacted]/components/CardFieldset.tsx
at Object.spawnSync (internal/child_process.js:1041:20)
at spawnSync (child_process.js:621:24)
at Object.execFileSync (child_process.js:648:15)
at extractClasses (/Users/jarrodldavis/ghq/github.com/[redacted]/node_modules/@jarrodldavis/eslint-plugin-tailwindcss/dist/lib/util/get-classes.js:27:40)
at Object.getClasses [as default] (/Users/jarrodldavis/ghq/github.com/[redacted]/node_modules/@jarrodldavis/eslint-plugin-tailwindcss/dist/lib/util/get-classes.js:47:25)
at Object.create (/Users/jarrodldavis/ghq/github.com/[redacted]/node_modules/@jarrodldavis/eslint-plugin-tailwindcss/dist/lib/rules/no-unknown-class.js:44:42)
at createRuleListeners (/Users/jarrodldavis/ghq/github.com/[redacted]/node_modules/eslint/lib/linter/linter.js:761:21)
at /Users/jarrodldavis/ghq/github.com/[redacted]/node_modules/eslint/lib/linter/linter.js:931:31
at Array.forEach (<anonymous>)
at runRules (/Users/jarrodldavis/ghq/github.com/[redacted]/node_modules/eslint/lib/linter/linter.js:876:34)
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Allow plugins like postcss-import
and postcss-nested
to pickup additional classes.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.