* 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
Showing the changes to web_src/js/features/codeeditor.js (1 of 8 files). Show all
Unified · Split
| @@ -6,7 +6,7 @@ const languagesByExt = {}; · 5 unmodified lines | |||
| 6 | function getEditorconfig(input) { | 6 | function getEditorconfig(input) { |
| 7 | try { | 7 | try { |
| 8 | return JSON.parse(input.dataset.editorconfig); | 8 | return JSON.parse(input.dataset.editorconfig); |
| 9 | } catch (_err) { | 9 | } catch { |
| 10 | return null; | 10 | return null; |
| 11 | } | 11 | } |
| 12 | } | 12 | } |