diff --git a/config/eslint.yml b/config/eslint.yml index 0c6d265e7..0be5099dc 100644 --- a/config/eslint.yml +++ b/config/eslint.yml @@ -504,16 +504,17 @@ rules: # https://github.com/ericcornelissen/eslint-plugin-top#readme "@ericcornelissen/top/no-top-level-side-effects": - error - - allowIIFE: false + - allowedCalls: + - Symbol + allowedNews: [] + allowIIFE: false + commonjs: false "@ericcornelissen/top/no-top-level-variables": - error - - constAllowed: + - allowed: - ArrayExpression - - ArrowFunctionExpression - - FunctionExpression - - Literal - - MemberExpression - - TemplateLiteral + kind: + - const settings: jsdoc: ignorePrivate: false diff --git a/package-lock.json b/package-lock.json index f2ce61f42..e0f35fb2a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,7 +13,7 @@ }, "devDependencies": { "@arethetypeswrong/cli": "0.13.4", - "@ericcornelissen/eslint-plugin-top": "2.3.1", + "@ericcornelissen/eslint-plugin-top": "3.0.0", "@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.3.1", - "resolved": "https://registry.npmjs.org/@ericcornelissen/eslint-plugin-top/-/eslint-plugin-top-2.3.1.tgz", - "integrity": "sha512-lynL0i6UhfR6DMQgVVGA5Dm3759MMBlOfZ6+INsjpUI7jKYoFC28cpJGIpfFhmngpPDalB2Ha1oCky6Us7a7Yw==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@ericcornelissen/eslint-plugin-top/-/eslint-plugin-top-3.0.0.tgz", + "integrity": "sha512-0pAZpzoKh70Mot2HiiewwWyzltEVXvxJzDKIgVem3COY2A8qTtsHljc8GkiuKyR5vpJLC4UmP2fngLpn8/isqA==", "dev": true, "engines": { "node": "18.x || 20.x" diff --git a/package.json b/package.json index a47f6b18d..32d60197f 100644 --- a/package.json +++ b/package.json @@ -63,7 +63,7 @@ }, "devDependencies": { "@arethetypeswrong/cli": "0.13.4", - "@ericcornelissen/eslint-plugin-top": "2.3.1", + "@ericcornelissen/eslint-plugin-top": "3.0.0", "@fast-check/ava": "1.2.1", "@gitlab-org/jsfuzz": "1.2.2", "@stryker-mutator/core": "8.0.0",