Hey there, I'm Kasper Mikiewicz and this is source of my personal blog.
I've used:
ESLint rules for Tailwind CSS
License: MIT License
When running [email protected]
along with eslint@^8.0.0
we get the following error when running npm i
npm ERR! peer eslint@"^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0" from [email protected]
Any chance that this can be patched?
Hi! Do you support uses with tagged literals like tw``m-sm
` ` used on twin.macro?
According to this tweet, theme()
is less error-prone than @apply
: https://twitter.com/adamwathan/status/1226511611592085504
@adamwathan is this still the case in Tailwind 2? If so, I think an ESLint rule in this library could help warn users about this and it would be really useful if eslint --fix
could apply a proper codemod to automagically convert from theme()
to @apply
(I might be able to push a PR for this)
warning " > [email protected]" has incorrect peer dependency "eslint@^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0".
I am using eslint^7.0.0
I am using _
prefix and it seems the plugin doesn't recognize the resulting classes like _mr-2
.
Can support for prefixes be added?
I love this plugin has changed my workflow a ton and puts some accountability across the team rather than relying on a hyper-local workflow via headwind. Would love to see more dynamic support for this plugin.
ie:
export const Button = ({ label, primary = true, backgroundColor, iconName, ...rest }: ButtonProps) => {
return (
<button
type='submit'
className={classNames(
primary ? 'border-transparent bg-blue fill-white text-white hover:bg-blue-600' : 'border-blue bg-white fill-blue text-blue',
'inline-flex items-center px-2.5 py-1.5 border border-transparent text-xs font-medium rounded shadow-sm text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500',
)}
style={{ backgroundColor }}
{...rest}
>
{iconName && <Icon name={iconName} className='w-5 h-5 mr-3 -ml-1' aria-hidden='true' isSolid />}
{label}
</button>
);
};
Would be awesome if the Tailwind classes inside the classNames
func would also get sorted like they would if they were not dynamic.
I would like this plugin to have support for .svelte files
The .svelte files are very similar to .html
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.