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

react/no-unknown-property rule doesn't recognize border attribute on <table> #3404

Closed
nparoski opened this issue Sep 5, 2022 · 0 comments
Closed
Assignees

Comments

@nparoski
Copy link

nparoski commented Sep 5, 2022

I am working on nextjs project with jsx and typescript and I have encountered this issue "Unknown property 'border' found".
image

Code exampe:

  <table border={1}>
      ...
  </table>

My eslint config looks like this:

{
  "env": {
    "browser": true,
    "es2021": true
  },
  "extends": [
    "eslint:recommended",
    "plugin:react/recommended",
    "plugin:@typescript-eslint/recommended",
    "next/core-web-vitals"
  ],
  "parser": "@typescript-eslint/parser",
  "parserOptions": {
    "ecmaFeatures": {
      "jsx": true
    },
    "ecmaVersion": "latest",
    "sourceType": "module"
  },
  "plugins": ["react", "@typescript-eslint"],
  "rules": {}
}
@ljharb ljharb self-assigned this Sep 5, 2022
@ljharb ljharb closed this as completed in e8356ad Sep 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants