Properly enable dangling comma conventions in TypeScript
The eslint rule 'comma-dangle' isn't enough to enforce dangling
commas in TypeScript, we must use '@typescript-eslint/comma-dangle'
instead.
Bug: chromium:1174055
Change-Id: I589e1016ab578c965b54f17da3eab7ea542a2f7a
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2672028
Reviewed-by: Tim van der Lippe <[email protected]>
Reviewed-by: Alex Rudenko <[email protected]>
Commit-Queue: Sigurd Schneider <[email protected]>
diff --git a/.eslintrc.js b/.eslintrc.js
index 27eef35..31574fa 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -145,7 +145,8 @@
'files': ['*.ts'],
'rules': {
'@typescript-eslint/explicit-member-accessibility': [2, {'accessibility': 'no-public'}],
- 'comma-dangle': [2, 'always-multiline'],
+ 'comma-dangle': 'off',
+ '@typescript-eslint/comma-dangle': [2, 'always-multiline'],
// run just the TypeScript unused-vars rule, else we get duplicate errors
'no-unused-vars': 0,