{"_id":"stylelint-config-html","_rev":"2796176","name":"stylelint-config-html","description":"The shareable HTML config for Stylelint.","dist-tags":{"latest":"1.1.0"},"maintainers":[{"name":"ota-meshi","email":"otameshiyo23@gmail.com"}],"time":{"modified":"2022-07-12T09:45:16.000Z","created":"2021-10-19T08:20:24.782Z","1.1.0":"2022-07-07T13:08:40.896Z","1.0.0":"2021-10-22T08:31:00.472Z","0.0.2":"2021-10-20T23:35:01.759Z","0.0.1":"2021-10-19T08:20:24.782Z"},"users":{},"author":{"name":"Yosuke Ota","url":"https://github.com/ota-meshi"},"repository":{"type":"git","url":"git+https://github.com/ota-meshi/stylelint-config-html.git"},"versions":{"1.1.0":{"name":"stylelint-config-html","version":"1.1.0","description":"The shareable HTML config for Stylelint.","keywords":["stylelint","stylelint-config","html","vue","svelte","php","xml"],"main":"index.js","engines":{"node":"^12 || >=14"},"scripts":{"test":"mocha \"tests/lib/**/*.js\" --reporter dot --timeout 60000","lint":"eslint .","eslint-fix":"eslint . --fix","preversion":"npm test && git add ."},"peerDependencies":{"stylelint":">=14.0.0","postcss-html":"^1.0.0"},"devDependencies":{"@ota-meshi/eslint-plugin":"^0.11.0","eslint":"^8.0.0","eslint-config-prettier":"^8.3.0","eslint-plugin-eslint-comments":"^3.2.0","eslint-plugin-json-schema-validator":"^3.0.0","eslint-plugin-jsonc":"^2.0.0","eslint-plugin-node":"^11.1.0","eslint-plugin-prettier":"^4.0.0","eslint-plugin-regexp":"^1.5.0","eslint-plugin-vue":"^9.0.0","eslint-plugin-yml":"^1.0.0","mocha":"^10.0.0","prettier":"^2.4.1"},"repository":{"type":"git","url":"git+https://github.com/ota-meshi/stylelint-config-html.git"},"author":{"name":"Yosuke Ota","url":"https://github.com/ota-meshi"},"funding":"https://github.com/sponsors/ota-meshi","license":"MIT","bugs":{"url":"https://github.com/ota-meshi/stylelint-config-html/issues"},"homepage":"https://github.com/ota-meshi/stylelint-config-html#readme","gitHead":"03e0782420b551c5a3d0ac9cd200b436869f59dc","_id":"stylelint-config-html@1.1.0","_nodeVersion":"16.15.1","_npmVersion":"8.11.0","dist":{"shasum":"999db19aea713b7ff6dde92ada76e4c1bd812b66","size":3495,"noattachment":false,"key":"/stylelint-config-html/-/stylelint-config-html-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/stylelint-config-html/download/stylelint-config-html-1.1.0.tgz"},"_npmUser":{"name":"ota-meshi","email":"otameshiyo23@gmail.com"},"directories":{},"maintainers":[{"name":"ota-meshi","email":"otameshiyo23@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/stylelint-config-html_1.1.0_1657199320732_0.6025129813030701"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-07-07T13:15:15.949Z","publish_time":1657199320896,"_cnpm_publish_time":1657199320896},"1.0.0":{"name":"stylelint-config-html","version":"1.0.0","description":"The shareable HTML config for Stylelint.","keywords":["stylelint","stylelint-config","html","vue","svelte","php","xml"],"main":"index.js","engines":{"node":"^12 || >=14"},"scripts":{"test":"mocha \"tests/lib/**/*.js\" --reporter dot --timeout 60000","lint":"eslint .","eslint-fix":"eslint . --fix","preversion":"npm test && git add ."},"peerDependencies":{"stylelint":">=14.0.0","postcss-html":"^1.0.0"},"devDependencies":{"@ota-meshi/eslint-plugin":"^0.10.0","eslint":"^8.0.0","eslint-config-prettier":"^8.3.0","eslint-plugin-eslint-comments":"^3.2.0","eslint-plugin-json-schema-validator":"^1.2.24","eslint-plugin-jsonc":"^1.7.0","eslint-plugin-node":"^11.1.0","eslint-plugin-prettier":"^4.0.0","eslint-plugin-regexp":"~1.4.0","eslint-plugin-vue":"^7.18.0","eslint-plugin-yml":"^0.10.1","mocha":"^9.1.3","prettier":"^2.4.1"},"repository":{"type":"git","url":"git+https://github.com/ota-meshi/stylelint-config-html.git"},"author":{"name":"Yosuke Ota","url":"https://github.com/ota-meshi"},"license":"MIT","bugs":{"url":"https://github.com/ota-meshi/stylelint-config-html/issues"},"homepage":"https://github.com/ota-meshi/stylelint-config-html#readme","gitHead":"941bd42e1aa30bfbb6cde14493d36b7487263eb6","_id":"stylelint-config-html@1.0.0","_nodeVersion":"14.18.1","_npmVersion":"6.14.15","dist":{"shasum":"172acb996ee4c854e8c670fcff77ff0d98d3bec2","size":3174,"noattachment":false,"key":"/stylelint-config-html/-/stylelint-config-html-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/stylelint-config-html/download/stylelint-config-html-1.0.0.tgz"},"_npmUser":{"name":"ota-meshi","email":"otameshiyo23@gmail.com"},"directories":{},"maintainers":[{"name":"ota-meshi","email":"otameshiyo23@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/stylelint-config-html_1.0.0_1634891460324_0.34071727927558615"},"_hasShrinkwrap":false,"publish_time":1634891460472,"_cnpm_publish_time":1634891460472,"_cnpmcore_publish_time":"2021-12-16T20:10:14.270Z"},"0.0.2":{"name":"stylelint-config-html","version":"0.0.2","description":"The shareable HTML config for Stylelint.","keywords":["stylelint","stylelint-config","html","vue","svelte","php","xml"],"main":"index.js","engines":{"node":"^12 || >=14"},"scripts":{"test":"mocha \"tests/lib/**/*.js\" --reporter dot --timeout 60000","lint":"eslint .","eslint-fix":"eslint . --fix","preversion":"npm test && git add ."},"dependencies":{"postcss-html":"^1.0.0-0"},"peerDependencies":{"stylelint":">=14.0.0-0"},"devDependencies":{"@ota-meshi/eslint-plugin":"^0.10.0","eslint":"^8.0.0","eslint-config-prettier":"^8.3.0","eslint-plugin-eslint-comments":"^3.2.0","eslint-plugin-json-schema-validator":"^1.2.24","eslint-plugin-jsonc":"^1.7.0","eslint-plugin-node":"^11.1.0","eslint-plugin-prettier":"^4.0.0","eslint-plugin-regexp":"~1.4.0","eslint-plugin-vue":"^7.18.0","eslint-plugin-yml":"^0.10.1","mocha":"^9.1.3","prettier":"^2.4.1"},"repository":{"type":"git","url":"git+https://github.com/ota-meshi/stylelint-config-html.git"},"author":{"name":"Yosuke Ota","url":"https://github.com/ota-meshi"},"license":"MIT","bugs":{"url":"https://github.com/ota-meshi/stylelint-config-html/issues"},"homepage":"https://github.com/ota-meshi/stylelint-config-html#readme","gitHead":"2640fe453b49c3e3755fc6c58fa4fb2b9c7f2f44","_id":"stylelint-config-html@0.0.2","_nodeVersion":"14.18.0","_npmVersion":"6.14.15","dist":{"shasum":"02b083b71bdb883debc9a48c4b534b71a6977814","size":3175,"noattachment":false,"key":"/stylelint-config-html/-/stylelint-config-html-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/stylelint-config-html/download/stylelint-config-html-0.0.2.tgz"},"_npmUser":{"name":"ota-meshi","email":"otameshiyo23@gmail.com"},"directories":{},"maintainers":[{"name":"ota-meshi","email":"otameshiyo23@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/stylelint-config-html_0.0.2_1634772901613_0.40558140632015016"},"_hasShrinkwrap":false,"publish_time":1634772901759,"_cnpm_publish_time":1634772901759,"_cnpmcore_publish_time":"2021-12-16T20:10:14.500Z"},"0.0.1":{"name":"stylelint-config-html","version":"0.0.1","description":"The shareable HTML config for Stylelint.","keywords":["stylelint","stylelint-config","html","vue","svelte","php","xml"],"main":"index.js","engines":{"node":"^12 || >=14"},"scripts":{"test":"mocha \"tests/lib/**/*.js\" --reporter dot --timeout 60000","lint":"eslint .","eslint-fix":"eslint . --fix","preversion":"npm test && git add ."},"dependencies":{"postcss-html":"^1.0.0-0"},"peerDependencies":{"stylelint":">=14.0.0"},"devDependencies":{"@ota-meshi/eslint-plugin":"^0.10.0","eslint":"^8.0.0","eslint-config-prettier":"^8.3.0","eslint-plugin-eslint-comments":"^3.2.0","eslint-plugin-json-schema-validator":"^1.2.24","eslint-plugin-jsonc":"^1.7.0","eslint-plugin-node":"^11.1.0","eslint-plugin-prettier":"^4.0.0","eslint-plugin-regexp":"~1.4.0","eslint-plugin-vue":"^7.18.0","eslint-plugin-yml":"^0.10.1","mocha":"^9.1.3","prettier":"^2.4.1"},"repository":{"type":"git","url":"git+https://github.com/ota-meshi/stylelint-config-html.git"},"author":{"name":"Yosuke Ota","url":"https://github.com/ota-meshi"},"license":"MIT","bugs":{"url":"https://github.com/ota-meshi/stylelint-config-html/issues"},"homepage":"https://github.com/ota-meshi/stylelint-config-html#readme","gitHead":"3178448c2aef2f06fb0a1215ba0c71f90f599dba","_id":"stylelint-config-html@0.0.1","_nodeVersion":"14.18.0","_npmVersion":"6.14.15","dist":{"shasum":"bcc4f50db4a221d0b9de98351eacc324015a1e25","size":2658,"noattachment":false,"key":"/stylelint-config-html/-/stylelint-config-html-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/stylelint-config-html/download/stylelint-config-html-0.0.1.tgz"},"_npmUser":{"name":"ota-meshi","email":"otameshiyo23@gmail.com"},"directories":{},"maintainers":[{"name":"ota-meshi","email":"otameshiyo23@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/stylelint-config-html_0.0.1_1634631624629_0.3029013335682722"},"_hasShrinkwrap":false,"publish_time":1634631624782,"_cnpm_publish_time":1634631624782,"_cnpmcore_publish_time":"2021-12-16T20:10:14.728Z"}},"readme":"# stylelint-config-html\n\n[![NPM license](https://img.shields.io/npm/l/stylelint-config-html.svg)](https://www.npmjs.com/package/stylelint-config-html)\n[![NPM version](https://img.shields.io/npm/v/stylelint-config-html.svg)](https://www.npmjs.com/package/stylelint-config-html)\n[![NPM downloads](https://img.shields.io/npm/dw/stylelint-config-html.svg)](http://www.npmtrends.com/stylelint-config-html)\n[![NPM downloads](https://img.shields.io/npm/dm/stylelint-config-html.svg)](http://www.npmtrends.com/stylelint-config-html)\n[![Build Status](https://github.com/ota-meshi/stylelint-config-html/workflows/CI/badge.svg?branch=main)](https://github.com/ota-meshi/stylelint-config-html/actions?query=workflow%3ACI)\n\n> The shareable HTML (and HTML-like) config for [Stylelint].\n\nThis config bundles the [`postcss-html` custom syntax](https://github.com/ota-meshi/postcss-html) and configures it.  \nIf you use this config in your Stylelint config, HTML, XML, [Vue], [Svelte], [Astro], and [PHP] files will be parsable. The Stylelint rules you have configured will be able to check these files.\n\n> **Requirements**\n>\n> - [Stylelint] v14.0.0 and above  \n>   This config cannot be used with Stylelint v13 and below. Also, if you are using Stylelint v13, you do not need to use this config.\n\nStylelint v14 and above has been changed to not bundle non-CSS parsing such as HTML. The goal of this config is to make Stylelint v14 work with HTML (and HTML-like) files, like Stylelint v13.\n\nTo see this config, please read the [config itself](/index.js).\n\n## :couple: Related Packages\n\n### [stylelint-config-recommended-vue](https://github.com/ota-meshi/stylelint-config-recommended-vue) / [stylelint-config-standard-vue](https://github.com/ota-meshi/stylelint-config-standard-vue)\n\nThe shareable config for [Vue](https://v3.vuejs.org/).  \nIf you want to check [Vue] files, consider using this as well. It is useful because it contains the config for [Vue](https://v3.vuejs.org/).\n\n### [postcss-html](https://github.com/ota-meshi/postcss-html)\n\n[PostCSS] syntax for parsing HTML (and HTML-like).  \nIf you have problems with parses using this config, please open the new issue in that repository.\n\n## :cd: Installation\n\n```shell\nnpm install --save-dev postcss-html stylelint-config-html\n```\n\n## :book: Usage\n\nSet your `stylelint` config to:\n\n```json\n{\n  \"extends\": \"stylelint-config-html\"\n}\n```\n\nNote: This config enables HTML (and HTML-like) syntax parsing.\n\nIf you want to enable parsing for only specific language, use each language config as follows:\n\n```json\n{\n  \"extends\": [\n    \"stylelint-config-html/html\",\n    \"stylelint-config-html/xml\",\n    \"stylelint-config-html/vue\",\n    \"stylelint-config-html/svelte\",\n    \"stylelint-config-html/astro\",\n    \"stylelint-config-html/php\"\n  ]\n}\n```\n\n## :computer: Editor integrations\n\n### Visual Studio Code\n\nUse the [stylelint.vscode-stylelint](https://marketplace.visualstudio.com/items?itemName=stylelint.vscode-stylelint) extension that [Stylelint] provides officially.\n\nYou have to configure the `stylelint.validate` option of the extension to check `.html`,  `.vue`,  `.svelte`, and HTML-like files, because the extension does not check the `*.html` and HTML-like file by default.\n\nExample **.vscode/settings.json**:\n\n```jsonc\n{\n  \"stylelint.validate\": [\n      ...,\n      // ↓ Add \"html\" language.\n      \"html\",\n      // ↓ Add \"vue\" language.\n      \"vue\",\n      // ↓ Add \"svelte\" language.\n      \"svelte\",\n      // ↓ Add \"astro\" language.\n      \"astro\",\n  ]\n```\n\n## :lock: License\n\nSee the [LICENSE](LICENSE) file for license rights and limitations (MIT).\n\n[Stylelint]: https://stylelint.io/\n[Vue]: https://v3.vuejs.org/guide/single-file-component.html\n[Svelte]: https://svelte.dev/docs#Component_format\n[Astro]: https://docs.astro.build/core-concepts/astro-components/\n[PHP]: https://www.php.net/manual/en/intro-whatis.php\n[PostCss]: https://github.com/postcss/postcss\n","_attachments":{},"homepage":"https://github.com/ota-meshi/stylelint-config-html#readme","bugs":{"url":"https://github.com/ota-meshi/stylelint-config-html/issues"},"license":"MIT"}