From e3319919a1d9fcd7645aa3e4b1cbe04411bf7114 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 20 Jan 2025 23:05:43 +0100 Subject: [PATCH] wip --- eslint.config.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/eslint.config.js b/eslint.config.js index a905f77..6cafe3a 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -34,6 +34,10 @@ export default [ "no-implicit-coercion": "warn", "object-shorthand": "warn", "curly": "warn", + "no-restricted-syntax": ["warn", { + selector: "BlockStatement VariableDeclaration[kind='const']", + message: "NOPE", + }], "@stylistic/js/indent": ["warn", "tab"], "@stylistic/js/quotes": ["warn", "double"], "@stylistic/js/semi": "warn",