diff --git a/config/eslint.yml b/config/eslint.yml index 7091c50d4..0c6d265e7 100644 --- a/config/eslint.yml +++ b/config/eslint.yml @@ -507,6 +507,13 @@ rules: - allowIIFE: false "@ericcornelissen/top/no-top-level-variables": - error + - constAllowed: + - ArrayExpression + - ArrowFunctionExpression + - FunctionExpression + - Literal + - MemberExpression + - TemplateLiteral settings: jsdoc: ignorePrivate: false diff --git a/package-lock.json b/package-lock.json index 8bd0aae6f..f2ce61f42 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,7 +13,7 @@ }, "devDependencies": { "@arethetypeswrong/cli": "0.13.4", - "@ericcornelissen/eslint-plugin-top": "2.1.0", + "@ericcornelissen/eslint-plugin-top": "2.3.1", "@fast-check/ava": "1.2.1", "@gitlab-org/jsfuzz": "1.2.2", "@stryker-mutator/core": "8.0.0", @@ -870,9 +870,9 @@ } }, "node_modules/@ericcornelissen/eslint-plugin-top": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/@ericcornelissen/eslint-plugin-top/-/eslint-plugin-top-2.1.0.tgz", - "integrity": "sha512-fBIrU486G+xwE5XSrM8hg2gUKRyAaxg8rGgeLamkWdT2YyVN+D8ysQzLTgnO0huDCFsSjG3fIYoGIZy5IabbeA==", + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/@ericcornelissen/eslint-plugin-top/-/eslint-plugin-top-2.3.1.tgz", + "integrity": "sha512-lynL0i6UhfR6DMQgVVGA5Dm3759MMBlOfZ6+INsjpUI7jKYoFC28cpJGIpfFhmngpPDalB2Ha1oCky6Us7a7Yw==", "dev": true, "engines": { "node": "18.x || 20.x" diff --git a/package.json b/package.json index c0d883fcc..a47f6b18d 100644 --- a/package.json +++ b/package.json @@ -63,7 +63,7 @@ }, "devDependencies": { "@arethetypeswrong/cli": "0.13.4", - "@ericcornelissen/eslint-plugin-top": "2.1.0", + "@ericcornelissen/eslint-plugin-top": "2.3.1", "@fast-check/ava": "1.2.1", "@gitlab-org/jsfuzz": "1.2.2", "@stryker-mutator/core": "8.0.0",