From 4be45075685ca819bd4a78db8165d5b66cf84f68 Mon Sep 17 00:00:00 2001 From: Mathias Bolt Lesniak Date: Fri, 8 Jul 2022 12:43:19 +0200 Subject: [PATCH] [TASK] Improved ESLint config for Backend JavaScript (#476) With this configuration, ESLint will no longer complain about the `TYPO3` and `$` global, `define()` calls, etc. It will also allow the use of `const`. Resolves: #475 --- .eslintrc.json | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.eslintrc.json b/.eslintrc.json index a0adafa..508b94c 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -5,6 +5,16 @@ "plugin:prettier/recommended" ], "env": { - "browser": true + "browser": true, + "node": true, + "es6": true, + "amd": true, + "jquery": true + }, + "globals": { + "TYPO3": "readonly" + }, + "parserOptions": { + "ecmaVersion": 8 } }