
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
@moneko/stylelint
Advanced tools
A minimalist, zero-dependency Stylelint configuration with built-in support for CSS-in-JS, SCSS, LESS, and more.
Install this package as a devDependency:
npm install @moneko/stylelint -D
# or
yarn add @moneko/stylelint -D
# or
pnpm add @moneko/stylelint -D
You can integrate stylelint programmatically in your JavaScript/TypeScript code as follows:
import { stylelint } from "@moneko/stylelint";
// Automatically support .css, .scss, .less, .ts, .tsx, .js, and .jsx files
const exts = ["css", "scss", "less", "ts", "tsx", "js", "jsx"].join(",");
const result = await stylelint.lint({
files: `src/**/*.{${exts}}`,
fix: true, // Automatically fix issues
cache: true, // Enable cache to speed up subsequent runs
formatter: "string", // Use a simple string formatter
});
if (result.report) {
process.stdout.write(result.report);
}
This package provides an easy way to configure Stylelint.
YAML Configuration (.stylelintrc.yaml)
extends:
- "@moneko/stylelint/config"
JS Configuration (stylelint.config.mjs)
import config from "@moneko/stylelint/config";
export default config;
By default, this configuration supports a wide range of modern CSS and JavaScript file types, without the need for additional setup:
.js, .jsx, .ts, and .tsx files, enabling you to lint both styles and code in a unified way.This means that whether you're working with traditional stylesheets, SCSS, LESS, or CSS-in-JS, this configuration has you covered.
This configuration is built with simplicity in mind, offering several benefits:
If you need to adapt the configuration to your specific project, it's easy to customize:
.stylelintrc file or importing the config into a stylelint.config.js file.Here’s an example of how to extend the configuration:
License
MIT
FAQs
stylelint
We found that @moneko/stylelint 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.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.