mirror of
https://github.com/FriendsOfTYPO3/tea.git
synced 2024-12-22 19:06:10 +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:
parent
bd8395914f
commit
4be4507568
1 changed files with 11 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue