hey-api / openapi-ts

✨ Turn your OpenAPI specification into a beautiful TypeScript client

Home Page:https://heyapi.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

export eslint.rules for external usage

numfin opened this issue · comments

Description

Currently when i'm generating openapi-ts client my eslint is yelling at me with errors.
My workaround is to create extra config like this:

  {
    files: ["src/client/**/*"],
    rules: {
      "@typescript-eslint/no-explicit-any": "off",
      "@typescript-eslint/ban-ts-comment": "off",
      "no-prototype-builtins": "off",
      "@typescript-eslint/no-unused-vars": "off",
    },
  }

It would be nice if openapi-ts exported rules that they are violating

@numfin What would be the motivation behind such feature? Why not disable ESLint if you don't want it to throw?

.eslintignore didn't work with flatconfigs
found solution here (ignores working only if its the only option)
sorry for interruption

Maybe I should update the docs to not confuse people. Thanks for flagging!