Skip to content

Commit c8241ea

Browse files
renovate[bot]renovate-botdimaMachina
authored
chore(deps): update dependency eslint-plugin-eslint-plugin to v4.0.3 (#829)
* chore(deps): update dependency eslint-plugin-eslint-plugin to v4.0.3 * fix: adjust patch for eslint-plugin-eslint-plugin Co-authored-by: Renovate Bot <[email protected]> Co-authored-by: Dimitri POSTOLOV <[email protected]>
1 parent 75e41ed commit c8241ea

File tree

4 files changed

+13
-41
lines changed

4 files changed

+13
-41
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"eslint": "8.4.1",
3838
"eslint-config-prettier": "8.3.0",
3939
"eslint-config-standard": "16.0.3",
40-
"eslint-plugin-eslint-plugin": "4.0.2",
40+
"eslint-plugin-eslint-plugin": "4.0.3",
4141
"eslint-plugin-import": "2.25.3",
4242
"eslint-plugin-node": "11.1.0",
4343
"eslint-plugin-promise": "5.2.0",

patches/@changesets+apply-release-plan+5.0.2.patch renamed to patches/@changesets+apply-release-plan+5.0.3.patch

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ index db7ebee..9bde9bb 100644
9090
--- a/node_modules/@changesets/apply-release-plan/dist/declarations/src/index.d.ts
9191
+++ b/node_modules/@changesets/apply-release-plan/dist/declarations/src/index.d.ts
9292
@@ -1,3 +1,3 @@
93-
import { ReleasePlan, Config } from "@changesets/types";
94-
import { Packages } from "@manypkg/get-packages";
95-
-export default function applyReleasePlan(releasePlan: ReleasePlan, packages: Packages, config?: Config, snapshot?: string | boolean): Promise<string[]>;
96-
+export default function applyReleasePlan(releasePlan: ReleasePlan, packages: Packages, config?: Config, snapshot?: string | boolean, ignoreRange?: boolean): Promise<string[]>;
93+
import { ReleasePlan, Config } from "@changesets/types";
94+
import { Packages } from "@manypkg/get-packages";
95+
-export default function applyReleasePlan(releasePlan: ReleasePlan, packages: Packages, config?: Config, snapshot?: string | boolean): Promise<string[]>;
96+
+export default function applyReleasePlan(releasePlan: ReleasePlan, packages: Packages, config?: Config, snapshot?: string | boolean, ignoreRange?: boolean): Promise<string[]>;

patches/eslint-plugin-eslint-plugin+4.0.2.patch renamed to patches/eslint-plugin-eslint-plugin+4.0.3.patch

Lines changed: 4 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
diff --git a/node_modules/eslint-plugin-eslint-plugin/lib/rules/no-only-tests.js b/node_modules/eslint-plugin-eslint-plugin/lib/rules/no-only-tests.js
2-
index f680961..c9a08b4 100644
2+
index e6719bb..b0e871d 100644
33
--- a/node_modules/eslint-plugin-eslint-plugin/lib/rules/no-only-tests.js
44
+++ b/node_modules/eslint-plugin-eslint-plugin/lib/rules/no-only-tests.js
5-
@@ -31,7 +31,7 @@ module.exports = {
5+
@@ -32,7 +32,7 @@ module.exports = {
66

77
const onlyProperty = test.properties.find(
88
property =>
@@ -12,7 +12,7 @@ index f680961..c9a08b4 100644
1212
property.value.type === 'Literal' &&
1313
property.value.value
1414
diff --git a/node_modules/eslint-plugin-eslint-plugin/lib/utils.js b/node_modules/eslint-plugin-eslint-plugin/lib/utils.js
15-
index d7a2b82..326d387 100644
15+
index 8aca920..707fe53 100644
1616
--- a/node_modules/eslint-plugin-eslint-plugin/lib/utils.js
1717
+++ b/node_modules/eslint-plugin-eslint-plugin/lib/utils.js
1818
@@ -24,10 +24,10 @@ function isNormalFunctionExpression (node) {
@@ -28,35 +28,7 @@ index d7a2b82..326d387 100644
2828
);
2929
}
3030

31-
@@ -85,12 +85,17 @@ function isFunctionRule (node) {
32-
/**
33-
* Helper for `getRuleInfo`. Handles ESM and TypeScript rules.
34-
*/
35-
-function getRuleExportsESM (ast) {
36-
+function getRuleExportsESM (ast, scopeManager) {
37-
return ast.body
38-
.filter(statement => statement.type === 'ExportDefaultDeclaration')
39-
.map(statement => statement.declaration)
40-
// eslint-disable-next-line unicorn/prefer-object-from-entries
41-
.reduce((currentExports, node) => {
42-
+ // Check `const rule = { create() {}, meta: {} }; export default rule`
43-
+ if (node.type === 'Identifier' && scopeManager) {
44-
+ const variable = findVariable(scopeManager.globalScope, node);
45-
+ return collectInterestingProperties(variable.defs[0].node.init.properties, INTERESTING_RULE_KEYS);
46-
+ }
47-
if (node.type === 'ObjectExpression') {
48-
// Check `export default { create() {}, meta: {} }`
49-
return collectInterestingProperties(node.properties, INTERESTING_RULE_KEYS);
50-
@@ -218,7 +223,7 @@ module.exports = {
51-
from the file, the return value will be `null`.
52-
*/
53-
getRuleInfo ({ ast, scopeManager }) {
54-
- const exportNodes = ast.sourceType === 'module' ? getRuleExportsESM(ast) : getRuleExportsCJS(ast);
55-
+ const exportNodes = ast.sourceType === 'module' ? getRuleExportsESM(ast, scopeManager) : getRuleExportsCJS(ast);
56-
57-
const createExists = Object.prototype.hasOwnProperty.call(exportNodes, 'create');
58-
if (!createExists) {
59-
@@ -317,7 +322,7 @@ module.exports = {
31+
@@ -343,7 +343,7 @@ module.exports = {
6032
variableIdentifiers.has(statement.expression.callee.object)
6133
) &&
6234
statement.expression.callee.property.type === 'Identifier' &&

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3418,10 +3418,10 @@ eslint-plugin-es@^3.0.0:
34183418
eslint-utils "^2.0.0"
34193419
regexpp "^3.0.0"
34203420

3421-
3422-
version "4.0.2"
3423-
resolved "https://registry.yarnpkg.com/eslint-plugin-eslint-plugin/-/eslint-plugin-eslint-plugin-4.0.2.tgz#80f63080c0a5b444a949ef1ed5f79a4dc2ef4ef4"
3424-
integrity sha512-EUNNLrWvwQ7QU6GGYWGMw7IHGSIGDn5GCbnQlzFHH5ypgL1gR9Fk0dUnOpzyPaI+OLc6rAs7Askv+IPFUKJdOQ==
3421+
3422+
version "4.0.3"
3423+
resolved "https://registry.yarnpkg.com/eslint-plugin-eslint-plugin/-/eslint-plugin-eslint-plugin-4.0.3.tgz#149a5382620f4ea8b85a35bc549c4a8a45fac53e"
3424+
integrity sha512-10Eb3AO4PF7PuJbTSBAD1dLsu1RHtGxeLEjUpVVEyQaPtSmlEvCK7LMpDow1Xv+kHBujm4u9OtoOQ//WIijLCw==
34253425
dependencies:
34263426
eslint-utils "^3.0.0"
34273427
estraverse "^5.2.0"

0 commit comments

Comments
 (0)