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

How to disable @typescript-eslint/no-require-imports #564

Closed
zer09 opened this issue Jun 22, 2021 · 1 comment
Closed

How to disable @typescript-eslint/no-require-imports #564

zer09 opened this issue Jun 22, 2021 · 1 comment

Comments

@zer09
Copy link

zer09 commented Jun 22, 2021

Hello good day I'm new to xo, how I can disable @typescript-eslint/no-require-imports?

I tried this, but no avail.

  "xo": {
    "rules": {
      "@typescript-eslint/no-require-imports": false
    }
  },

Thanks

@zer09
Copy link
Author

zer09 commented Jun 22, 2021

I figured it out.
I added this

  "eslintConfig": {
    "extends": [
      "xo",
      "xo-typescript"
    ],
    "rules": {
      "@typescript-eslint/no-require-imports": "off"
    }
  },
  "xo": {
    "rules": {
      "@typescript-eslint/no-require-imports": 0
    }
  },

@zer09 zer09 closed this as completed Jun 22, 2021
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