From a5f6d15221e20a81ca87a5a2f47f4318ed07e4a7 Mon Sep 17 00:00:00 2001 From: Gajus Kuizinas Date: Sat, 14 Oct 2023 17:36:45 -0600 Subject: [PATCH] feat: add sort-destructure-keys and sort-react-dependencies BREAKING CHANGE: new rules --- configurations/eslintrc.js | 1 + configurations/react.js | 1 + package-lock.json | 8 ++++---- package.json | 2 +- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/configurations/eslintrc.js b/configurations/eslintrc.js index b5f5e1d..cd3b012 100644 --- a/configurations/eslintrc.js +++ b/configurations/eslintrc.js @@ -293,6 +293,7 @@ module.exports = { 'canonical/import-specifier-newline': 2, 'canonical/no-restricted-strings': 0, 'canonical/no-use-extend-native': 2, + 'canonical/sort-destructure-keys': 2, 'canonical/sort-keys': [ 2, 'asc', diff --git a/configurations/react.js b/configurations/react.js index 3916c14..5d3084f 100644 --- a/configurations/react.js +++ b/configurations/react.js @@ -1,6 +1,7 @@ module.exports = { plugins: ['react', 'react-hooks'], rules: { + 'canonical/sort-react-dependencies': 2, 'react/boolean-prop-naming': 0, 'react/button-has-type': 2, 'react/default-props-match-prop-types': 2, diff --git a/package-lock.json b/package-lock.json index 322bc7f..1650cc6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -21,7 +21,7 @@ "eslint-config-prettier": "^9.0.0", "eslint-import-resolver-typescript": "^3.6.1", "eslint-plugin-ava": "^14.0.0", - "eslint-plugin-canonical": "^4.14.0", + "eslint-plugin-canonical": "^4.15.0", "eslint-plugin-cypress": "^2.15.1", "eslint-plugin-eslint-comments": "^3.2.0", "eslint-plugin-flowtype": "^8.0.3", @@ -5866,9 +5866,9 @@ "integrity": "sha512-zttWvnkhcDyGOhSH4vO2qCBILpdCMv/MX8lp4cqgRkQoDRGK2oZxi2GfWhlP2dIXmk7BaKeOTuzbHhyC68o8XQ==" }, "node_modules/eslint-plugin-canonical": { - "version": "4.14.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-canonical/-/eslint-plugin-canonical-4.14.0.tgz", - "integrity": "sha512-qe3r/EZF7nQLCf0vZq5H8Mr/8J8mJv+z+A+UPBg6N0O/B7LLjZnvoeayLrDngDTLI9Uj3B7k+COAqlzV0cotvw==", + "version": "4.15.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-canonical/-/eslint-plugin-canonical-4.15.0.tgz", + "integrity": "sha512-frCx4rj7lYQW/ys5IyVi23O9mx1FVPsVG/d5rgYVGytROZYjnQBfL6SYIo7lN8S0iTtt0m9UzLOVHigmVw14AQ==", "dependencies": { "@typescript-eslint/utils": "^6.1.0", "chance": "^1.1.11", diff --git a/package.json b/package.json index 35a5515..d71cfdd 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "eslint-config-prettier": "^9.0.0", "eslint-import-resolver-typescript": "^3.6.1", "eslint-plugin-ava": "^14.0.0", - "eslint-plugin-canonical": "^4.14.0", + "eslint-plugin-canonical": "^4.15.0", "eslint-plugin-cypress": "^2.15.1", "eslint-plugin-eslint-comments": "^3.2.0", "eslint-plugin-flowtype": "^8.0.3",