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

Activity

self-assigned this
on Sep 5, 2022
added a commit that references this issue on Sep 5, 2022
e8356ad
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

      Participants

      @ljharb@nparoski

      Issue actions

        react/no-unknown-property rule doesn't recognize border attribute on <table> · Issue #3404 · jsx-eslint/eslint-plugin-react