{"_id":"@adp-psych/stylelint-value-no-unknown-custom-properties","_rev":"2-8ddabbdf05e4fcaa3f47f5db52ec6aa8","name":"@adp-psych/stylelint-value-no-unknown-custom-properties","dist-tags":{"latest":"3.0.1-2"},"versions":{"3.0.1-1":{"name":"@adp-psych/stylelint-value-no-unknown-custom-properties","version":"3.0.1-1","description":"A stylelint rule to disallow usage of unknown custom properties","author":{"name":"Jonathan Neal","email":"jonathantneal@hotmail.com"},"license":"CC0-1.0","repository":{"type":"git","url":"git+https://github.com/csstools/stylelint-value-no-unknown-custom-properties.git"},"homepage":"https://github.com/csstools/stylelint-value-no-unknown-custom-properties#readme","bugs":{"url":"https://github.com/csstools/stylelint-value-no-unknown-custom-properties/issues"},"main":"index.js","module":"index.mjs","scripts":{"prepublishOnly":"npm test","pretest":"rollup -c .rollup.js --silent","test":"npm run test:js && npm run test:tape","test:js":"eslint src/*.js --cache --ignore-path .gitignore --quiet","test:tape":"tape ./.tape.js | tap-spec"},"engines":{"node":">=10.0.0"},"dependencies":{"postcss-values-parser":"^6.0.2"},"devDependencies":{"@babel/core":"^7.17.5","@babel/plugin-syntax-dynamic-import":"^7.8.3","@babel/preset-env":"^7.16.11","babel-eslint":"^10.1.0","eslint":"^7.16.0","eslint-config-dev":"^2.0.0","pre-commit":"^1.2.2","rollup":"^2.70.0","rollup-plugin-babel":"^4.4.0","stylelint":"^14.5.3","stylelint-test-rule-tape":"^0.2.0","tap-spec":"^5.0.0"},"peerDependencies":{"stylelint":"^14.5.3"},"eslintConfig":{"extends":"dev","parser":"babel-eslint"},"keywords":["stylelint","stylelint-plugin","css","custom","properties","property","variables","variable","vars","var","csswg","w3c","unknown"],"publishConfig":{"access":"public"},"gitHead":"6f963bfc81cd37e1221f180f3fdaea081e18648d","_id":"@adp-psych/stylelint-value-no-unknown-custom-properties@3.0.1-1","_nodeVersion":"17.7.2","_npmVersion":"8.5.5","dist":{"integrity":"sha512-x5L39vIThm14wvaqwwyl6sB6lTbY6UjiLLdCS2cGcZsIWlFyCOhoVMn28FDSyUAAC/ExyHNbmGQ/eA/Qob3Gyw==","shasum":"ed384c6886f64757e79daa57ed10bba0dc576ebc","tarball":"https://registry.npmjs.org/@adp-psych/stylelint-value-no-unknown-custom-properties/-/stylelint-value-no-unknown-custom-properties-3.0.1-1.tgz","fileCount":7,"unpackedSize":64643,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiODnIACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpWQA/+LzJAawjJhuP6+mvKrOPVAJQuliQecovXiSFh9zaBdrbY2ymM\r\nc+9nA0V5PnLO4skcgQ1AWw9hSMh5IWG6Ppg0A8HS2QNYjxy4WAgMUvkO7Hh6\r\nsBRjvVp786pN4nnaA3cF4NGvf2NnMVKMdyJ0ruB0kN6nuBqj1u+rz96FxV3j\r\nVKAbLP2NQZRvHddAkNUsJo1Up38ufcL4g0dlqQQHFjcLOGmo6n3V5C2lZPeG\r\nGGZN0LBzsOXuxt3RPYfg0MZbQdCivKWF1miBh5rYdJzzsMlVggVIvHPACYlp\r\n8cDUQmsfc0ltpe0knHq6cibf9GILqFZ9qqwGscT6R++MtZoPhVqqDXs2i+Ny\r\nWVicCu3wHJCkgkfDeiA41392KWi1f0M4MVqvIlIXQZaxWxBoDON4Z/BnBXTP\r\n1ZhXknEUI851DsR2n6+l/dCZV071f3QUThGO5sg3Rn4QtH8/++cxwiio8qes\r\nCCseSr6ZKn7DghKCfLKltVUcXcTteab2wqpomg3stWTCujmUY+PulpOtG3f4\r\nmEGSFswaAwRe5GnhLHB7PKNBCPm4eHpoggQNdfxcZSzkEnaaUHFiRonkO0GX\r\nG6/2sNgmRnK6TzHDm5G+JKvRdDgbyGMrndo/o+G84jjs9gyQ+onj2qhbyCli\r\nxsSejfI11ptEs/OueUU6oRmeGKKnZmc+zpg=\r\n=BB05\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCWx9oDyd9YE22PgniasnzyBbGxldq5DoSMPDzOHj18OgIgOTcxpHE8N8VryxtJhiViOQdjTdLvtMoeByAkTbHVeTk="}]},"_npmUser":{"name":"adp-psych","email":"anthony.dipietro@research.uwa.edu.au"},"directories":{},"maintainers":[{"name":"adp-psych","email":"anthony.dipietro@research.uwa.edu.au"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/stylelint-value-no-unknown-custom-properties_3.0.1-1_1647851976807_0.29495458136857966"},"_hasShrinkwrap":false},"3.0.1-2":{"name":"@adp-psych/stylelint-value-no-unknown-custom-properties","version":"3.0.1-2","description":"A stylelint rule to disallow usage of unknown custom properties","author":{"name":"Jonathan Neal","email":"jonathantneal@hotmail.com"},"license":"CC0-1.0","repository":{"type":"git","url":"git+https://github.com/csstools/stylelint-value-no-unknown-custom-properties.git"},"homepage":"https://github.com/csstools/stylelint-value-no-unknown-custom-properties#readme","bugs":{"url":"https://github.com/csstools/stylelint-value-no-unknown-custom-properties/issues"},"main":"index.js","module":"index.mjs","scripts":{"prepublishOnly":"npm test","pretest":"rollup -c .rollup.js --silent","test":"npm run test:js && npm run test:tape","test:js":"eslint src/*.js --cache --ignore-path .gitignore --quiet","test:tape":"tape ./.tape.js | tap-spec"},"engines":{"node":">=14"},"dependencies":{"postcss-values-parser":"^6.0.2"},"devDependencies":{"@babel/core":"^7.17.5","@babel/plugin-syntax-dynamic-import":"^7.8.3","@babel/preset-env":"^7.16.11","babel-eslint":"^10.1.0","eslint":"^7.16.0","eslint-config-dev":"^2.0.0","pre-commit":"^1.2.2","rollup":"^2.70.0","rollup-plugin-babel":"^4.4.0","stylelint":"^14.5.3","stylelint-test-rule-tape":"^0.2.0","tap-spec":"^5.0.0"},"peerDependencies":{"stylelint":"^14.5.3"},"eslintConfig":{"extends":"dev","parser":"babel-eslint"},"keywords":["stylelint","stylelint-plugin","css","custom","properties","property","variables","variable","vars","var","csswg","w3c","unknown"],"publishConfig":{"access":"public"},"gitHead":"8fdf3a2b009bc8da107fb0abc91025c5e251978d","_id":"@adp-psych/stylelint-value-no-unknown-custom-properties@3.0.1-2","_nodeVersion":"17.7.2","_npmVersion":"8.5.5","dist":{"integrity":"sha512-Gl2sHivvIwSteId3TS7JTAHVyzGlW3haRHUWYoC0G8JMqAK3OoopCMmwNjqCoWlabv8MNCnQjyOCbuKINyWc7w==","shasum":"81d7c5981c0b6f86125e7dcf616f7e186480f217","tarball":"https://registry.npmjs.org/@adp-psych/stylelint-value-no-unknown-custom-properties/-/stylelint-value-no-unknown-custom-properties-3.0.1-2.tgz","fileCount":7,"unpackedSize":64639,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiODsbACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmol5g//ejiDK79e/uF8qGsCuXHVZk/by0oZMtmortp9Gnz75KrUw9P+\r\nG5kf9vultEeW4II3WsaHQsJx0dqKLVey2N2HWwlg/Mpf8Y9GCz7TpTEPLAci\r\nFHebkNRy+LgZtsXgYf76tRQoxUz3o6MPLsJlpeElJkBBHEYuAgjg+rYGquxm\r\nFtdBkRMqwlU6xO7rtsddoj1MdfHNV+rRehDdrG1yroGOMkrT0jGCDQIonAJG\r\n4ijpETqgOnWTYotugZafIqDOKrKgMfGHfggTU47F2lNXONsI9jB2+26oJI6p\r\nLWLh1uyXHVioC4yd9ku1+X2Bdm8hikWJQmDwObQXnnSDXnfvTLeE9LQxIlbk\r\nqG+AZJvugoxw0sF6HsGDAD++a7NYjhP4L+WBOyMnKul8h7jbzppjNWgzwZTx\r\nINjs/iOIc2kconbNZOPywJ6FteMsmKeSiNbVDmyITHU7IuTmMHPlsp+LjpJs\r\nz5Aju06MVwGIN9XqTGOR96hdCTHRGXyeKwvziNOumxKufQGPqu6ZuAZ3eyrC\r\n6wzYff0vE0HgDJGVon/tK7l4B01k58lVoRgh+kr8Z7CHS/10iqHo5/H4TWsB\r\ncLryS6dI7h6tKPuiolKcnzcnr/KovTm58YjKDvyZF752FzHe4pSOnRWhz/aX\r\nzWBkWZfJ2PF280gFCRq0fMhY+R+XKsb4s9w=\r\n=Vgyr\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBP8ju7r/zUWN9smaUT7Hm6Iuqft4GqZWKqA36ksTIARAiEA1ugTFz4887bazKhf40i9EWPkT8Ea5MhUAk/ZmPZd2TY="}]},"_npmUser":{"name":"adp-psych","email":"anthony.dipietro@research.uwa.edu.au"},"directories":{},"maintainers":[{"name":"adp-psych","email":"anthony.dipietro@research.uwa.edu.au"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/stylelint-value-no-unknown-custom-properties_3.0.1-2_1647852315704_0.550319212500834"},"_hasShrinkwrap":false}},"time":{"created":"2022-03-21T08:39:36.735Z","3.0.1-1":"2022-03-21T08:39:36.962Z","modified":"2022-04-04T11:36:38.443Z","3.0.1-2":"2022-03-21T08:45:15.866Z"},"maintainers":[{"name":"adp-psych","email":"anthony.dipietro@research.uwa.edu.au"}],"description":"A stylelint rule to disallow usage of unknown custom properties","homepage":"https://github.com/csstools/stylelint-value-no-unknown-custom-properties#readme","keywords":["stylelint","stylelint-plugin","css","custom","properties","property","variables","variable","vars","var","csswg","w3c","unknown"],"repository":{"type":"git","url":"git+https://github.com/csstools/stylelint-value-no-unknown-custom-properties.git"},"author":{"name":"Jonathan Neal","email":"jonathantneal@hotmail.com"},"bugs":{"url":"https://github.com/csstools/stylelint-value-no-unknown-custom-properties/issues"},"license":"CC0-1.0","readme":"# Stylelint Value No Unknown Custom Properties [<img src=\"https://jonathantneal.github.io/stylelint-logo.svg\" alt=\"stylelint\" width=\"90\" height=\"90\" align=\"right\">][stylelint]\n\n[![NPM Version][npm-img]][npm-url]\n[![Build Status][cli-img]][cli-url]\n[![Support Chat][git-img]][git-url]\n\n[Stylelint Value No Unknown Custom Properties] is a [stylelint] rule to disallow usage of\nunknown custom properties.\n\n## Usage\n\nAdd [stylelint] and [Stylelint Value No Unknown Custom Properties] to your project.\n\n```bash\nnpm install stylelint stylelint-value-no-unknown-custom-properties --save-dev\n```\n\nAdd [Stylelint Value No Unknown Custom Properties] to your [stylelint configuration].\n\n```js\n{\n  \"plugins\": [\n    \"stylelint-value-no-unknown-custom-properties\"\n  ],\n  \"rules\": {\n    \"csstools/value-no-unknown-custom-properties\": true || false || null\n  }\n}\n```\n\n## Options\n\n### true\n\nIf the first option is `true`, then [Stylelint Value No Unknown Custom Properties]\nrequires all custom properties to be known, and the following patterns are\n_not_ considered violations:\n\n```css\n:root {\n  --brand-blue: #33f;\n}\n\n.example {\n  color: var(--brand-blue);\n}\n```\n\n```css\n.example {\n  color: var(--brand-blue);\n}\n\n.some-other-class {\n  --brand-blue: #33f;\n}\n```\n\n```css\n:root {\n  --brand-blue: #33f;\n  --brand-color: var(--brand-blue);\n}\n```\n\nWhile the following patterns are considered violations:\n\n```css\n.example {\n  color: var(--brand-blue);\n}\n```\n\n```css\n:root {\n  --brand-color: var(--brand-blue);\n}\n```\n\nCustom Properties can be imported using the second option.\n\n### false\n\nIf the first option is `false` or `null`, then\n[Stylelint Value No Unknown Custom Properties] does nothing.\n\n---\n\n### importFrom\n\nWhen the first option is `true`, then the second option can specify sources\nwhere Custom Properties should be imported from by using an `importFrom` key.\nThese imports might be CSS, JS, and JSON files, functions, and directly passed\nobjects.\n\n```js\n// .stylelintrc\n{\n  \"plugins\": [\n    \"stylelint-value-no-unknown-custom-properties\"\n  ],\n  \"rules\": {\n    \"csstools/value-no-unknown-custom-properties\": [true, {\n      \"importFrom\": [\n        \"path/to/file.css\", // => :root { --brand-blue: #33f; }\n        \"path/to/file.json\" // => { \"custom-properties\": { \"--brand-blue\": \"#33f\" } }\n      ]\n    }]\n  }\n}\n```\n\n[cli-img]: https://img.shields.io/travis/csstools/stylelint-value-no-unknown-custom-properties.svg\n[cli-url]: https://travis-ci.org/csstools/stylelint-value-no-unknown-custom-properties\n[git-img]: https://img.shields.io/badge/support-chat-blue.svg\n[git-url]: https://gitter.im/stylelint/stylelint\n[npm-img]: https://img.shields.io/npm/v/stylelint-value-no-unknown-custom-properties.svg\n[npm-url]: https://www.npmjs.com/package/stylelint-value-no-unknown-custom-properties\n\n[stylelint]: https://github.com/stylelint/stylelint\n[stylelint configuration]: https://github.com/stylelint/stylelint/blob/master/docs/user-guide/configuration.md#readme\n[Stylelint Value No Unknown Custom Properties]: https://github.com/csstools/stylelint-value-no-unknown-custom-properties\n","readmeFilename":"README.md"}