{"_id":"@alex-e-leon/stylelint-value-no-unknown-custom-properties","_rev":"1-4208475bf171b114f7107adcda2da06d","name":"@alex-e-leon/stylelint-value-no-unknown-custom-properties","dist-tags":{"latest":"4.0.2"},"versions":{"4.0.1":{"name":"@alex-e-leon/stylelint-value-no-unknown-custom-properties","version":"4.0.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":"dist/index.cjs","module":"dist/index.mjs","exports":{".":{"import":"./dist/index.mjs","require":"./dist/index.cjs","default":"./dist/index.mjs"}},"scripts":{"prepublishOnly":"npm test","pretest":"rollup -c .rollup.js --silent","test":"npm run test:js && npm run test:jest","test:js":"eslint src/*.js --cache --ignore-path .gitignore --quiet","test:jest":"jest"},"engines":{"node":"^12 || ^14 || >=16"},"dependencies":{"postcss-value-parser":"^4.2.0","resolve":"^1.22.0"},"devDependencies":{"@babel/core":"^7.17.8","@babel/eslint-parser":"^7.17.0","@babel/plugin-transform-runtime":"^7.17.0","@babel/preset-env":"^7.16.11","@rollup/plugin-babel":"^5.3.1","eslint":"^8.11.0","eslint-config-dev":"^2.0.0","jest":"^27.5.1","jest-preset-stylelint":"^5.0.1","rollup":"^2.70.1","stylelint":"^14.6.0"},"peerDependencies":{"stylelint":"10 - 14"},"eslintConfig":{"env":{"es6":true,"node":true},"extends":"eslint:recommended","rules":{"quotes":["error","single"],"comma-dangle":["error","always-multiline"],"semi":["error","always"],"curly":"error","brace-style":"error","indent":["error","tab",{"SwitchCase":1}],"radix":"error"},"parserOptions":{"ecmaVersion":2020,"sourceType":"module"},"root":true},"jest":{"preset":"jest-preset-stylelint"},"keywords":["stylelint","stylelint-plugin","css","custom","properties","property","variables","variable","vars","var","csswg","w3c","unknown"],"gitHead":"d6df4f6452ebbfead4d512baaba98f094a62491c","_id":"@alex-e-leon/stylelint-value-no-unknown-custom-properties@4.0.1","_nodeVersion":"16.18.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-2mF3PoGD8K5Khdb7l0v2z9Sm+0cwoB3DsqD1CrwKXhS5OdhVOBwRbcNl8nuV7Frr7rCzRdjQZGRZ+Gc7DnhvMg==","shasum":"83d68a2bd6596a23811d851a8f18ba31f35f2e38","tarball":"https://registry.npmjs.org/@alex-e-leon/stylelint-value-no-unknown-custom-properties/-/stylelint-value-no-unknown-custom-properties-4.0.1.tgz","fileCount":6,"unpackedSize":32497,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD+77XJi/66gHzLrvS14qyA7i1fQBGw4/lgD/0yPknQsQIgEKvnDIikUJd/sfEKD4oGSK8KUDJ/NSTCgaJ+kUvLfTU="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkPJxaACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqxOA/+PSzXalbAe0/K5/mAWbIusDreHVSSZ+hRUt+ZXcJqOIUocyBS\r\nRe5ZCilOhrNb1pegQzy5Gc2Yqozb9b3FS9rTuYLg28AQgN6/OotivNFQLtBU\r\nb27snKd3w3OmgqTzrHJPDAg6L2+x0y/Y5KCF3Ns48Bt2ubVinZ4W0MoBZ2vC\r\nbBvl28zXMA4PE/8S/CuR39WvOryp3Y4UOOw2XgRVPomTXQTrDQaoYBXh3ERL\r\nQ5brMUqF2j1c+fERonHGtwQSSz4JXj1DkZWjwIIh6xHaj2L3T18FZb0rYVAc\r\naPCDTGHk2Qn3pxmTZJfZzwfeW3K3GPb770Cy39saFQNUCjAWAAPYYAGRGBYt\r\nzmlhctf2Iv46IvP2cIV5heedKfx2ChKbDJhTOX1c8gFXYABLAluK/ktQPiW8\r\nMhJuoCrAgj6x/dgTyZkXzZAMREjDYqZnuqa69n99L2FSpFrBGVPbSU/oEPG/\r\nw3sJ4Z1c3SfFHD2TzfjopWwEhlP7YI5TvxRBwqgWj4yErE9CXbeRy8Jowj6+\r\negRTS5uawqntT92wuNIzURbv1mPHdhftVFjthuFStkvT/TMxVXLHvFrwqQ/C\r\nEl2dghllTBxGAjVihWaOw12OZRJCQTZ6nM3tCaCfeCvvgQtGpBhOnkq9SB8g\r\nXOk0I103wdbmjZQqfAOSkESqR5Vfkp95TNE=\r\n=g5AN\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"alex-e-leon","email":"alex@leon.st"},"directories":{},"maintainers":[{"name":"alex-e-leon","email":"alex@leon.st"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/stylelint-value-no-unknown-custom-properties_4.0.1_1681693786377_0.6606553935831299"},"_hasShrinkwrap":false},"4.0.2":{"name":"@alex-e-leon/stylelint-value-no-unknown-custom-properties","version":"4.0.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":"dist/index.cjs","module":"dist/index.mjs","exports":{".":{"import":"./dist/index.mjs","require":"./dist/index.cjs","default":"./dist/index.mjs"}},"scripts":{"prepublishOnly":"npm test","pretest":"rollup -c .rollup.js --silent","test":"npm run test:js && npm run test:jest","test:js":"eslint src/*.js --cache --ignore-path .gitignore --quiet","test:jest":"jest"},"engines":{"node":"^12 || ^14 || >=16"},"dependencies":{"postcss-value-parser":"^4.2.0","resolve":"^1.22.0"},"devDependencies":{"@babel/core":"^7.17.8","@babel/eslint-parser":"^7.17.0","@babel/plugin-transform-runtime":"^7.17.0","@babel/preset-env":"^7.16.11","@rollup/plugin-babel":"^5.3.1","eslint":"^8.11.0","eslint-config-dev":"^2.0.0","jest":"^27.5.1","jest-preset-stylelint":"^5.0.1","rollup":"^2.70.1","stylelint":"^14.6.0"},"peerDependencies":{"stylelint":"10 - 15"},"eslintConfig":{"env":{"es6":true,"node":true},"extends":"eslint:recommended","rules":{"quotes":["error","single"],"comma-dangle":["error","always-multiline"],"semi":["error","always"],"curly":"error","brace-style":"error","indent":["error","tab",{"SwitchCase":1}],"radix":"error"},"parserOptions":{"ecmaVersion":2020,"sourceType":"module"},"root":true},"jest":{"preset":"jest-preset-stylelint"},"keywords":["stylelint","stylelint-plugin","css","custom","properties","property","variables","variable","vars","var","csswg","w3c","unknown"],"gitHead":"c4e54632929b17e822d2df8dd49beada8aeca896","_id":"@alex-e-leon/stylelint-value-no-unknown-custom-properties@4.0.2","_nodeVersion":"16.18.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-+bURAemv63n7id7HpEEXAdIcJldkvf/LMlgrQvuN1UGrG1/zV5n1KbzGIh22XMzGTeZZJXzqYYU+wigszvN+2Q==","shasum":"36158dba13c8086661a3a68790e797f6a0bf1617","tarball":"https://registry.npmjs.org/@alex-e-leon/stylelint-value-no-unknown-custom-properties/-/stylelint-value-no-unknown-custom-properties-4.0.2.tgz","fileCount":6,"unpackedSize":32497,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEbttGi9MgDTAcSJ24/1kkK8zfMnzJGJb4SAufggBLlLAiB6RJ4QZo7X/SHVXvjMC29ZCgcyDeA2eGDpZA7h9yB8/A=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkPJ03ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpWPhAAoVro4S3MXOSr2019/pftqcQT6dJZ+2Aa6Iy/Ffo4FvKgGDlH\r\nZwJyLU4IwTlvaAVGyQzjiYWz9SWNqXStNRNp3JNZd/inZVruQ+mV5h+mdi7C\r\nkzBDYsUnK3o4Z5Rk6Bcf6hBMx96Kj2xcerppz3+UtrrthM752wl2KocQZTdq\r\nJYJ6OmDDilRvrAwEppDvcx7OExNc7g1aFOHjPs4b7CSeyG2OY/wJOWJfc2Kv\r\nwlWQiuyNGyRjSY8nwrzl6mFfsjE7Heh40BQewt+pi+hYL8pwhgwaHSKdrXNc\r\n3vcPimFaiQe5ojtM0QS9dVibQyyy4jmULr6N5S0DKzX8+HLPWsDtRzvhiO7B\r\nAeqbEFN+mvFoTAgidaKngFI69RazaFeaoBsR5gNJAdX3oA9R1Znr0NET8gIZ\r\nIUb14i2XkCUUM3O0hiOsE4/dP4qSc/vMmHNjGZcc8FG/GwBIZJIkDp9T7Ia+\r\nam3B4i91pp8ksH89lsT7EXNdmMqqOEzPf7SdEiRX8r/8vKmVDS6Byy9bk/hE\r\nbpUkogkrtNFRVTGV+NtJjV6Op+CE787+gyQZQVOkEyNBQoY3zkmrkL2iRkKy\r\nxG3yF93J0u40PLfmuK5BuhiK1hy/h6JnfBjZ7kRfzFFTtuAeLsOTEu5FEw9w\r\nCMggAqcWiyfgd3Z81WjbKT1wfFKBjooueyU=\r\n=kQ7c\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"alex-e-leon","email":"alex@leon.st"},"directories":{},"maintainers":[{"name":"alex-e-leon","email":"alex@leon.st"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/stylelint-value-no-unknown-custom-properties_4.0.2_1681694007705_0.2924987834667352"},"_hasShrinkwrap":false}},"time":{"created":"2023-04-17T01:09:46.275Z","4.0.1":"2023-04-17T01:09:46.605Z","modified":"2023-04-17T01:13:27.985Z","4.0.2":"2023-04-17T01:13:27.871Z"},"maintainers":[{"name":"alex-e-leon","email":"alex@leon.st"}],"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[![test][test-badge]][test-url]\n[![Discord][discord-badge]][discord]\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### resolver\n\nUse this option to configure how the rule solve paths of `@import` rules.\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      \"resolver\": {\n        \"extensions\": [\".css\"], // => default to [\".css\"]\n        \"paths\": [\"./assets/css\", \"./static/css\"] // => paths to look for files, default to []\n        \"moduleDirectories\": [\"node_modules\"] // => modules folder to look for files, default to [\"node_modules\"]\n      }\n    }]\n  }\n}\n```\n\n[discord]: https://discord.gg/bUadyRwkJS\n[discord-badge]: https://shields.io/badge/Discord-5865F2?logo=discord&logoColor=white\n[test-badge]: https://github.com/csstools/stylelint-value-no-unknown-custom-properties/actions/workflows/test.yml/badge.svg\n[test-url]: https://github.com/csstools/stylelint-value-no-unknown-custom-properties/actions/workflows/test.yml\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://stylelint.io/user-guide/configure/\n[Stylelint Value No Unknown Custom Properties]: https://github.com/csstools/stylelint-value-no-unknown-custom-properties\n","readmeFilename":"README.md"}