ExportXMLWordPrintableJSON

    • Type: Sub-task
    • Resolution: Unresolved
    • Priority: Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Use Case

      As an eslint user,
      I want to adopt eslint's flat config file format for my eslint configuration,
      So that we can continue to update eslint once the legacy config format is removed in v10.

      dbx-js-tools lints with ESLint v9 through .eslintrc.json and the ESLINT_USE_FLAT_CONFIG=false environment variable. ESLint v10 removed support for the legacy config format, so npm run check:eslint fails on v10 with "ESLint couldn't find an eslint.config.* file".

      See

      User Experience

      n/a

      Dependencies

      n/a

      Risks/Unknowns

      Do all the plugins and packages we rely on support the flat config format (typescript-eslint, prettier, simple-import-sort, tsdoc, unused-imports)?

      Acceptance Criteria

      Implementation Requirements

      • Migrate dbx-js-tools' eslint to support the flat configuration file format.
      • Replace .eslintrc.json with an eslint.config.* file that keeps the same rules.
      • Remove ESLINT_USE_FLAT_CONFIG=false and --ext from the check:eslint and fix:eslint scripts.
      • Do not reformat the code base. Any reformatting goes into a separate pull request and needs team agreement.

      Testing Requirements

      • npm run check:eslint passes on the same set of files as before the migration.

      Documentation Requirements

      n/a

      Follow Up Requirements

      n/a

            Assignee:
            Unassigned
            Reporter:
            Sergey Zelenov
            None
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: