Skip to content

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

Closed
@nparoski

Description

@nparoski

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": {}
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions