rework eslint config (#11615)

* rework eslint config

- use explicit config that only enables rules
- upgrade eslint to 7.1.0
- add new plugins with selected rules enabled
- fix discovered issues, remove global wipPrefixes

* remove if

* undo template change

* add disabled rules as well for easier config updating

* add missing disabled rule

* update eslint and plugins

* fix new violation

* remove deprecated rules

Co-authored-by: Lauris BH <[email protected]>
This commit is contained in:
silverwind
2020-06-09 17:31:15 -04:00
committed by GitHub
co-authored by GitHub Lauris BH
parent 363e51d19c
commit 19db3f4f0a
8 changed files with 725 additions and 163 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ const languagesByExt = {};
function getEditorconfig(input) {
try {
return JSON.parse(input.dataset.editorconfig);
} catch (_err) {
} catch {
return null;
}
}