diff --git a/README.md b/README.md index a82e355b..bf66a140 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ autoformatting your code. | --------------------------------------------------------------------------------------------------------- | ----: | ------: | | [ESLint](https://eslint.org/docs/rules/) | 260 | **180** | | [eslint-plugin-prettier](https://github.com/prettier/eslint-plugin-prettier) | 82 | **82** | -| [eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn) | 55 | **44** | +| [eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn) | 56 | **44** | | [eslint-plugin-import](https://github.com/benmosher/eslint-plugin-import) | 40 | **32** | | [eslint-plugin-sonarjs](https://github.com/SonarSource/eslint-plugin-sonarjs) | 25 | **24** | | [eslint-plugin-security](https://github.com/nodesecurity/eslint-plugin-security) | 13 | **11** | @@ -30,14 +30,14 @@ autoformatting your code. | [eslint-plugin-optimize-regex](https://github.com/BrainMaestro/eslint-plugin-optimize-regex) | 1 | **1** | | [eslint-plugin-ext](https://github.com/jiangfengming/eslint-plugin-ext) | 1 | **1** | | [eslint-plugin-json](https://github.com/azeemba/eslint-plugin-json)¹ | 1 | **1** | -| **Total: `hardcore`** | 510 | **402** | +| **Total: `hardcore`** | 511 | **402** | | [eslint-plugin-fp](https://github.com/jfmengels/eslint-plugin-fp) | 17 | **14** | | [eslint-plugin-ramda](https://github.com/ramda/eslint-plugin-ramda) | 26 | **24** | -| **Total: `hardcore` + `hardcore/fp`** | 553 | **441** | +| **Total: `hardcore` + `hardcore/fp`** | 554 | **441** | | [eslint-plugin-node](https://github.com/mysticatea/eslint-plugin-node) | 37 | **35** | -| **Total: `hardcore` + `hardcore/fp` + `hardcore/node`** | 590 | **476** | +| **Total: `hardcore` + `hardcore/fp` + `hardcore/node`** | 591 | **476** | | [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint) | 106 | **43** | -| **Total: `hardcore` + `hardcore/fp` + `hardcore/node` + `hardcore/ts-for-js`** | 696 | **501** | +| **Total: `hardcore` + `hardcore/fp` + `hardcore/node` + `hardcore/ts-for-js`** | 697 | **501** | ¹ eslint-plugin-json actually includes 19 rules, but I consider them as one "no-invalid-json" rule. diff --git a/disabled-rules.json b/disabled-rules.json index 4f11f90a..f0905f68 100644 --- a/disabled-rules.json +++ b/disabled-rules.json @@ -42,6 +42,7 @@ "unicorn/prefer-set-has": "off", "unicorn/no-reduce": "off", "unicorn/no-useless-undefined": "off", + "unicorn/import-style": "off", "sonarjs/no-duplicate-string": "off", diff --git a/package-lock.json b/package-lock.json index 6ab791ac..05f26f78 100644 --- a/package-lock.json +++ b/package-lock.json @@ -916,17 +916,17 @@ "integrity": "sha512-XW5MnzlRjhXpIdbULC/qAdJYHWw3rRLws/DyawdlPU/IdVr9AmRK1r2LaCvabwKOAW2XYYSo3kDX58E4MrB7PQ==" }, "eslint-plugin-unicorn": { - "version": "21.0.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-unicorn/-/eslint-plugin-unicorn-21.0.0.tgz", - "integrity": "sha512-S8v7+v4gZTQPj4pKKvexhgSUaLQSyItvxW2SVZDaX9Iu5IjlAmF2eni+L6w8a2aqshxgU8Lle4FIAVDtuejSKQ==", + "version": "22.0.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-unicorn/-/eslint-plugin-unicorn-22.0.0.tgz", + "integrity": "sha512-jXPOauNiVFYLr+AeU3l21Ao+iDl/G08vUWui21RCI2L1TJIIoJvAMjMR6I+QPKr8FgIumzuR6gzDKCtEx2IkzA==", "requires": { "ci-info": "^2.0.0", "clean-regexp": "^1.0.0", "eslint-ast-utils": "^1.1.0", - "eslint-template-visitor": "^2.0.0", + "eslint-template-visitor": "^2.2.1", "eslint-utils": "^2.1.0", "import-modules": "^2.0.0", - "lodash": "^4.17.15", + "lodash": "^4.17.20", "pluralize": "^8.0.0", "read-pkg-up": "^7.0.1", "regexp-tree": "^0.1.21", diff --git a/package.json b/package.json index c35f6be2..af5ad982 100644 --- a/package.json +++ b/package.json @@ -51,7 +51,7 @@ "eslint-plugin-ramda": "^2.5.1", "eslint-plugin-security": "^1.4.0", "eslint-plugin-sonarjs": "^0.5.0", - "eslint-plugin-unicorn": "^21.0.0", + "eslint-plugin-unicorn": "^22.0.0", "prettier": "^2.1.2", "typescript": "^4.0.3" },