From bffd9f022431b84665cf01d9cd2739e02aaa9222 Mon Sep 17 00:00:00 2001 From: adrienne-rio Date: Fri, 1 Mar 2024 12:14:05 +0800 Subject: [PATCH 1/4] fix: issue with outside rules and indent rule --- index.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/index.js b/index.js index cded84d..d870d2a 100644 --- a/index.js +++ b/index.js @@ -202,15 +202,15 @@ module.exports = { ], }, ], + "linebreak-style": ["error", "unix"], + "jsx-quotes": ["error", "prefer-single"], + "no-confusing-arrow": ["error", { allowParens: false }], + "no-tabs": ["error", { allowIndentationTabs: true }], + indent: ["error", 4], + quotes: [ + "error", + "single", + { avoidEscape: true, allowTemplateLiterals: false }, + ], }, - "linebreak-style": ["error", "unix"], - "jsx-quotes": ["error", "prefer-single"], - "no-confusing-arrow": ["error", { allowParens: false }], - "no-tabs": ["error", { allowIndentationTabs: true }], - indent: ["error", false], - quotes: [ - "error", - "single", - { avoidEscape: true, allowTemplateLiterals: false }, - ], }; From a96f7d6b42022d891e1129bbe51633312e878454 Mon Sep 17 00:00:00 2001 From: adrienne-rio Date: Fri, 1 Mar 2024 12:39:41 +0800 Subject: [PATCH 2/4] chore: upgraded prettier plugin to v5 --- package-lock.json | 79 ++++++++++++++++++++++++++++++++++------------- package.json | 2 +- 2 files changed, 59 insertions(+), 22 deletions(-) diff --git a/package-lock.json b/package-lock.json index 10f4c13..8c4f03a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -24,7 +24,7 @@ "eslint-plugin-jest": "^27.4.2", "eslint-plugin-jest-dom": "^5.1.0", "eslint-plugin-jest-playwright": "^0.9.0", - "eslint-plugin-prettier": "^3.3.1", + "eslint-plugin-prettier": "^5.0.0", "eslint-plugin-react": "^7.28.0", "eslint-plugin-react-hooks": "^4.5.0", "eslint-plugin-simple-import-sort": "^10.0.0", @@ -752,6 +752,18 @@ "node": ">= 8" } }, + "node_modules/@pkgr/core": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/@pkgr/core/-/core-0.1.1.tgz", + "integrity": "sha512-cq8o4cWH0ibXh9VGi5P20Tu9XF/0fFXl9EUinr9QfTM7a7p0oTA4iJRCQWppXR1Pg8dSM0UCItCkPwsk9qWWYA==", + "dev": true, + "engines": { + "node": "^12.20.0 || ^14.18.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/unts" + } + }, "node_modules/@sinclair/typebox": { "version": "0.27.8", "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.27.8.tgz", @@ -759,9 +771,9 @@ "dev": true }, "node_modules/@types/eslint": { - "version": "7.29.0", - "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-7.29.0.tgz", - "integrity": "sha512-VNcvioYDH8/FxaeTKkM4/TiTwt6pBV9E3OfGmvaw8tPl0rrHCJ4Ll15HRT+pMiFAf/MLQvAzC+6RzUMEL9Ceng==", + "version": "8.56.5", + "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.56.5.tgz", + "integrity": "sha512-u5/YPJHo1tvkSF2CE0USEkxon82Z5DBy2xR+qfyYNszpX9qcs4sT6uq2kBbj4BXY1+DBGDPnrhMZV3pKWGNukw==", "dev": true, "dependencies": { "@types/estree": "*", @@ -2200,6 +2212,16 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/eslint-formatter-pretty/node_modules/@types/eslint": { + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-7.29.0.tgz", + "integrity": "sha512-VNcvioYDH8/FxaeTKkM4/TiTwt6pBV9E3OfGmvaw8tPl0rrHCJ4Ll15HRT+pMiFAf/MLQvAzC+6RzUMEL9Ceng==", + "dev": true, + "dependencies": { + "@types/estree": "*", + "@types/json-schema": "*" + } + }, "node_modules/eslint-formatter-pretty/node_modules/ansi-styles": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", @@ -2856,21 +2878,30 @@ } }, "node_modules/eslint-plugin-prettier": { - "version": "3.4.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-3.4.1.tgz", - "integrity": "sha512-htg25EUYUeIhKHXjOinK4BgCcDwtLHjqaxCDsMy5nbnUMkKFvIhMVCp+5GFUXQ4Nr8lBsPqtGAqBenbpFqAA2g==", + "version": "5.1.3", + "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-5.1.3.tgz", + "integrity": "sha512-C9GCVAs4Eq7ZC/XFQHITLiHJxQngdtraXaM+LoUFoFp/lHNl2Zn8f3WQbe9HvTBBQ9YnKFB0/2Ajdqwo5D1EAw==", "dev": true, "dependencies": { - "prettier-linter-helpers": "^1.0.0" + "prettier-linter-helpers": "^1.0.0", + "synckit": "^0.8.6" }, "engines": { - "node": ">=6.0.0" + "node": "^14.18.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint-plugin-prettier" }, "peerDependencies": { - "eslint": ">=5.0.0", - "prettier": ">=1.13.0" + "@types/eslint": ">=8.0.0", + "eslint": ">=8.0.0", + "eslint-config-prettier": "*", + "prettier": ">=3.0.0" }, "peerDependenciesMeta": { + "@types/eslint": { + "optional": true + }, "eslint-config-prettier": { "optional": true } @@ -3178,16 +3209,6 @@ "webpack": "^5.0.0" } }, - "node_modules/eslint-webpack-plugin/node_modules/@types/eslint": { - "version": "8.44.7", - "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.44.7.tgz", - "integrity": "sha512-f5ORu2hcBbKei97U73mf+l9t4zTGl74IqZ0GQk4oVea/VS8tQZYkUveSYojk+frraAVYId0V2WC9O4PTNru2FQ==", - "dev": true, - "dependencies": { - "@types/estree": "*", - "@types/json-schema": "*" - } - }, "node_modules/eslint/node_modules/ansi-styles": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", @@ -5648,6 +5669,22 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/synckit": { + "version": "0.8.8", + "resolved": "https://registry.npmjs.org/synckit/-/synckit-0.8.8.tgz", + "integrity": "sha512-HwOKAP7Wc5aRGYdKH+dw0PRRpbO841v2DENBtjnR5HFWoiNByAl7vrx3p0G/rCyYXQsrxqtX48TImFtPcIHSpQ==", + "dev": true, + "dependencies": { + "@pkgr/core": "^0.1.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": "^14.18.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/unts" + } + }, "node_modules/tapable": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", diff --git a/package.json b/package.json index 97378b0..0aea4e5 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,7 @@ "eslint-plugin-jest": "^27.4.2", "eslint-plugin-jest-dom": "^5.1.0", "eslint-plugin-jest-playwright": "^0.9.0", - "eslint-plugin-prettier": "^3.3.1", + "eslint-plugin-prettier": "^5.0.0", "eslint-plugin-react": "^7.28.0", "eslint-plugin-react-hooks": "^4.5.0", "eslint-plugin-simple-import-sort": "^10.0.0", From 67a46ab3d385c7377c8a9391aff075e7f545c0f7 Mon Sep 17 00:00:00 2001 From: adrienne-rio Date: Fri, 1 Mar 2024 12:59:38 +0800 Subject: [PATCH 3/4] chore: upgraded prettier plugin to v5 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 0aea4e5..95857c4 100644 --- a/package.json +++ b/package.json @@ -60,7 +60,7 @@ "eslint-plugin-jest": "^27.4.2", "eslint-plugin-jest-dom": "^5.1.0", "eslint-plugin-jest-playwright": "^0.9.0", - "eslint-plugin-prettier": "^3.3.1", + "eslint-plugin-prettier": "^5.0.0", "eslint-plugin-react": "^7.28.0", "eslint-plugin-react-hooks": "^4.5.0", "eslint-plugin-simple-import-sort": "^10.0.0", From d3195985a8fd9d2da1839136bf01e27d432cab5f Mon Sep 17 00:00:00 2001 From: adrienne-rio Date: Fri, 1 Mar 2024 13:14:28 +0800 Subject: [PATCH 4/4] chore: upgraded prettier plugin to v5 --- package-lock.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package-lock.json b/package-lock.json index 8c4f03a..e4ad5f2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -47,7 +47,7 @@ "eslint-plugin-jest": "^27.4.2", "eslint-plugin-jest-dom": "^5.1.0", "eslint-plugin-jest-playwright": "^0.9.0", - "eslint-plugin-prettier": "^3.3.1", + "eslint-plugin-prettier": "^5.0.0", "eslint-plugin-react": "^7.28.0", "eslint-plugin-react-hooks": "^4.5.0", "eslint-plugin-simple-import-sort": "^10.0.0",