{"_id":"@contactlab/stylelint-config","_rev":"6-764433232c01c0a07228946b69c074fe","name":"@contactlab/stylelint-config","dist-tags":{"latest":"3.0.0"},"versions":{"1.0.0":{"name":"@contactlab/stylelint-config","version":"1.0.0","keywords":["config","contactlab","stylelint","stylelint-config"],"author":{"name":"Contactlab"},"license":"Apache-2.0","_id":"@contactlab/stylelint-config@1.0.0","maintainers":[{"name":"contactlab-developer","email":"developer@contactlab.com"},{"name":"gabdevx","email":"gabdevx@gmail.com"},{"name":"stefano_magrassi","email":"stefano.magrassi@gmail.com"}],"homepage":"https://contactlab.github.io/stylelint-config","bugs":{"url":"https://github.com/contactlab/stylelint-config/issues"},"dist":{"shasum":"f587217915dec2a0375cf4961f171913721297bf","tarball":"https://registry.npmjs.org/@contactlab/stylelint-config/-/stylelint-config-1.0.0.tgz","fileCount":7,"integrity":"sha512-YTZ4zHb8N9GpAJ7qo2xAALlu/lc7GRtSRSG+lOpjhh/l1izXnQVKbPHo9W8AE38gMOHk0G5/h43EK7w+oYP+ag==","signatures":[{"sig":"MEUCIEq29a4XMwJhrxIrgzMbzGJ5yMgvMnULmg4bXYWlI9qgAiEAjSWkv+cTR6vSbKTh5984SqW7BVeCzhqAaef4Kr7tKr4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":32752,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj739tACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmprFg//ahHJdy46BJkryHv23NrFT52eSNoDpRYDckxvSSalsfwY+vqL\r\nv8XCUqjvJOPYh9gSWSQ07vRnKUoQYXQM1fA80FM0FkecxddWOGqTG1uv6+3Y\r\nUEtcMDHEsJT+4JvWUe5b1hSXwpaT2QYHiBh7YY82LH6fUVTieubsMXaPTdy4\r\nRqTZTeWw8HUUr3JUIvmtM6PW4clS+P0GYzFVJzCv3R9IklAJgP0W1Qg/Ug2q\r\nzJ9n7jGlg8BepKcXgDG5UEFO7ws+rfnvK33iUxGHVDvvDwzdROgdkA+kNgzv\r\nhTMgAbQ5gU2cbIesbw5dr3uWxRjBGUnVIR/fLz79DuoXgUfxMiGI5LCj8itS\r\n09EZ4PJSlXlSHYXvBWQF1Gvk/0mGNz4FYJ6oadJnpGhmcES9SWZ8f8bV9dHh\r\nTN9aiDh+B0UPcir6pMv8Wa1HhcfFz4lCljoWFKAIOA6Ui3+6ebYHcUZ0scsm\r\nvATJEF7j+SOfGYsxlaemoSOrKUqPcRwnwExN899TgQ5/uWHIzaxQU80OmY2c\r\nUN0fIIO/2Sf2B5uBBb2IAlkNMusSn3VES4juhMTdIZNOT0jWqn5csl1L4k5k\r\nHOQcj75qS6LabpInH48Xhlc2mTLmBYBEEx/oDJn/9IqqLsLhMf5hfnlMLVIP\r\nPAolxpZEr1Ag0XQZpLkTQ2mBnGm4kilXqcw=\r\n=lROT\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","types":"index.d.ts","engines":{"npm":">= 8","node":">= 16"},"gitHead":"50c0366c46c6c3628f9dfa45515df7925b529547","scripts":{"lint":"eslint . --ext .js,.ts","test":"npm run test:css && npm run test:styled","build":"tsc -p tsconfig.build.json","check":"tsc","cleanup":"rm -f *.d.ts index.js styled.js","prepare":"husky install","pretest":"npm run lint && tsc --noEmit false","prebuild":"npm run cleanup","test:css":"stylelint ./test/styles.css --config ./test/.stylelintrc.css.json","test:styled":"stylelint ./test/styles.js --config ./test/.stylelintrc.styled.json","prepublishOnly":"npm run build"},"_npmUser":{"name":"stefano_magrassi","email":"stefano.magrassi@gmail.com"},"repository":{"url":"git+https://github.com/contactlab/stylelint-config.git","type":"git"},"_npmVersion":"9.4.2","description":"Contactlab Stylelint modular configuration - inspired by @giotramu/stylelint-config","directories":{},"_nodeVersion":"16.19.1","dependencies":{"stylelint-order":"^6.0.2","postcss-styled-syntax":"^0.3.2","stylelint-config-standard":"^30.0.1","stylelint-declaration-block-no-ignored-properties":"^2.7.0"},"_hasShrinkwrap":false,"devDependencies":{"husky":"^8.0.3","eslint":"^8.34.0","prettier":"^2.8.4","stylelint":"^15.0.0","typescript":"^4.9.5","pretty-quick":"^3.1.3","eslint-config-prettier":"^8.6.0","eslint-config-contactlab":"^9.0.0"},"peerDependencies":{"stylelint":"^15.0.0"},"_npmOperationalInternal":{"tmp":"tmp/stylelint-config_1.0.0_1676640109546_0.3686091434595895","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"@contactlab/stylelint-config","version":"2.0.0","keywords":["config","contactlab","stylelint","stylelint-config"],"author":{"name":"Contactlab"},"license":"Apache-2.0","_id":"@contactlab/stylelint-config@2.0.0","maintainers":[{"name":"contactlab-developer","email":"developer@contactlab.com"},{"name":"gabdevx","email":"gabdevx@gmail.com"},{"name":"stefano_magrassi","email":"stefano.magrassi@gmail.com"}],"homepage":"https://contactlab.github.io/stylelint-config","bugs":{"url":"https://github.com/contactlab/stylelint-config/issues"},"dist":{"shasum":"13daf345a940da52b1a0af865570ec37e27e3d6d","tarball":"https://registry.npmjs.org/@contactlab/stylelint-config/-/stylelint-config-2.0.0.tgz","fileCount":7,"integrity":"sha512-cUrCrXJomkAMHqAuqV57IMqGiOJyguMm6lC3j+eNILZOUJHstiVNr9C54xjJL/3Nbij4ufN4XfUjDx66HfHVlg==","signatures":[{"sig":"MEUCIQDchOi37JxaM6UcIPjw88zt07cKVbrxi0K/ERUnVqnBEwIge1ETAiFCodsLhESWxEBXhUcVEAJ2lPY6M/DhYJsMAtw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":32890},"main":"index.js","types":"index.d.ts","engines":{"npm":">= 8","node":">= 16"},"gitHead":"ec6c2986794de017f0827988b1a2b15b941c4ebb","scripts":{"lint":"eslint . --ext .js,.ts","test":"npm run test:css && npm run test:styled","build":"tsc -p tsconfig.build.json","check":"tsc","cleanup":"rm -f *.d.ts index.js styled.js","prepare":"husky install","pretest":"npm run check -- --noEmit false && npm run lint","prebuild":"npm run cleanup","test:css":"stylelint ./test/styles.css --config ./test/.stylelintrc.css.json","test:styled":"stylelint ./test/styles.js --config ./test/.stylelintrc.styled.json","prepublishOnly":"npm run build"},"_npmUser":{"name":"stefano_magrassi","email":"stefano.magrassi@gmail.com"},"repository":{"url":"git+https://github.com/contactlab/stylelint-config.git","type":"git"},"_npmVersion":"10.2.5","description":"Contactlab Stylelint modular configuration - inspired by @giotramu/stylelint-config","directories":{},"lint-staged":{"*":"prettier --ignore-unknown --write"},"_nodeVersion":"20.10.0","dependencies":{"stylelint-order":"^6.0.2","postcss-styled-syntax":"^0.6.2","stylelint-config-standard":"^36.0.0","stylelint-declaration-block-no-ignored-properties":"^2.7.0"},"_hasShrinkwrap":false,"devDependencies":{"husky":"^8.0.3","eslint":"^8.34.0","prettier":"^3.0.0","stylelint":"^16.1.0","typescript":"^5.2.2","lint-staged":"^15.0.1","eslint-config-prettier":"^9.0.0","eslint-config-contactlab":"^12.0.0"},"peerDependencies":{"stylelint":"^16.1.0"},"_npmOperationalInternal":{"tmp":"tmp/stylelint-config_2.0.0_1704366914498_0.9928215912630689","host":"s3://npm-registry-packages"}},"3.0.0":{"name":"@contactlab/stylelint-config","version":"3.0.0","keywords":["config","contactlab","stylelint","stylelint-config"],"author":{"name":"Contactlab"},"license":"Apache-2.0","_id":"@contactlab/stylelint-config@3.0.0","maintainers":[{"name":"stefano_magrassi","email":"stefano.magrassi@gmail.com"},{"name":"gabdevx","email":"gabdevx@gmail.com"},{"name":"contactlab-developer","email":"developer@contactlab.com"},{"name":"ernesto2312","email":"ernesto.colombo@contactlab.com"}],"homepage":"https://contactlab.github.io/stylelint-config","bugs":{"url":"https://github.com/contactlab/stylelint-config/issues"},"dist":{"shasum":"63a07ece0d6f3ffe38b6eb2c43abd1efd7adcc39","tarball":"https://registry.npmjs.org/@contactlab/stylelint-config/-/stylelint-config-3.0.0.tgz","fileCount":7,"integrity":"sha512-Par3gf0qFv1jgXdFsCtj7Y1yQMgSAC2NndNbtjTXuUBPlFTsjrqQZrXWrc0HoJ9l7+K6ATz83HhtLS6gwXYomw==","signatures":[{"sig":"MEYCIQDYzWG1ch/t9BSrahnyCL/+5TwItbjvXtAIz08xKC1z+AIhAMDv7YUg3eDPwdFKTbJ2GABAgbJA0kKOaWye7FZsLCkD","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":33029},"main":"index.js","types":"index.d.ts","engines":{"npm":">= 9","node":">= 20"},"gitHead":"61e2772cc9549142fe55d5c63a50c65dc84fe8ab","scripts":{"lint":"ESLINT_USE_FLAT_CONFIG=false eslint . --ext .js,.ts","test":"npm run test:css && npm run test:styled","build":"tsc -p tsconfig.build.json","check":"tsc","cleanup":"rm -f *.d.ts index.js styled.js","prepare":"husky","pretest":"npm run check -- --noEmit false && npm run lint","prebuild":"npm run cleanup","test:css":"stylelint ./test/styles.css --config ./test/.stylelintrc.css.json","test:styled":"stylelint ./test/styles.js --config ./test/.stylelintrc.styled.json","prepublishOnly":"npm run build"},"_npmUser":{"name":"gabdevx","email":"gabdevx@gmail.com"},"repository":{"url":"git+https://github.com/contactlab/stylelint-config.git","type":"git"},"_npmVersion":"11.6.2","description":"Contactlab Stylelint modular configuration - inspired by @giotramu/stylelint-config","directories":{},"lint-staged":{"*":"prettier --ignore-unknown --write"},"_nodeVersion":"20.19.0","dependencies":{"stylelint-order":"^7.0.0","postcss-styled-syntax":"^0.7.1","stylelint-config-standard":"^39.0.1","stylelint-declaration-block-no-ignored-properties":"^2.7.0"},"_hasShrinkwrap":false,"devDependencies":{"husky":"^9.1.7","eslint":"^9.39.1","prettier":"^3.6.2","stylelint":"^16.25.0","typescript":"^5.9.3","lint-staged":"^16.2.6","eslint-config-prettier":"^10.1.8","eslint-config-contactlab":"^13.0.0"},"peerDependencies":{"stylelint":"^16.1.0"},"_npmOperationalInternal":{"tmp":"tmp/stylelint-config_3.0.0_1763563385042_0.8590948285943518","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2023-02-17T13:21:49.367Z","modified":"2025-11-19T15:38:42.527Z","1.0.0":"2023-02-17T13:21:49.757Z","2.0.0":"2024-01-04T11:15:14.659Z","3.0.0":"2025-11-19T14:43:05.230Z"},"bugs":{"url":"https://github.com/contactlab/stylelint-config/issues"},"author":{"name":"Contactlab"},"license":"Apache-2.0","homepage":"https://contactlab.github.io/stylelint-config","keywords":["config","contactlab","stylelint","stylelint-config"],"repository":{"url":"git+https://github.com/contactlab/stylelint-config.git","type":"git"},"description":"Contactlab Stylelint modular configuration - inspired by @giotramu/stylelint-config","maintainers":[{"email":"stefano.magrassi@gmail.com","name":"stefano_magrassi"},{"email":"gabdevx@gmail.com","name":"gabdevx"},{"email":"developer@contactlab.com","name":"contactlab-developer"},{"email":"ernesto.colombo@contactlab.com","name":"ernesto2312"},{"email":"zanzo83@gmail.com","name":"rukbat_npm"},{"email":"riccardo.sartori87@gmail.com","name":"riccardo.sartori"}],"readme":"# @contactlab/stylelint-config\n\n![Build Status](https://github.com/contactlab/stylelint-config/workflows/Node%20CI/badge.svg)\n\nContactlab [Stylelint](https://stylelint.io) extensible and sharable configuration.\n\nInspired by [`@giotramu/stylelint-config`](https://github.com/giotramu/stylelint-config) package.\n\nIt supports CSS or PostCSS syntax and CSS-in-JS solutions, like [Styled Components](https://github.com/styled-components/styled-components), [Emotion.js](https://github.com/emotion-js/emotion) or [Linaria](https://github.com/callstack/linaria).\n\n> **Warning!** This package needs Stylelint [v15](https://stylelint.io/migration-guide/to-15) (or higher) which has deprecated some rules, removed Nodejs v12 support and made Prettier integration smoother.\n\n## Usage\n\nInstall the configuration as a npm package:\n\n```sh\nnpm i -D @contactlab/stylelint-config\n\n# --- OR ---\n\nyarn add -D @contactlab/stylelint-config\n```\n\nand then add it as extension in your Stylelint configuration file:\n\n```json\n{\n  \"extends\": [\"@contactlab/stylelint-config\"]\n}\n```\n\nIn order to have support for **CSS-in-JS** tools, use the `styled` config as extension:\n\n```json\n{\n  \"extends\": [\"@contactlab/stylelint-config/styled\"]\n}\n```\n\n## CSS properties order\n\nStylelint Config sorts the CSS property declarations by grouping them in the following order:\n\n1. Positioning\n2. Box Model\n3. Typography\n4. Visual\n5. Animation\n6. Misc\n\n## Extend the configuration\n\nYou can extend the configuration or overrides some rules. More details about the loading mechanism are available in [the Stylelint documentation](https://stylelint.io/user-guide/configuration/#extends).\n\n```json\n{\n  \"extends\": \"@contactlab/stylelint-config\",\n  \"rules\": {\n    \"selector-id-pattern\": null,\n    \"selector-class-pattern\": null\n  }\n}\n```\n\n## Integrating Stylelint with IDEs/editors\n\n### Visual Studio Code\n\n1. install the [Stylelint plugin](https://marketplace.visualstudio.com/items?itemname=stylelint.vscode-stylelint);\n2. add the following code to your `.vscode/settings.json`:\n\n   ```jsonc\n   {\n     \"css.validate\": false,\n     \"scss.validate\": false,\n     \"editor.codeActionsOnSave\": {\n       \"source.fixAll.stylelint\": true\n     },\n     \"stylelint.validate\": [\"css\"] // Add the type of file you want to validate (e.g. [\"css\", \"scss\", \"typescript\", \"typescriptreact\"])\n   }\n   ```\n\n3. highlight the CSS-in-JS syntax with the [Styled Components plugin](https://marketplace.visualstudio.com/items?itemname=styled-components.vscode-styled-components) (**optional**)\n\n## References\n\n- [postcss-styled-syntax](https://github.com/hudochenkov/postcss-styled-syntax)\n- [stylelint-declaration-block-no-ignored-properties](https://github.com/kristerkari/stylelint-declaration-block-no-ignored-properties)\n- [stylelint-order](https://github.com/hudochenkov/stylelint-order)\n","readmeFilename":"README.md"}