From 283c1082281831414d23ea0bf94a7d828b54e870 Mon Sep 17 00:00:00 2001 From: Heeryong Kang Date: Tue, 14 Feb 2023 20:03:50 +0900 Subject: [PATCH] =?UTF-8?q?feat(stylelint-config-triple):=20customSyntax?= =?UTF-8?q?=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix(stylelint-config-triple): require customSyntax --- package-lock.json | 37 ++++++++----------- packages/stylelint-config-triple/package.json | 4 +- packages/stylelint-config-triple/stylelint.js | 2 +- 3 files changed, 19 insertions(+), 24 deletions(-) diff --git a/package-lock.json b/package-lock.json index f1220e6..44fd27a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3857,19 +3857,6 @@ "@sinonjs/commons": "^2.0.0" } }, - "node_modules/@stylelint/postcss-css-in-js": { - "version": "0.38.0", - "resolved": "https://registry.npmjs.org/@stylelint/postcss-css-in-js/-/postcss-css-in-js-0.38.0.tgz", - "integrity": "sha512-XOz5CAe49kS95p5yRd+DAIWDojTjfmyAQ4bbDlXMdbZTQ5t0ThjSLvWI6JI2uiS7MFurVBkZ6zUqcimzcLTBoQ==", - "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", - "dependencies": { - "@babel/core": "^7.17.9" - }, - "peerDependencies": { - "postcss": ">=7.0.0", - "postcss-syntax": ">=0.36.2" - } - }, "node_modules/@titicaca/eslint-config-triple": { "resolved": "packages/eslint-config-triple", "link": true @@ -7195,6 +7182,11 @@ "node": ">=4.0" } }, + "node_modules/estree-walker": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz", + "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==" + }, "node_modules/esutils": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", @@ -12679,13 +12671,16 @@ "node": ">=4" } }, - "node_modules/postcss-syntax": { - "version": "0.36.2", - "resolved": "https://registry.npmjs.org/postcss-syntax/-/postcss-syntax-0.36.2.tgz", - "integrity": "sha512-nBRg/i7E3SOHWxF3PpF5WnJM/jQ1YpY9000OaVXlAQj6Zp/kIqJxEDWIZ67tAd7NLuk7zqN4yqe9nc0oNAOs1w==", - "peer": true, + "node_modules/postcss-styled-syntax": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/postcss-styled-syntax/-/postcss-styled-syntax-0.3.1.tgz", + "integrity": "sha512-DmZ/IxBqBVRLWMPu2VPCGKc8AkV0dAqQ3VdxDlWckQVzMSxzZW3Y+5vqpSgTo2eQqa+6eBX85rdsrWyrAXhUoQ==", + "dependencies": { + "@typescript-eslint/typescript-estree": "^5.47.0", + "estree-walker": "^2.0.2" + }, "peerDependencies": { - "postcss": ">=5.0.0" + "postcss": "^8.4.21" } }, "node_modules/postcss-value-parser": { @@ -15164,7 +15159,7 @@ "version": "1.0.1", "license": "MIT", "dependencies": { - "@stylelint/postcss-css-in-js": "0.38.0", + "postcss-styled-syntax": "^0.3.1", "stylelint-config-prettier": "9.0.4", "stylelint-config-standard": "29.0.0", "stylelint-config-styled-components": "0.1.1" @@ -15173,7 +15168,7 @@ "stylelint": "^14.16.1" }, "peerDependencies": { - "stylelint": "^14.14.0" + "stylelint": "^14.14.0 || ^15.0.0" } } } diff --git a/packages/stylelint-config-triple/package.json b/packages/stylelint-config-triple/package.json index 0e17bdd..9bfdee7 100644 --- a/packages/stylelint-config-triple/package.json +++ b/packages/stylelint-config-triple/package.json @@ -17,7 +17,7 @@ }, "homepage": "https://github.com/titicacadev/eslint-config-triple", "dependencies": { - "@stylelint/postcss-css-in-js": "0.38.0", + "postcss-styled-syntax": "^0.3.1", "stylelint-config-prettier": "9.0.4", "stylelint-config-standard": "29.0.0", "stylelint-config-styled-components": "0.1.1" @@ -26,6 +26,6 @@ "stylelint": "^14.16.1" }, "peerDependencies": { - "stylelint": "^14.14.0" + "stylelint": "^14.14.0 || ^15.0.0" } } diff --git a/packages/stylelint-config-triple/stylelint.js b/packages/stylelint-config-triple/stylelint.js index 5b4d87c..1d6a58c 100644 --- a/packages/stylelint-config-triple/stylelint.js +++ b/packages/stylelint-config-triple/stylelint.js @@ -8,7 +8,7 @@ module.exports = { overrides: [ { files: ['**/*.{js,ts,tsx}'], - customSyntax: '@stylelint/postcss-css-in-js', + customSyntax: require('postcss-styled-syntax'), rules: { // https://github.com/styled-components/stylelint-config-styled-components/blob/master/index.js 'value-no-vendor-prefix': true,