Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update @inngest/eslint-plugin recommended config to enable rules and plugin at the same time #698

Open
fnimick opened this issue Sep 3, 2024 · 1 comment

Comments

@fnimick
Copy link

fnimick commented Sep 3, 2024

It's more difficult to enable the current separate plugin and rule configuration:

{
  "plugins": ["@inngest"],
  "extends": ["plugin:@inngest/recommended"]
}

when using the new flat configuration file format.

It's possible to do so with:

import inngestEslintPlugin from "@inngest/eslint-plugin";
export default [
  ...
  inngestEslintPlugin.configs.recommended,
  ... // other configurations
  {
    languageOptions: { ... },
    plugins: {
      "@inngest": inngestEslintPlugin,
    },
    rules: { ... },
  },
]

But it would be much nicer for the configuration to enable the plugin at the same time so this becomes a one-liner.

In addition, it would be very nice to bundle typescript types at the same time, so the import will be typed correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant