Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

stylelint-config-html

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stylelint-config-html - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

astro.js

46

html.js

@@ -1,27 +0,27 @@

"use strict"
"use strict";
const extensions = [
// https://github.com/Microsoft/vscode/blob/master/extensions/html/package.json
".html",
".htm",
".shtml",
".xhtml",
".xht",
".mdoc",
".jsp",
".asp",
".aspx",
".jshtm",
".volt",
".ejs",
".rhtml",
]
// https://github.com/Microsoft/vscode/blob/master/extensions/html/package.json
".html",
".htm",
".shtml",
".xhtml",
".xht",
".mdoc",
".jsp",
".asp",
".aspx",
".jshtm",
".volt",
".ejs",
".rhtml",
];
module.exports = {
overrides: [
{
files: extensions.flatMap((ext) => [`*${ext}`, `**/*${ext}`]),
customSyntax: "postcss-html",
},
],
}
overrides: [
{
files: extensions.flatMap((ext) => [`*${ext}`, `**/*${ext}`]),
customSyntax: "postcss-html",
},
],
};

@@ -1,11 +0,12 @@

"use strict"
"use strict";
module.exports = {
extends: [
require.resolve("./html.js"),
require.resolve("./vue.js"),
require.resolve("./php.js"),
require.resolve("./svelte.js"),
require.resolve("./xml.js"),
],
}
extends: [
require.resolve("./html.js"),
require.resolve("./vue.js"),
require.resolve("./php.js"),
require.resolve("./svelte.js"),
require.resolve("./astro.js"),
require.resolve("./xml.js"),
],
};
{
"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",
"files": [
"index.js",
"html.js",
"vue.js",
"svelte.js",
"php.js",
"xml.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": "Yosuke Ota (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"
"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",
"files": [
"index.js",
"html.js",
"vue.js",
"svelte.js",
"astro.js",
"php.js",
"xml.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": "Yosuke Ota (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"
}

@@ -1,19 +0,19 @@

"use strict"
"use strict";
const extensions = [
// https://github.com/Microsoft/vscode/blob/main/extensions/php/package.json
".php",
".php4",
".php5",
".phtml",
".ctp",
]
// https://github.com/Microsoft/vscode/blob/main/extensions/php/package.json
".php",
".php4",
".php5",
".phtml",
".ctp",
];
module.exports = {
overrides: [
{
files: extensions.flatMap((ext) => [`*${ext}`, `**/*${ext}`]),
customSyntax: "postcss-html",
},
],
}
overrides: [
{
files: extensions.flatMap((ext) => [`*${ext}`, `**/*${ext}`]),
customSyntax: "postcss-html",
},
],
};

@@ -12,3 +12,3 @@ # stylelint-config-html

This config bundles the [`postcss-html` custom syntax](https://github.com/ota-meshi/postcss-html) and configures it.
If you use this config in your Stylelint config, HTML, XML, [Vue], [Svelte] and [PHP] files will be parsable. The Stylelint rules you have configured will be able to check these files.
If 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.

@@ -26,5 +26,5 @@ > **Requirements**

### [stylelint-config-recommended-vue](https://github.com/ota-meshi/stylelint-config-recommended-vue)
### [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)
The recommended shareable [Vue](https://v3.vuejs.org/) config.
The shareable config for [Vue](https://v3.vuejs.org/).
If 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/).

@@ -64,2 +64,3 @@

"stylelint-config-html/svelte",
"stylelint-config-html/astro",
"stylelint-config-html/php"

@@ -70,2 +71,27 @@ ]

## :computer: Editor integrations
### Visual Studio Code
Use the [stylelint.vscode-stylelint](https://marketplace.visualstudio.com/items?itemName=stylelint.vscode-stylelint) extension that [Stylelint] provides officially.
You 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.
Example **.vscode/settings.json**:
```jsonc
{
"stylelint.validate": [
...,
// ↓ Add "html" language.
"html",
// ↓ Add "vue" language.
"vue",
// ↓ Add "svelte" language.
"svelte",
// ↓ Add "astro" language.
"astro",
]
```
## :lock: License

@@ -78,3 +104,4 @@

[Svelte]: https://svelte.dev/docs#Component_format
[Astro]: https://docs.astro.build/core-concepts/astro-components/
[PHP]: https://www.php.net/manual/en/intro-whatis.php
[PostCss]: https://github.com/postcss/postcss

@@ -1,14 +0,14 @@

"use strict"
"use strict";
const extensions = [
// https://github.com/sveltejs/language-tools/blob/master/packages/svelte-vscode/package.json
".svelte",
]
// https://github.com/sveltejs/language-tools/blob/master/packages/svelte-vscode/package.json
".svelte",
];
module.exports = {
overrides: [
{
files: extensions.flatMap((ext) => [`*${ext}`, `**/*${ext}`]),
customSyntax: "postcss-html",
},
],
}
overrides: [
{
files: extensions.flatMap((ext) => [`*${ext}`, `**/*${ext}`]),
customSyntax: "postcss-html",
},
],
};

@@ -1,14 +0,14 @@

"use strict"
"use strict";
const extensions = [
// https://v3.vuejs.org/api/sfc-spec.html
".vue",
]
// https://v3.vuejs.org/api/sfc-spec.html
".vue",
];
module.exports = {
overrides: [
{
files: extensions.flatMap((ext) => [`*${ext}`, `**/*${ext}`]),
customSyntax: "postcss-html",
},
],
}
overrides: [
{
files: extensions.flatMap((ext) => [`*${ext}`, `**/*${ext}`]),
customSyntax: "postcss-html",
},
],
};

@@ -1,78 +0,78 @@

"use strict"
"use strict";
const extensions = [
// https://github.com/Microsoft/vscode/blob/master/extensions/xml/package.json
".xml",
".xsd",
".ascx",
".atom",
".axml",
".axaml",
".bpmn",
".cpt",
".csl",
".csproj",
".csproj.user",
".dita",
".ditamap",
".dtd",
".ent",
".mod",
".dtml",
".fsproj",
".fxml",
".iml",
".isml",
".jmx",
".launch",
".menu",
".mxml",
".nuspec",
".opml",
".owl",
".proj",
".props",
".pt",
".publishsettings",
".pubxml",
".pubxml.user",
".rbxlx",
".rbxmx",
".rdf",
".rng",
".rss",
".shproj",
".storyboard",
".svg",
".targets",
".tld",
".tmx",
".vbproj",
".vbproj.user",
".vcxproj",
".vcxproj.filters",
".wsdl",
".wxi",
".wxl",
".wxs",
".xaml",
".xbl",
".xib",
".xlf",
".xliff",
".xpdl",
".xul",
".xoml",
// https://github.com/Microsoft/vscode/blob/master/extensions/xml/package.json
".xml",
".xsd",
".ascx",
".atom",
".axml",
".axaml",
".bpmn",
".cpt",
".csl",
".csproj",
".csproj.user",
".dita",
".ditamap",
".dtd",
".ent",
".mod",
".dtml",
".fsproj",
".fxml",
".iml",
".isml",
".jmx",
".launch",
".menu",
".mxml",
".nuspec",
".opml",
".owl",
".proj",
".props",
".pt",
".publishsettings",
".pubxml",
".pubxml.user",
".rbxlx",
".rbxmx",
".rdf",
".rng",
".rss",
".shproj",
".storyboard",
".svg",
".targets",
".tld",
".tmx",
".vbproj",
".vbproj.user",
".vcxproj",
".vcxproj.filters",
".wsdl",
".wxi",
".wxl",
".wxs",
".xaml",
".xbl",
".xib",
".xlf",
".xliff",
".xpdl",
".xul",
".xoml",
// xsl
".xsl",
".xslt",
]
// xsl
".xsl",
".xslt",
];
module.exports = {
overrides: [
{
files: extensions.flatMap((ext) => [`*${ext}`, `**/*${ext}`]),
customSyntax: "postcss-html",
},
],
}
overrides: [
{
files: extensions.flatMap((ext) => [`*${ext}`, `**/*${ext}`]),
customSyntax: "postcss-html",
},
],
};
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc