diff --git a/index.js b/index.js index f98932e..a76f18e 100644 --- a/index.js +++ b/index.js @@ -1,6 +1,10 @@ module.exports = { - "extends": "stylelint-config-standard-scss", + "extends": [ + "stylelint-config-standard-scss", + "@stylistic/stylelint-config" + ], "plugins": [ + "@stylistic/stylelint-plugin", "stylelint-no-unsupported-browser-features" ], // additonal rules based mainly on @@ -14,8 +18,8 @@ module.exports = { "plugin/no-unsupported-browser-features": [true, { "severity": "warning" }], // general - "indentation": null, - "no-missing-end-of-source-newline": null, + "@stylistic/indentation": null, + "@stylistic/no-missing-end-of-source-newline": null, // vendor prefixes // we expect all projects to use autoprefixer diff --git a/package-lock.json b/package-lock.json index bb9b380..d50372d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,6 +9,8 @@ "version": "2.0.1", "license": "Apache-2.0", "dependencies": { + "@stylistic/stylelint-config": "1.x", + "@stylistic/stylelint-plugin": "2.x", "stylelint-config-standard-scss": "13.x", "stylelint-no-unsupported-browser-features": "8.x" }, @@ -176,6 +178,41 @@ "node": ">= 8" } }, + "node_modules/@stylistic/stylelint-config": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@stylistic/stylelint-config/-/stylelint-config-1.0.1.tgz", + "integrity": "sha512-JgFP88HZEyo34k9RpWVdcQJtLPrMxYE58IO3qypXhmvE/NmZohj+xjDtQ8UfaarnYsLecnldw57/GHum07Ctdw==", + "dependencies": { + "@stylistic/stylelint-plugin": "^2.0.0" + }, + "engines": { + "node": "^18.12 || >=20.9" + }, + "peerDependencies": { + "stylelint": "^16.0.2" + } + }, + "node_modules/@stylistic/stylelint-plugin": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/@stylistic/stylelint-plugin/-/stylelint-plugin-2.1.2.tgz", + "integrity": "sha512-JsSqu0Y3vsX+PBl+DwULxC0cIv9C1yIcq1MXkx7pBOGtTqU26a75I8MPYMiEYvrsXgsKLi65xVgy1iLVSZquJA==", + "dependencies": { + "@csstools/css-parser-algorithms": "^2.6.1", + "@csstools/css-tokenizer": "^2.2.4", + "@csstools/media-query-list-parser": "^2.1.9", + "is-plain-object": "^5.0.0", + "postcss-selector-parser": "^6.0.16", + "postcss-value-parser": "^4.2.0", + "style-search": "^0.1.0", + "stylelint": "^16.4.0" + }, + "engines": { + "node": "^18.12 || >=20.9" + }, + "peerDependencies": { + "stylelint": "^16.0.2" + } + }, "node_modules/@types/minimatch": { "version": "3.0.5", "resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-3.0.5.tgz", @@ -1481,6 +1518,11 @@ "url": "https://github.com/chalk/strip-ansi?sponsor=1" } }, + "node_modules/style-search": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/style-search/-/style-search-0.1.0.tgz", + "integrity": "sha512-Dj1Okke1C3uKKwQcetra4jSuk0DqbzbYtXipzFlFMZtowbF1x7BKJwB9AayVMyFARvU8EDrZdcax4At/452cAg==" + }, "node_modules/stylelint": { "version": "16.6.1", "resolved": "https://registry.npmjs.org/stylelint/-/stylelint-16.6.1.tgz", @@ -2010,6 +2052,29 @@ "fastq": "^1.6.0" } }, + "@stylistic/stylelint-config": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@stylistic/stylelint-config/-/stylelint-config-1.0.1.tgz", + "integrity": "sha512-JgFP88HZEyo34k9RpWVdcQJtLPrMxYE58IO3qypXhmvE/NmZohj+xjDtQ8UfaarnYsLecnldw57/GHum07Ctdw==", + "requires": { + "@stylistic/stylelint-plugin": "^2.0.0" + } + }, + "@stylistic/stylelint-plugin": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/@stylistic/stylelint-plugin/-/stylelint-plugin-2.1.2.tgz", + "integrity": "sha512-JsSqu0Y3vsX+PBl+DwULxC0cIv9C1yIcq1MXkx7pBOGtTqU26a75I8MPYMiEYvrsXgsKLi65xVgy1iLVSZquJA==", + "requires": { + "@csstools/css-parser-algorithms": "^2.6.1", + "@csstools/css-tokenizer": "^2.2.4", + "@csstools/media-query-list-parser": "^2.1.9", + "is-plain-object": "^5.0.0", + "postcss-selector-parser": "^6.0.16", + "postcss-value-parser": "^4.2.0", + "style-search": "^0.1.0", + "stylelint": "^16.4.0" + } + }, "@types/minimatch": { "version": "3.0.5", "resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-3.0.5.tgz", @@ -2898,6 +2963,11 @@ "ansi-regex": "^6.0.1" } }, + "style-search": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/style-search/-/style-search-0.1.0.tgz", + "integrity": "sha512-Dj1Okke1C3uKKwQcetra4jSuk0DqbzbYtXipzFlFMZtowbF1x7BKJwB9AayVMyFARvU8EDrZdcax4At/452cAg==" + }, "stylelint": { "version": "16.6.1", "resolved": "https://registry.npmjs.org/stylelint/-/stylelint-16.6.1.tgz", diff --git a/package.json b/package.json index 9883661..98a36eb 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,8 @@ "extends": "./index.js" }, "dependencies": { + "@stylistic/stylelint-config": "1.x", + "@stylistic/stylelint-plugin": "2.x", "stylelint-config-standard-scss": "13.x", "stylelint-no-unsupported-browser-features": "8.x" },