{"_id":"@carlosjeurissen/stylelint-csstree-validator","_rev":"6-a34ce7cd1aa43ccb3a27664170a14621","name":"@carlosjeurissen/stylelint-csstree-validator","dist-tags":{"latest":"3.3.1"},"versions":{"3.1.0":{"name":"@carlosjeurissen/stylelint-csstree-validator","version":"3.1.0","keywords":["stylelint-plugin","stylelint","csstree","css","validator","syntax"],"author":{"name":"Roman Dvornov","email":"rdvornov@gmail.com"},"license":"MIT","_id":"@carlosjeurissen/stylelint-csstree-validator@3.1.0","maintainers":[{"name":"carlosjeurissen","email":"npm@jeurissen.co"}],"dist":{"shasum":"91886a4da2243825cce06b2b214a86b9de098c12","tarball":"https://registry.npmjs.org/@carlosjeurissen/stylelint-csstree-validator/-/stylelint-csstree-validator-3.1.0.tgz","fileCount":34,"integrity":"sha512-/2k0fxAW1ys7UB329TkmFJyaeE9P+EDN9N2ZkEf9hdSrNpPxVu/NN8RNXWgYblTg6gpHUYZehly0C6btu0ZZpg==","signatures":[{"sig":"MEUCICUYH0BLmUBTHAhEvD1z+ELUUFLbqGmMJCumYNJlBDmvAiEA50RuiW4hUBhs977sHiVcpstalSl1mE0h7cJmJa2unB0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":60171},"main":"./cjs/index.cjs","type":"module","engines":{"npm":">=7.0.0","node":"^14.13.0 || >=15.0.0"},"exports":{".":{"import":"./lib/index.js","require":"./cjs/index.cjs"},"./package.json":"./package.json"},"scripts":{"lint":"eslint lib test","test":"mocha test --reporter ${REPORTER:-progress}","build":"npm run esm-to-cjs","coverage":"c8 --reporter=lcovonly npm test","test:cjs":"mocha cjs-test --reporter ${REPORTER:-progress}","esm-to-cjs":"node scripts/esm-to-cjs","build-and-test":"npm run esm-to-cjs-and-test","prepublishOnly":"npm run lint && npm test && npm run build-and-test","esm-to-cjs-and-test":"npm run esm-to-cjs && npm run test:cjs"},"_npmUser":{"name":"carlosjeurissen","email":"npm@jeurissen.co"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","repository":{"url":"https://github.com/carlosjeurissen/stylelint-validator.git","type":"git"},"description":"Stylelint plugin to validate CSS syntax","directories":{},"licenseText":"Copyright (C) 2016-2021 by Roman Dvornov\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n","dependencies":{"css-tree":"^2.3.1"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^9.1.0","mocha":"^10.2.0","eslint":"^8.56.0","rollup":"^2.79.1","postcss":"^8.4.35","stylelint":"^16.2.1","postcss-less":"^6.0.0","postcss-scss":"^4.0.9"},"peerDependencies":{"stylelint":">=16.0.0"},"_npmOperationalInternal":{"tmp":"tmp/stylelint-csstree-validator_3.1.0_1707480208052_0.09183795144111362","host":"s3://npm-registry-packages"}},"3.2.0":{"name":"@carlosjeurissen/stylelint-csstree-validator","version":"3.2.0","keywords":["stylelint-plugin","stylelint","csstree","css","validator","syntax"],"author":{"name":"Roman Dvornov","email":"rdvornov@gmail.com"},"license":"MIT","_id":"@carlosjeurissen/stylelint-csstree-validator@3.2.0","maintainers":[{"name":"carlosjeurissen","email":"npm@jeurissen.co"}],"dist":{"shasum":"9f4c66c6e9362b67d8330f7843c18a6b697cc324","tarball":"https://registry.npmjs.org/@carlosjeurissen/stylelint-csstree-validator/-/stylelint-csstree-validator-3.2.0.tgz","fileCount":36,"integrity":"sha512-14N9f5aT+Ae6Kx6j6y2RtvbUFCIbb5eqa/y7vmCD3pjsC/EDSMDIblnYF83Spug7UtLXMh0DYvNF5VHmeZ9Iog==","signatures":[{"sig":"MEUCIHjqZFd6Hholnqu8K1j0Y86C3uY6hD3k5LnFku/KEzHlAiEAy9nulVIfHqW5+bov6YjwFCMjq4VqbGqbqmjP4qkVeGA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":72575},"main":"./cjs/index.cjs","type":"module","engines":{"npm":">=7.0.0","node":"^14.13.0 || >=15.0.0"},"exports":{".":{"import":"./lib/index.js","require":"./cjs/index.cjs"},"./package.json":"./package.json"},"scripts":{"lint":"eslint lib test","test":"mocha test --reporter ${REPORTER:-progress}","build":"npm run esm-to-cjs","coverage":"c8 --reporter=lcovonly npm test","test:cjs":"mocha cjs-test --reporter ${REPORTER:-progress}","esm-to-cjs":"node scripts/esm-to-cjs","build-and-test":"npm run esm-to-cjs-and-test","prepublishOnly":"npm run lint && npm test && npm run build-and-test","esm-to-cjs-and-test":"npm run esm-to-cjs && npm run test:cjs"},"_npmUser":{"name":"carlosjeurissen","email":"npm@jeurissen.co"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","repository":{"url":"https://github.com/carlosjeurissen/stylelint-validator.git","type":"git"},"description":"Stylelint plugin to validate CSS syntax","directories":{},"licenseText":"Copyright (C) 2016-2021 by Roman Dvornov\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n","dependencies":{"css-tree":"^2.3.1","stylelint":"16.6.1"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^10.1.3","mocha":"^11.1.0","eslint":"^8.57.0","rollup":"^2.79.1","postcss":"^8.5.3","postcss-less":"^6.0.0","postcss-scss":"^4.0.9"},"_npmOperationalInternal":{"tmp":"tmp/stylelint-csstree-validator_3.2.0_1741261956779_0.2725682069584785","host":"s3://npm-registry-packages-npm-production"}},"3.2.1":{"name":"@carlosjeurissen/stylelint-csstree-validator","version":"3.2.1","keywords":["stylelint-plugin","stylelint","csstree","css","validator","syntax"],"author":{"name":"Roman Dvornov","email":"rdvornov@gmail.com"},"license":"MIT","_id":"@carlosjeurissen/stylelint-csstree-validator@3.2.1","maintainers":[{"name":"carlosjeurissen","email":"npm@jeurissen.co"}],"dist":{"shasum":"e8fd61212af676b25ac0d7b3e40b40d1079ed47c","tarball":"https://registry.npmjs.org/@carlosjeurissen/stylelint-csstree-validator/-/stylelint-csstree-validator-3.2.1.tgz","fileCount":36,"integrity":"sha512-+Bn98VlBd8y2Gw/uM+2w7H8x3Nli+MxmogjTjsP9tsDY/FBLkp4dpmAGcAFNwB8CGaHWSLFkxmBhAkU8iw1LwQ==","signatures":[{"sig":"MEQCIHmpUafEfu4rqnfhl6dlBJnQMI6NZ5tWvDo5uyq3FMzFAiBVLgu5xu8tDuaXoTjChWsvO9QHBK+z1WQJJZnRfhWgZQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":72706},"main":"./cjs/index.cjs","type":"module","engines":{"npm":">=7.0.0","node":"^14.13.0 || >=15.0.0"},"exports":{".":{"import":"./lib/index.js","require":"./cjs/index.cjs"},"./package.json":"./package.json"},"scripts":{"lint":"eslint lib test","test":"mocha test --reporter ${REPORTER:-progress}","build":"npm run esm-to-cjs","coverage":"c8 --reporter=lcovonly npm test","test:cjs":"mocha cjs-test --reporter ${REPORTER:-progress}","esm-to-cjs":"node scripts/esm-to-cjs","build-and-test":"npm run esm-to-cjs-and-test","prepublishOnly":"npm run lint && npm test && npm run build-and-test","esm-to-cjs-and-test":"npm run esm-to-cjs && npm run test:cjs"},"_npmUser":{"name":"carlosjeurissen","email":"npm@jeurissen.co"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","repository":{"url":"https://github.com/carlosjeurissen/stylelint-validator.git","type":"git"},"description":"Stylelint plugin to validate CSS syntax","directories":{},"licenseText":"Copyright (C) 2016-2021 by Roman Dvornov\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n","dependencies":{"css-tree":"^2.3.1"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^10.1.3","mocha":"^11.1.0","eslint":"^8.57.0","rollup":"^2.79.1","postcss":"^8.5.3","stylelint":"16.6.1","postcss-less":"^6.0.0","postcss-scss":"^4.0.9"},"peerDependencies":{"stylelint":">=16.0.0"},"_npmOperationalInternal":{"tmp":"tmp/stylelint-csstree-validator_3.2.1_1741262949120_0.0474583607373138","host":"s3://npm-registry-packages-npm-production"}},"3.3.0":{"name":"@carlosjeurissen/stylelint-csstree-validator","version":"3.3.0","keywords":["stylelint-plugin","stylelint","csstree","css","validator","syntax"],"author":{"name":"Roman Dvornov","email":"rdvornov@gmail.com"},"license":"MIT","_id":"@carlosjeurissen/stylelint-csstree-validator@3.3.0","maintainers":[{"name":"carlosjeurissen","email":"npm@jeurissen.co"}],"dist":{"shasum":"a6ce779ce05114376729c29e7474e3671ee338e8","tarball":"https://registry.npmjs.org/@carlosjeurissen/stylelint-csstree-validator/-/stylelint-csstree-validator-3.3.0.tgz","fileCount":38,"integrity":"sha512-yR/JDI5uUTEHQknxRZLVyM3oLDlVyJivct2u6ad5z+U0C+lfgU90JJdFrJu8R4o9Dwd02Tct1LSUdtwqXgsgsg==","signatures":[{"sig":"MEUCIQCCntCl76j1DmNqT92afrBzFEbM1jdkTvov4KH6T1FaAgIgZpTcqPXgQmegfB8hqYV+sZRrLVnPlcudyZ5yYfnclZc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":85088},"main":"./cjs/index.cjs","type":"module","engines":{"npm":">=7.0.0","node":"^14.13.0 || >=15.0.0"},"exports":{".":{"import":"./lib/index.js","require":"./cjs/index.cjs"},"./package.json":"./package.json"},"scripts":{"lint":"eslint lib test","test":"mocha test --reporter ${REPORTER:-progress}","build":"npm run esm-to-cjs","coverage":"c8 --reporter=lcovonly npm test","test:cjs":"mocha cjs-test --reporter ${REPORTER:-progress}","esm-to-cjs":"node scripts/esm-to-cjs","build-and-test":"npm run esm-to-cjs-and-test","prepublishOnly":"npm run lint && npm test && npm run build-and-test","esm-to-cjs-and-test":"npm run esm-to-cjs && npm run test:cjs"},"_npmUser":{"name":"carlosjeurissen","email":"npm@jeurissen.co"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","repository":{"url":"https://github.com/carlosjeurissen/stylelint-validator.git","type":"git"},"description":"Stylelint plugin to validate CSS syntax","directories":{},"licenseText":"Copyright (C) 2016-2021 by Roman Dvornov\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n","dependencies":{"css-tree":"^2.3.1","stylelint":"^16.0.0"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^10.1.3","mocha":"^11.1.0","eslint":"^8.57.0","rollup":"^2.79.1","postcss":"^8.5.3","postcss-less":"^6.0.0","postcss-scss":"^4.0.9"},"_npmOperationalInternal":{"tmp":"tmp/stylelint-csstree-validator_3.3.0_1768556620279_0.8357446115822473","host":"s3://npm-registry-packages-npm-production"}},"3.3.1":{"name":"@carlosjeurissen/stylelint-csstree-validator","version":"3.3.1","description":"Stylelint plugin to validate CSS syntax","repository":{"type":"git","url":"https://github.com/carlosjeurissen/stylelint-validator.git"},"author":{"name":"Roman Dvornov","email":"rdvornov@gmail.com"},"license":"MIT","type":"module","main":"./cjs/index.cjs","exports":{".":{"import":"./lib/index.js","require":"./cjs/index.cjs"},"./package.json":"./package.json"},"keywords":["stylelint-plugin","stylelint","csstree","css","validator","syntax"],"scripts":{"test":"mocha test --reporter ${REPORTER:-progress}","test:cjs":"mocha cjs-test --reporter ${REPORTER:-progress}","lint":"eslint lib test","build":"npm run esm-to-cjs","build-and-test":"npm run esm-to-cjs-and-test","esm-to-cjs":"node scripts/esm-to-cjs","esm-to-cjs-and-test":"npm run esm-to-cjs && npm run test:cjs","coverage":"c8 --reporter=lcovonly npm test","prepublishOnly":"npm run lint && npm test && npm run build-and-test"},"engines":{"node":"^14.13.0 || >=15.0.0","npm":">=7.0.0"},"dependencies":{"css-tree":"^2.3.1","stylelint":"^16.0.0"},"devDependencies":{"c8":"^10.1.3","eslint":"^8.57.0","mocha":"^11.1.0","postcss":"^8.5.3","postcss-less":"^6.0.0","postcss-scss":"^4.0.9","rollup":"^2.79.1"},"licenseText":"Copyright (C) 2016-2021 by Roman Dvornov\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n","_id":"@carlosjeurissen/stylelint-csstree-validator@3.3.1","dist":{"shasum":"5e932a7322b23db86b73bd6d7904127daf1232ec","integrity":"sha512-4HIPu71inDljLkj1m7UKBKKJtrMOXbNdW1mohFykDhWdpNQIe32ZFStxUXx6YsalrJj1i4A489qM4H2zXweB3w==","tarball":"https://registry.npmjs.org/@carlosjeurissen/stylelint-csstree-validator/-/stylelint-csstree-validator-3.3.1.tgz","fileCount":34,"unpackedSize":60783,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIHOdB1VkXKhOCtIra2v3xmEHU3IkVgg2diRQifUbWfloAiEAw4YF5xc9TnkApN/1K3Z7w1lCJ5MSOzN7r2fh7fiSH7M="}]},"_npmUser":{"name":"carlosjeurissen","email":"npm@jeurissen.co"},"directories":{},"maintainers":[{"name":"carlosjeurissen","email":"npm@jeurissen.co"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/stylelint-csstree-validator_3.3.1_1773086636448_0.43888029672356343"},"_hasShrinkwrap":false}},"time":{"created":"2024-02-09T12:03:27.937Z","modified":"2026-03-09T20:03:56.770Z","3.1.0":"2024-02-09T12:03:28.274Z","3.2.0":"2025-03-06T11:52:36.927Z","3.2.1":"2025-03-06T12:09:09.315Z","3.3.0":"2026-01-16T09:43:40.421Z","3.3.1":"2026-03-09T20:03:56.655Z"},"author":{"name":"Roman Dvornov","email":"rdvornov@gmail.com"},"license":"MIT","keywords":["stylelint-plugin","stylelint","csstree","css","validator","syntax"],"repository":{"type":"git","url":"https://github.com/carlosjeurissen/stylelint-validator.git"},"description":"Stylelint plugin to validate CSS syntax","maintainers":[{"name":"carlosjeurissen","email":"npm@jeurissen.co"}],"readme":"[![NPM version](https://img.shields.io/npm/v/stylelint-csstree-validator.svg)](https://www.npmjs.com/package/stylelint-csstree-validator)\n[![Build Status](https://github.com/csstree/stylelint-validator/actions/workflows/build.yml/badge.svg)](https://github.com/csstree/stylelint-validator/actions/workflows/build.yml)\n[![Coverage Status](https://coveralls.io/repos/github/csstree/stylelint-validator/badge.svg?branch=master)](https://coveralls.io/github/csstree/stylelint-validator?branch=master)\n\n# ⚠️ DEPRECATED: @carlosjeurissen/stylelint-csstree-validator\n\n> **Note** > This fork has been **deprecated** in favor of the [**original-package**](https://www.npmjs.com/package/stylelint-csstree-validator).\n> Please update your dependencies back to the original package to receive future updates and bug fixes.\n\nA [stylelint](http://stylelint.io/) plugin based on [csstree](https://github.com/csstree/csstree) to examinate CSS syntax. It examinates at-rules and declaration values to match W3C specs and browsers extensions. It might be extended in future to validate other parts of CSS.\n\n> ⚠️ Warning ⚠️: The plugin is designed to validate CSS syntax only. However `stylelint` may be configured to use for other syntaxes like Less or Sass. In this case, the plugin avoids examination of expressions containing non-standard syntax, but you need specify which preprocessor is used with the [`syntaxExtensions`](#syntaxextensions) option.\n\n## Install\n\n```\n$ npm install --save-dev stylelint-csstree-validator\n```\n\n## Usage\n\nSetup plugin in [stylelint config](http://stylelint.io/user-guide/configuration/):\n\n```json\n{\n  \"plugins\": [\n    \"stylelint-csstree-validator\"\n  ],\n  \"rules\": {\n    \"csstree/validator\": true\n  }\n}\n```\n\n### Options\n\n- [syntaxExtensions](#syntaxextensions)\n- [atrules](#atrules)\n- [properties](#properties)\n- [types](#types)\n- [ignore](#ignore) (deprecated)\n- [ignoreAtrules](#ignoreatrules)\n- [ignoreProperties](#ignoreproperties)\n- [ignoreValue](#ignorevalue)\n\n#### syntaxExtensions\n\nType: `Array<'sass' | 'less'>` or `false`  \nDefault: `false`\n\nSince the plugin focuses on CSS syntax validation it warns on a syntax which is introducing by preprocessors like Less or Sass. The `syntaxExtensions` option allows to specify that some preprocessor's syntaxes are used for styles so the plugin may avoid warnings when met such a syntax.\n\nBy default the plugin exams styles as pure CSS. To specify that a preprocessor's syntax is used, you must specify an array with the names of these extensions. Currently supported:\n\n- `sass` – declaration values with Sass syntax will be ignored as well as custom at-rules introduced by Saas (e.g. `@if`, `@else`, `@mixin` etc). For now Sass at-rules are allowed with any prelude, but it might be replaced for real syntax definitions in future releases\n- `less` – declaration values with Sass syntax will be ignored as well as `@plugin` at-rule introduced by Less\n\nUsing both syntax extensions is also possible:\n\n```json\n{\n  \"plugins\": [\n    \"stylelint-csstree-validator\"\n  ],\n  \"rules\": {\n    \"csstree/validator\": {\n      \"syntaxExtensions\": [\"sass\", \"less\"]\n    }\n  }\n}\n```\n\n#### atrules\n\nType: `Object`, `false` or `null`  \nDefault: `null`\n\nUsing `false` value for the option disables at-rule validation.\n\nOtherwise the option is using for extending or altering at-rules syntax dictionary. An atrule definition consists of `prelude` and `descriptors`, both are optional. A `prelude` is a single expression that comes after at-rule name. A `descriptors` is a dictionary like [`properties`](#properties) option but for a specific at-rule. [CSS Value Definition Syntax](https://github.com/csstree/csstree/blob/master/docs/definition-syntax.md) is used to define value's syntax. If a definition starts with `|` it is adding to existing definition value if any. See [CSS syntax reference](https://csstree.github.io/docs/syntax/) for default definitions.\n\nThe following example defines new atrule `@example` with a prelude and two descriptors (a descriptor is the same as a declaration but with no `!important` allowed):\n\n```json\n{\n  \"plugins\": [\n    \"stylelint-csstree-validator\"\n  ],\n  \"rules\": {\n    \"csstree/validator\": {\n      \"atrules\": {\n        \"example\": {\n          \"prelude\": \"<custom-ident>\",\n          \"descriptors\": {\n            \"foo\": \"<number>\",\n            \"bar\": \"<color>\"\n          }\n        }\n      }\n    }\n  }\n}\n```\n\n#### properties\n\nType: `Object` or `null`  \nDefault: `null`\n\nAn option for extending or altering properties syntax dictionary. [CSS Value Definition Syntax](https://github.com/csstree/csstree/blob/master/docs/definition-syntax.md) is used to define value's syntax. If a definition starts with `|` it is adding to existing definition value if any. See [CSS syntax reference](https://csstree.github.io/docs/syntax/) for default definitions.\n\nThe following example extends `width` and defines `size` properties:\n\n```json\n{\n  \"plugins\": [\n    \"stylelint-csstree-validator\"\n  ],\n  \"rules\": {\n    \"csstree/validator\": {\n      \"properties\": {\n        \"width\": \"| new-keyword | custom-function(<length>, <percentage>)\",\n        \"size\": \"<length-percentage>\"\n      }\n    }\n  }\n}\n```\n\nUsing `<any-value>` for a property definition is an alternative for `ignoreProperties` option.\n\n```json\n{\n  \"plugins\": [\n    \"stylelint-csstree-validator\"\n  ],\n  \"rules\": {\n    \"csstree/validator\": {\n      \"properties\": {\n        \"my-custom-property\": \"<any-value>\"\n      }\n    }\n  }\n}\n```\n\n#### types\n\nType: `Object` or `null`  \nDefault: `null`\n\nAn option for extending or altering types syntax dictionary. Types are something like a preset which allow reuse a definition across other definitions. [CSS Value Definition Syntax](https://github.com/csstree/csstree/blob/master/docs/definition-syntax.md) is used to define value's syntax. If a definition starts with `|` it is adding to existing definition value if any. See [CSS syntax reference](https://csstree.github.io/docs/syntax/) for default definitions.\n\nThe following example defines a new functional type `my-fn()` and extends `color` type:\n\n```json\n{\n  \"plugins\": [\n    \"stylelint-csstree-validator\"\n  ],\n  \"rules\": {\n    \"csstree/validator\": {\n      \"properties\": {\n        \"some-property\": \"<my-fn()>\"\n      },\n      \"types\": {\n        \"color\": \"| darken(<color>, [ <percentage> | <number [0, 1]> ])\",\n        \"my-fn()\": \"my-fn( <length-percentage> )\"\n      }\n    }\n  }\n}\n```\n\n#### ignore\n\nWorks the same as [`ignoreProperties`](#ignoreproperties) but **deprecated**, use `ignoreProperties` instead.\n\n#### ignoreAtrules\n\nType: `Array<string|RegExp>` or `false`  \nDefault: `false`\n\nDefines a list of at-rules names that should be ignored by the plugin. Ignorance for an at-rule means no validation for its name, prelude or descriptors. The names provided are used for full case-insensitive matching, i.e. a vendor prefix is mandatory and prefixed names should be provided as well if you need to ignore them. You can use [RegExp patterns](#regexp-patterns) in the list as well.\n\n```json\n{\n  \"plugins\": [\n    \"stylelint-csstree-validator\"\n  ],\n  \"rules\": {\n    \"csstree/validator\": {\n      \"ignoreAtrules\": [\"custom-at-rule\", \"-webkit-keyframes\"]\n    }\n  }\n}\n```\n\n#### ignoreProperties\n\nType: `Array<string|RegExp>` or `false`  \nDefault: `false`\n\nDefines a list of property names that should be ignored by the plugin. The names provided are used for full case-insensitive matching, i.e. a vendor prefix is mandatory and prefixed names should be provided as well if you need to ignore them.\n\n```json\n{\n  \"plugins\": [\n    \"stylelint-csstree-validator\"\n  ],\n  \"rules\": {\n    \"csstree/validator\": {\n      \"ignoreProperties\": [\"composes\", \"mask\", \"-webkit-mask\"]\n    }\n  }\n}\n```\n\nIn this example, plugin will not test declarations with a property name `composes`, `mask` or `-webkit-mask`, i.e. no warnings for these declarations would be raised. You can use [RegExp patterns](#regexp-patterns) in the list as well.\n\n#### ignoreValue\n\nType: `RegExp` or `false`  \nDefault: `false`\n\nDefines a pattern for values that should be ignored by the validator.\n\n```json\n{\n  \"plugins\": [\n    \"stylelint-csstree-validator\"\n  ],\n  \"rules\": {\n    \"csstree/validator\": {\n      \"ignoreValue\": \"^pattern$\"\n    }\n  }\n}\n```\n\nFor this example, the plugin will not report warnings for values which is matched the given pattern. However, warnings will still be reported for unknown properties.\n\n## RegExp patterns\n\nIn some cases a more general match patterns are needed instead of exact name matching. In such cases a RegExp pattern can be used. \n\nSince CSS names are an indentifiers which can't contain a special characters used for RegExp's, a distinguishing between a CSS name and RegExp is a trivial problem. When the plugin encounters a string in a ignore pattern list containing any character other than `a-z`, `A-Z`, `0-9` or `-`, it produces a RegExp using the construction `new RegExp('^(' + pattern + ')$', 'i')`. In other words, the pattern should be fully matched case-insensitive.\n\nTo have a full control over a RegExp pattern, a regular RegExp instance or its stringified version (i.e. `\"/pattern/flags?\"`) can be used.\n\n- `\"foo|bar\"` transforms into `/^(foo|bar)$/i`\n- `\"/foo|bar/i\"` transforms into `/foo|bar/i` (note: it's not the same as previous RegExp, since not requires a full match with a name)\n- `/foo|bar/` used as is (note: with no `i` flag a matching will be case-sensitive which makes no sense in CSS)\n\n## License\n\nMIT\n","readmeFilename":"README.md"}