
Research
/Security News
GlassWASM: WebAssembly Malware Found in Trojanized Open VSX Extensions
The trojanized extensions use TinyGo-compiled WebAssembly and Solana transaction memos to resolve command-and-control infrastructure.
eslint-plugin-gameface-tailwind
Advanced tools
An ESLint plugin that validates Tailwind CSS classes and inline CSS styles files against [Coherent Labs Gameface Framework](https://docs.coherent-labs.com/cpp-gameface/) compatibility.
An ESLint plugin that validates Tailwind CSS classes and inline CSS styles in JavaScript/JSX files against Coherent Labs Gameface Framework compatibility.
npm install --save-dev eslint-plugin-gameface-tailwind
Gameface is a UI framework for Unreal Engine and Unity that supports a subset of the HTML, CSS, JS standards optimized for game interfaces. This ESLint plugin helps identify unsupported CSS properties, values, and Tailwind classes before runtime.
The logic for this plugin is based on the following Gameface documentation:
<div className="grid" /> // ❌ Detects grid usage
<div style={{ display: "grid" }} /> // ❌ Detects unsupported grid styles
element.className = "float-left"; // ❌ Detects float usage
element.style.display = "grid"; // ❌ Detects grid usage
element.setAttribute("class", "sticky"); // ❌ Detects sticky positioning
const html = `<div class="grid grid-cols-3">Content</div>`; // ❌ Detects grid in templates
const template = `<div style="display: block; float: left">`; // ❌ Detects unsupported styles
Add the plugin to your ESLint configuration:
import gamefaceTailwind from 'eslint-plugin-gameface-tailwind';
export default [
{
plugins: {
'gameface-tailwind': gamefaceTailwind
},
rules: {
'gameface-tailwind/classes': 'error',
'gameface-tailwind/inline-css': 'error'
}
}
];
This plugin provides two rules to help ensure Gameface compatibility:
gameface-tailwind/classesDetects and reports Tailwind CSS classes that are not supported by Gameface.
Options:
severity ('error' | 'warning', default: 'warning'): Severity level for violationsignoreUnknown (boolean, default: false): Whether to ignore unknown Tailwind classesignoreClasses (string[], default: []): Array of class names to ignoreautofix (boolean, default: false): Enable automatic removal of unsupported classesExamples:
// ❌ Will be flagged
<div className="grid grid-cols-3" /> // CSS Grid not supported
<div className="bg-blue-500" /> // Color utilities not supported
<div className="shadow-lg" /> // Box shadow not supported
// ✅ Gameface-compatible alternatives
<div className="flex" /> // Flexbox is supported
<div className="border rounded-lg" /> // Border utilities are supported
<div className="p-4 m-2" /> // Spacing utilities are supported
gameface-tailwind/inline-cssDetects and reports inline CSS properties that are not supported by Gameface.
Options:
severity ('error' | 'warning', default: 'warning'): Severity level for violationscheckValues (boolean, default: true): Whether to validate CSS property valuesignoreProperties (string[], default: []): Array of CSS properties to ignoreautofix (boolean, default: false): Enable automatic removal of unsupported propertiesExamples:
// ❌ Will be flagged
<div style={{ display: "grid" }} /> // CSS Grid not supported
<div style={{ boxShadow: "0 4px 8px rgba(0,0,0,0.1)" }} /> // Box shadow not supported
<div style={{ position: "sticky" }} /> // Sticky positioning not supported
// ✅ Gameface-compatible alternatives
<div style={{ display: "flex" }} /> // Flexbox is supported
<div style={{ border: "1px solid #ccc" }} /> // Border properties are supported
<div style={{ position: "relative" }} /> // Relative positioning is supported
Recommended (default):
rules: {
...gamefaceTailwind.configs.recommended.rules
}
Use recommended when: You only want to catch definite incompatibilities and can work around partial support limitations.
Strict mode:
rules: {
...gamefaceTailwind.configs.strict.rules
}
With strict mode on properties with PARTIAL support will warn:
max-width/max-height (doesn't support none value)justify-content (doesn't support space-evenly)align-items (doesn't support baseline)background-position (offsets not supported)border-style variations with limitationsUse strict mode when: You want comprehensive validation and are willing to address even partial compatibility issues.
Enable autofix to automatically remove unsupported classes:
rules: {
'gameface-tailwind/classes': ['error', { autofix: true }],
'gameface-tailwind/inline-css': ['error', { autofix: true }]
}
Before autofix:
<div className="bg-white shadow-lg border rounded-lg p-6">
<p className="text-gray-600 mb-4">Content</p>
</div>
After autofix:
<div className="border rounded-lg p-6">
<p className="mb-4">Content</p>
</div>
// Single-line template literal
const buttonClass = `px-4 py-2 bg-blue-500 text-white rounded`; // ❌ bg-blue-500, text-white unsupported
// Multi-line template literal
const cardClasses = `
bg-white // ❌ Unsupported
shadow-lg // ❌ Unsupported
rounded-lg
p-6
max-w-sm
`;
// Template literal with conditional classes
const dynamicClass = `
flex items-center justify-center
px-4 py-2 rounded-md font-medium
${variant === 'primary' ? 'bg-blue-500 text-white' : 'border'} // ❌ bg-blue-500, text-white
`;
import { cva } from 'class-variance-authority';
const buttonVariants = cva(
"inline-flex items-center justify-center px-4 py-2 rounded-md font-medium transition-colors", // ❌ inline-flex
{
variants: {
variant: {
default: "bg-blue-500 text-white shadow-sm", // ❌ bg-blue-500, text-white, shadow-sm
destructive: "bg-red-500 text-white shadow-sm", // ❌ bg-red-500, text-white, shadow-sm
outline: "border border-gray-300 bg-white text-gray-700", // ❌ border-gray-300, bg-white, text-gray-700
ghost: "text-gray-700 hover:bg-gray-100", // ❌ text-gray-700, hover:bg-gray-100
},
size: {
sm: "h-8 px-3 text-sm",
lg: "h-12 px-8 text-lg",
}
}
}
);
// Usage with cn utility
<button className={cn(buttonVariants({ variant, size }))}>
Click me
</button>
function Card({ title, description, onAction }) {
return (
<div className="border rounded-lg p-6 max-w-sm">
<div className="flex items-center justify-between mb-4">
<h3 className="text-lg font-semibold">{title}</h3>
<button className="text-sm opacity-75">×</button>
</div>
<p className="mb-4">{description}</p>
<div className="flex justify-end">
<button
className="px-4 py-2 border rounded"
onClick={onAction}
>
Action
</button>
</div>
</div>
);
}
function Button({ variant = 'default', size = 'md', children, ...props }) {
const baseClasses = "items-center justify-center px-4 py-2 rounded-md font-medium";
const variantClasses = {
default: "border",
outline: "border",
};
const sizeClasses = {
sm: "h-8 px-3 text-sm",
md: "px-4 py-2",
lg: "h-12 px-8 text-lg",
};
return (
<button
className={`${baseClasses} ${variantClasses[variant]} ${sizeClasses[size]}`}
{...props}
>
{children}
</button>
);
}
function Form({ onSubmit }) {
return (
<form className="max-w-md" onSubmit={onSubmit}>
<div className="mb-4">
<label className="block text-sm font-medium mb-2">
Email
</label>
<input
type="email"
className="w-full px-3 py-2 border rounded-md"
/>
</div>
<div className="mb-6">
<label className="block text-sm font-medium mb-2">
Password
</label>
<input
type="password"
className="w-full px-3 py-2 border rounded-md"
/>
</div>
<button className="w-full py-2 px-4 rounded-md font-medium">
Sign In
</button>
</form>
);
}
FAQs
An ESLint plugin that validates Tailwind CSS classes and inline CSS styles files against [Coherent Labs Gameface Framework](https://docs.coherent-labs.com/cpp-gameface/) compatibility.
We found that eslint-plugin-gameface-tailwind demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
The trojanized extensions use TinyGo-compiled WebAssembly and Solana transaction memos to resolve command-and-control infrastructure.

Security News
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.

Security News
A network of 152 Chrome live wallpaper extensions hid ad tracking and made extension-driven traffic look like Google search clicks.