Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

chore: update eslint configuration\n\nUpdate the ESLint configuration to keep the project’s linting setup aligned with its current needs.\n\nAuto-committed-on: macbook\n

Steven Enamakel06306f5caf5a
diff --git a/app/eslint.config.js b/app/eslint.config.js
index 54280b5730..2395dc1caa 100644
--- a/app/eslint.config.js
+++ b/app/eslint.config.js
@@ -141,6 +141,29 @@ export default [
},
},
+ // Barrel-import enforcement, `settings/controls` half. This one IS global:
+ // it has zero outstanding deep imports app-wide (confirmed via
+ // `rg "from '.*settings/controls/[A-Za-z]"`), so there is nothing to
+ // grandfather.
+ {
+ files: ['src/**/*.ts', 'src/**/*.tsx'],
+ ignores: ['src/components/settings/controls/**'],
+ rules: {
+ 'no-restricted-imports': [
+ 'error',
+ {
+ patterns: [
+ {
+ group: ['**/settings/controls/*', '!**/settings/controls/index'],
+ message:
+ "Import settings controls from the 'settings/controls' barrel instead of a deep path into the control file.",
+ },
+ ],
+ },
+ ],
+ },
+ },
+
// Barrel-import enforcement (S10). `src/components/ui` is documented as
// the only sanctioned import path for shared UI primitives (see its
// `index.ts` doc comment) and `src/components/settings/controls` is the
@@ -205,29 +228,6 @@ export default [
},
},
- // Barrel-import enforcement, `settings/controls` half. This one IS global:
- // it has zero outstanding deep imports app-wide (confirmed via
- // `rg "from '.*settings/controls/[A-Za-z]"`), so there is nothing to
- // grandfather.
- {
- files: ['src/**/*.ts', 'src/**/*.tsx'],
- ignores: ['src/components/settings/controls/**'],
- rules: {
- 'no-restricted-imports': [
- 'error',
- {
- patterns: [
- {
- group: ['**/settings/controls/*', '!**/settings/controls/index'],
- message:
- "Import settings controls from the 'settings/controls' barrel instead of a deep path into the control file.",
- },
- ],
- },
- ],
- },
- },
-
// React files configuration
{
files: ['src/**/*.jsx', 'src/**/*.tsx'],