简体   繁体   中英

How to disable ESLint jsx-a11y/alt-text for entire project

Does anyone know how to disable this in the eslintrc.json file for entire Next.js project?

在此处输入图像描述

I have added this, but it does not work:

{
  "extends": ["next/core-web-vitals", "prettier"],
  "rules": {
    "prefer-const": "error",
    "indent": ["error", 2],
    "jsx-a11y/img-has-alt": "off"
  }
}

Try this instead: "jsx-a11y/alt-text": [0] , see the docs for more info

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM