[eslint] Include ExtensionAPI
This makes all current files under DevTools lintable with EsLint
by default.
Also remove the rule for default export for configs.
Bug: 397260638
Change-Id: I3b380ad4351eb53c65207b242d7f8221e7788e48
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6357121
Commit-Queue: Nikolay Vitkov <[email protected]>
Reviewed-by: Benedikt Meurer <[email protected]>
Commit-Queue: Benedikt Meurer <[email protected]>
diff --git a/eslint.config.mjs b/eslint.config.mjs
index 94a255b..375274b 100644
--- a/eslint.config.mjs
+++ b/eslint.config.mjs
@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-/* eslint-disable import/no-default-export */
-
import stylisticPlugin from '@stylistic/eslint-plugin';
import typescriptPlugin from '@typescript-eslint/eslint-plugin';
import tsParser from '@typescript-eslint/parser';
@@ -842,4 +840,13 @@
'import/no-default-export': 'off',
},
},
+ {
+ name: 'Config files',
+ files: ['eslint.config.mjs', '**/*/rollup.config.mjs'],
+ rules: {
+ // The config operate on the default export
+ // So allow it for them
+ 'import/no-default-export': 'off',
+ },
+ },
];