Skip to content

Support ESLint 9 Flat Config Format #65

Open
@gtbuchanan

Description

@gtbuchanan

Here's what I did

Upgrade to ESLint 9 and import eslint-config-semistandard

import globals from 'globals';
import semistandard from 'eslint-config-semistandard';

export default [
  semistandard,
  {
    ignores: ["dist/**"],
    languageOptions: {
      globals: {
        ...globals.browser,
        ...globals.es2021,
        ...globals.node
      }
    }
  }
];

What I expected to happen

I should be able to import semistandard in eslint.config.js and use it as a default ruleset (see eslint-config-standard usage).

standard/eslint-config-standard@3d1284c

What seems to have happened

ESLint reports the following error:

Oops! Something went wrong! :(

ESLint: 9.0.0

A config object is using the "extends" key, which is not supported in flat config system.

Instead of "extends", you can include config objects that you'd like to extend from directly in the flat config array.

Please see the following page for more information:
https://eslint.org/docs/latest/use/configure/migration-guide#predefined-and-shareable-configs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions