{"name":"stylelint-config-standard","version":"37.0.0","keywords":["stylelint","stylelint-config","standard"],"author":{"name":"Stylelint"},"license":"MIT","_id":"stylelint-config-standard@37.0.0","homepage":"https://github.com/stylelint/stylelint-config-standard#readme","bugs":{"url":"https://github.com/stylelint/stylelint-config-standard/issues"},"dist":{"shasum":"55e75c7215d5398b096d2f75af6a16693c18532d","tarball":"http://registry-npm.ywwl.com/stylelint-config-standard/download/stylelint-config-standard-37.0.0.tgz","fileCount":4,"integrity":"sha512-+6eBlbSTrOn/il2RlV0zYGQwRTkr+WtzuVSs1reaWGObxnxLpbcspCUYajVQHonVfxVw2U+h42azGhrBvcg8OA==","signatures":[{"sig":"MEUCIQDuGBGRY0gXiDIVME3t1FJW2K+hB25UOFyiqJ4fnf++NwIgNtudvx5MIYGNI9Ss75Tou70GaYgz/1UUabSGW18dg5M=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8792,"size":3544,"noattachment":false,"key":"/stylelint-config-standard/-/stylelint-config-standard-37.0.0.tgz"},"main":"index.js","engines":{"node":">=18.12.0"},"funding":[{"url":"https://opencollective.com/stylelint","type":"opencollective"},{"url":"https://github.com/sponsors/stylelint","type":"github"}],"gitHead":"aca7a9f8ee2eb822b54c2f344000ce66a69b86f6","scripts":{"lint":"npm-run-all --parallel lint:*","test":"node --test","watch":"npm test --ignore-scripts -- --watch","format":"prettier . --write","lint:js":"eslint","lint:md":"remark . --quiet --frail --ignore-path .gitignore","prepare":"husky","pretest":"npm run lint","release":"np --no-release-draft","lint:formatting":"prettier . --check"},"_npmUser":{"name":"jeddy3","email":"npm@richardhallows.com"},"prettier":"@stylelint/prettier-config","repository":{"url":"git+https://github.com/stylelint/stylelint-config-standard.git","type":"git"},"_npmVersion":"10.9.1","description":"Standard shareable config for Stylelint","directories":{},"lint-staged":{"*.js":"eslint --cache --fix","*.{js,md,yml}":"prettier --write"},"_nodeVersion":"22.11.0","dependencies":{"stylelint-config-recommended":"^15.0.0"},"remarkConfig":{"plugins":["@stylelint/remark-preset"]},"_hasShrinkwrap":false,"devDependencies":{"np":"^10.1.0","husky":"^9.1.7","eslint":"^9.17.0","prettier":"^3.4.2","stylelint":"^16.13.0","remark-cli":"^12.0.1","lint-staged":"^15.3.0","npm-run-all":"^4.1.5","eslint-config-stylelint":"^23.0.0","@stylelint/remark-preset":"^5.1.1","@stylelint/prettier-config":"^3.0.0"},"peerDependencies":{"stylelint":"^16.13.0"},"_npmOperationalInternal":{"tmp":"tmp/stylelint-config-standard_37.0.0_1736684151487_0.7695326310452832","host":"s3://npm-registry-packages-npm-production"},"readme":"# stylelint-config-standard\n\n[![NPM version](https://img.shields.io/npm/v/stylelint-config-standard.svg)](https://www.npmjs.org/package/stylelint-config-standard) [![Build Status](https://github.com/stylelint/stylelint-config-standard/workflows/CI/badge.svg)](https://github.com/stylelint/stylelint-config-standard/actions)\n\n> The standard shareable config for Stylelint.\n\nIt extends [`stylelint-config-recommended`](https://github.com/stylelint/stylelint-config-recommended) and turns on additional rules to enforce modern conventions found in the [CSS specifications](https://www.w3.org/Style/CSS/current-work) and within [Baseline Widely Available](https://web.dev/baseline).\n\nTo see the rules that this config uses, please read the [config itself](./index.js).\n\n## Example\n\n```css\n@import url(\"foo.css\");\n@import url(\"bar.css\");\n\n@custom-media --foo (min-width: 30em);\n\n/**\n * Multi-line comment\n */\n\n:root {\n  --brand-red: hsl(5deg 10% 40%);\n}\n\n/* Single-line comment */\n\n.class-foo:not(a, div) {\n  margin: 0;\n  top: calc(100% - 2rem);\n}\n\n/* Flush single line comment */\n@media (width >= 60em) {\n  #id-bar {\n    /* Flush to parent comment */\n    --offset: 0px;\n\n    color: #fff;\n    font-family: Helvetica, \"Arial Black\", sans-serif;\n    left: calc(var(--offset) + 50%);\n  }\n\n  /* Flush nested single line comment */\n  a::after {\n    display: block;\n    content: \"→\";\n    background-image: url(\"x.svg\");\n  }\n}\n\n@keyframes fade-in {\n  from {\n    opacity: 0;\n  }\n\n  to {\n    opacity: 1;\n  }\n}\n```\n\n_Note: the config is tested against this example, as such the example contains plenty of CSS syntax and features._\n\n## Installation\n\n```bash\nnpm install stylelint-config-standard --save-dev\n```\n\n## Usage\n\nSet your Stylelint config to:\n\n```json\n{\n  \"extends\": \"stylelint-config-standard\"\n}\n```\n\n### Extending the config\n\nAdd a `\"rules\"` key to your config, then add your overrides and additions there.\n\nYou can turn off rules by setting its value to `null`. For example:\n\n```json\n{\n  \"extends\": \"stylelint-config-standard\",\n  \"rules\": {\n    \"selector-class-pattern\": null\n  }\n}\n```\n\nOr lower the severity of a rule to a warning using the `severity` secondary option. For example:\n\n```json\n{\n  \"extends\": \"stylelint-config-standard\",\n  \"rules\": {\n    \"property-no-vendor-prefix\": [\n      true,\n      {\n        \"severity\": \"warning\"\n      }\n    ]\n  }\n}\n```\n\nOr to add a rule, For example, the `unit-allowed-list` one:\n\n```json\n{\n  \"extends\": \"stylelint-config-standard\",\n  \"rules\": {\n    \"unit-allowed-list\": [\"em\", \"rem\", \"s\"]\n  }\n}\n```\n\nWe recommend adding more of [Stylelint's rules](https://stylelint.io/user-guide/rules/) to your config as these rules need to be configured to suit your specific needs.\n\n## [Changelog](CHANGELOG.md)\n\n## [License](LICENSE)\n","publish_time":1736684151785,"maintainers":[{"email":"npm@richardhallows.com","name":"jeddy3"},{"email":"aleks@hudochenkov.com","name":"hudochenkov"},{"email":"stephen@netweb.com.au","name":"ntwb"},{"email":"otameshiyo23@gmail.com","name":"ota-meshi"},{"email":"ybiquitous@gmail.com","name":"ybiquitous"},{"email":"matt@matthewwang.me","name":"mattxwang"},{"email":"romainmenke@gmail.com","name":"romainmenke"}],"_cnpm_publish_time":1736684151785,"dist-tags":{"latest":"41.0.0"}}