webhintio / hint

💡 A hinting engine for the web
https://webhint.io/
Apache License 2.0
3.62k stars 683 forks source link

[Bug] Browserslist configuration not being followed #5556

Open HandyHat opened 1 year ago

HandyHat commented 1 year ago

🐞 Bug report

Description

Despite setting a browserslist config in my package.json that does not include IE, the compat-api/css rule is complaining about css features that aren't supported on IE. e.g. image

Details

Webhint CLI v7.0.1

Configuration in package.json:

  "browserslist": [
    "> 0.5% in GB",
    "last 2 versions",
    "not dead",
    "Firefox ESR",
    "not and_qq >=1",
    "not kaios >=1"
  ],
  "hintConfig": {
    "extends": [
      "development",
      "web-recommended"
    ],
    "hints": {
      "apple-touch-icons": "off",
      "content-type": "off",
      "compat-api/html": "off",
      "html-checker": [
        "error",
        {
          "details": true
        }
      ],
      "http-cache": "off",
      "http-compression": "off",
      "manifest-is-valid": "off",
      "no-disallowed-headers": "off",
      "no-html-only-headers": "off",
      "no-inline-styles": "off",
      "strict-transport-security": "off",
      "x-content-type-options": "off"
    }
Dheeraj12121 commented 1 year ago

can you guide me through the steps to reproduce