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

@stylistic/space-infix-ops: error in TypeScript generic #356

Open
3 of 5 tasks
amiftachulh opened this issue Apr 19, 2024 · 0 comments
Open
3 of 5 tasks

@stylistic/space-infix-ops: error in TypeScript generic #356

amiftachulh opened this issue Apr 19, 2024 · 0 comments

Comments

@amiftachulh
Copy link

amiftachulh commented Apr 19, 2024

Validations

Describe the bug

The less than < and more than > are read as operator in TypeScript generic.
space-infix-ops-bug

Reproduction

eslint.config.js

import stylistic from "@stylistic/eslint-plugin";

export default [
  stylistic.configs["recommended-flat"],
  {
    files: ["**/*.js", "**/*.ts"],
    rules: {
      "@stylistic/arrow-parens": ["error", "always"],
      "@stylistic/quotes": ["error", "double"],
      "@stylistic/semi": ["error", "always"],
    },
  },
];

Contributes

  • I am willing to submit a PR to fix this issue
  • I am willing to submit a PR with failing tests
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