From f5e5e4c5c481a5fc35c63b21d908dc7d63f17c73 Mon Sep 17 00:00:00 2001 From: Ricardo Gobbo de Souza Date: Thu, 13 Jan 2022 21:08:56 -0300 Subject: [PATCH] fix: remove outdated stylelint types (#260) --- README.md | 2 ++ package-lock.json | 69 ----------------------------------------------- package.json | 3 +-- 3 files changed, 3 insertions(+), 71 deletions(-) diff --git a/README.md b/README.md index 51323c2..705232a 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,8 @@ npm install stylelint-webpack-plugin --save-dev npm install stylelint --save-dev ``` +**Note**: If you are using Stylelint 13 rather than 14+, you might also need to install `@types/stylelint` as a dev dependency if getting stylelint related type errors. + Then add the plugin to your webpack config. For example: ```js diff --git a/package-lock.json b/package-lock.json index 039069a..c8bde6b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,6 @@ "version": "3.1.0", "license": "MIT", "dependencies": { - "@types/stylelint": "^13.13.3", "globby": "^11.0.4", "jest-worker": "^27.3.1", "micromatch": "^4.0.4", @@ -3221,44 +3220,6 @@ "integrity": "sha512-Hl219/BT5fLAaz6NDkSuhzasy49dwQS/DSdu4MdggFB8zcXv7vflBI3xp7FEmkmdDkBUI2bPUNeMttp2knYdxw==", "dev": true }, - "node_modules/@types/stylelint": { - "version": "13.13.3", - "resolved": "https://registry.npmjs.org/@types/stylelint/-/stylelint-13.13.3.tgz", - "integrity": "sha512-xvYwobi9L69FXbJTimKYRNHyMwtmcJxMd1woI3U822rkW/f7wcZ6fsV1DqYPT+sNaO0qUtngiBhTQfMeItUvUA==", - "dependencies": { - "globby": "11.x.x", - "postcss": "7.x.x" - } - }, - "node_modules/@types/stylelint/node_modules/picocolors": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", - "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==" - }, - "node_modules/@types/stylelint/node_modules/postcss": { - "version": "7.0.39", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", - "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", - "dependencies": { - "picocolors": "^0.2.1", - "source-map": "^0.6.1" - }, - "engines": { - "node": ">=6.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - } - }, - "node_modules/@types/stylelint/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/@types/webpack": { "version": "5.28.0", "resolved": "https://registry.npmjs.org/@types/webpack/-/webpack-5.28.0.tgz", @@ -15802,36 +15763,6 @@ "integrity": "sha512-Hl219/BT5fLAaz6NDkSuhzasy49dwQS/DSdu4MdggFB8zcXv7vflBI3xp7FEmkmdDkBUI2bPUNeMttp2knYdxw==", "dev": true }, - "@types/stylelint": { - "version": "13.13.3", - "resolved": "https://registry.npmjs.org/@types/stylelint/-/stylelint-13.13.3.tgz", - "integrity": "sha512-xvYwobi9L69FXbJTimKYRNHyMwtmcJxMd1woI3U822rkW/f7wcZ6fsV1DqYPT+sNaO0qUtngiBhTQfMeItUvUA==", - "requires": { - "globby": "11.x.x", - "postcss": "7.x.x" - }, - "dependencies": { - "picocolors": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", - "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==" - }, - "postcss": { - "version": "7.0.39", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", - "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", - "requires": { - "picocolors": "^0.2.1", - "source-map": "^0.6.1" - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" - } - } - }, "@types/webpack": { "version": "5.28.0", "resolved": "https://registry.npmjs.org/@types/webpack/-/webpack-5.28.0.tgz", diff --git a/package.json b/package.json index 1194445..989a5e9 100644 --- a/package.json +++ b/package.json @@ -46,9 +46,8 @@ "webpack": "^5.0.0" }, "dependencies": { - "@types/stylelint": "^13.13.3", - "globby": "^11.0.4", "jest-worker": "^27.3.1", + "globby": "^11.0.4", "micromatch": "^4.0.4", "normalize-path": "^3.0.0", "schema-utils": "^4.0.0"