{"id":26447,"library":"stylelint-standard","title":"stylelint-standard","description":"stylelint-standard is a fixed lint configuration package for stylelint, currently at version 1.2.3. It provides a standard set of CSS linting rules with minimal configuration. It is actively maintained with regular releases and includes TypeScript type definitions. Unlike other stylelint configs, it focuses on stability and performance.","status":"active","version":"1.2.3","language":"javascript","source_language":"en","source_url":null,"tags":["javascript","typescript"],"install":[{"cmd":"npm install stylelint-standard","lang":"bash","label":"npm"},{"cmd":"yarn add stylelint-standard","lang":"bash","label":"yarn"},{"cmd":"pnpm add stylelint-standard","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"peer dependency for linting functionality","package":"stylelint","optional":false}],"imports":[{"note":"ESM-only since v1","wrong":"const stylelintStandard = require('stylelint-standard')","symbol":"default","correct":"import stylelintStandard from 'stylelint-standard'"},{"note":"Named export for config object","wrong":"const config = require('stylelint-standard').config","symbol":"config","correct":"import { config } from 'stylelint-standard'"},{"note":"Requires ESM import syntax","wrong":"const { rules } = require('stylelint-standard')","symbol":"rules","correct":"import { rules } from 'stylelint-standard'"}],"quickstart":{"code":"import stylelint from 'stylelint';\nimport stylelintStandard from 'stylelint-standard';\n\nconst result = await stylelint.lint({\n  code: '.foo { color: red; }',\n  config: stylelintStandard,\n});\n\nconsole.log(result.results[0].warnings);","lang":"typescript","description":"Lint a CSS string using the standard configuration and log warnings."},"warnings":[{"fix":"Update config import to use default export instead of array.","message":"Breaking change in v1.0.0: Config format changed from array to object.","severity":"breaking","affected_versions":">=1.0.0"},{"fix":"Remove deprecated rule from custom config.","message":"Deprecated: Use of deprecated rule 'block-no-empty' removed in v1.2.0, replaced by 'declaration-block-no-duplicate-properties'.","severity":"deprecated","affected_versions":">=1.2.0"},{"fix":"Run stylelint with --fix flag for auto-correction.","message":"stylelint-standard does not include auto-fix rules; you must use stylelint --fix separately.","severity":"gotcha","affected_versions":">=0.0.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Use stylelintStandard directly as config: stylelint.lint({ config: stylelintStandard })","cause":"Using default import incorrectly as a function instead of configuration object.","error":"TypeError: stylelintStandard is not a function"},{"fix":"Run 'npm install stylelint-standard' and ensure correct import.","cause":"Package not installed or import path incorrect.","error":"Cannot find module 'stylelint-standard'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}