mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-11-10 00:16:13 +01:00

[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
This commit is contained in:
Mathias Bolt Lesniak 2022-07-08 12:43:19 +02:00 committed by GitHub
parent bd8395914f
commit 4be4507568
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
}
}