Skip to content

Upgrade eslint-plugin-import and enable consistent-type-specifier-style #1729

@seancolsen

Description

@seancolsen
  • ESLint recently added a new rule consistent-type-specifier-style. Because this rule is auto-fixable, it will allow us to keep all our type imports organized well, avoiding problems when auto-adding imports.

  • It appears that this feature is slated for inclusion in their next release, v2.27.0. When that release is available, we should upgrade to it so that we can enable this rule.

  • Then we should configure .eslintrc.cjs as follows:

    {
      rules: {
        'import/consistent-type-specifier-style': ['error', 'prefer-inline'],
      }
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    readyReady for implementationrestricted: maintainersOnly maintainers can resolve this issuework: frontendRelated to frontend code in the mathesar_ui directory

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions