New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@culur/config-stylelint

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@culur/config-stylelint

Culur's stylelint configuration

latest
Source
npmnpm
Version
1.7.0
Version published
Maintainers
1
Created
Source

@culur/config-stylelint

NPM Version NPM Download NPM License

CodeFactor Codecov Build and release

Sharing Stylelint configurations.

✨ Features

The library is a shareable Stylelint configuration. It has some key features as follows:

Auto detect environment

The configuration will check if the following packages are installed and their versions to change plugins and rules.

EnvironmentPackagesSupport versions
Tailwindtailwindcss0, 1, 2, 3, 4
SCSSsass or dart-sass or node-sass-
Vuevue-

Extends

💿 Installation

Add @culur/config-stylelint dependency to your project.

# Using npm
npm install @culur/config-stylelint --save-dev

# Using pnpm
pnpm install @culur/config-stylelint --dev

# Using yarn
yarn add @culur/config-stylelint --dev

Other packages:

  • Use need to install stylelint package in devDependencies.

📖 Usage

1. Extending config

Set your .stylelintrc.json to:

{
  "extends": ["@culur/config-stylelint"]
}

Below are also some pre-built configs to use.

ConfigTailwindSassVue
@culur/config-stylelintautoautoauto
@culur/config-stylelint/autoautoautoauto
@culur/config-stylelint/none
@culur/config-stylelint/sass-vuetruetrue
@culur/config-stylelint/sasstrue
@culur/config-stylelint/tailwind3-sass-vue3truetrue
@culur/config-stylelint/tailwind3-sass3true
@culur/config-stylelint/tailwind33
@culur/config-stylelint/tailwind4-vue4true
@culur/config-stylelint/tailwind44
@culur/config-stylelint/vuetrue

2. Define config

You can also define which environments are enabled via the defineConfig function.

// .stylelintrc.mjs
import { defineConfig } from '@culur/config-stylelint/factory';

export default defineConfig(
  {
    tailwind: 4,
    sass: false,
    vue: false,
  },
  {
    extends: [],
    plugins: [],
    rules: {},
  },
);

Note: When using defineConfig function, you must install stylelint-config-* and plugins dependencies to your project.

2. Ignoring Code

Stylelint use .stylelintignore file to ignore specific files. You can use the following command to copy our default .stylelintignore to your project root folder:

# unix
cp "node_modules\@culur\config-stylelint\.stylelintignore" ".stylelintignore"

# windows
copy "node_modules\@culur\config-stylelint\.stylelintignore" ".stylelintignore"

📜 Scripts

Some commonly used scripts in package.json.

{
  "scripts": {
    "fix:css": "stylelint '**/*.{vue,tsx,css,scss}' --allow-empty-input --fix",
    "lint:css": "stylelint '**/*.{vue,tsx,css,scss}' --allow-empty-input"
  }
}

🗃️ Changelog

See CHANGELOG for more information on what has changed recently.

🔒 License

See LICENSE for license rights and limitations (MIT).

Keywords

culur

FAQs

Package last updated on 27 Mar 2026

Did you know?

Socket

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.

Install

Related posts