cli icon indicating copy to clipboard operation
cli copied to clipboard

ESLint plugin not recognising rules matching a folder

Open Tlacenka opened this issue 1 year ago • 1 comments

What happened?

I received different ESLint results locally and in Code PushUp report.

What would you expect to happen?

I expected the no-magic-numbers rule to be turned off for the perf folder in the utils package.

What steps did you take?

  1. I added an exception for some ESLint rules in the perf folder and added it to the root .eslintrc.json.
 {
      "files": ["perf/**/*.ts"],
      "rules": {
        "no-magic-numbers": "off",
        "sonarjs/no-duplicate-string": "off"
      }
 }
  1. I checked that ESLint no longer showed warnings e.g. for no-magic-numbers in these files.
  2. I ran Code PushUp and displayed the results in portal.
  3. There I saw these rules being treated as enabled. image

What operation system are you on?

Windows

Node version

No response

Relevant log output

No response

Tlacenka avatar Jan 19 '24 11:01 Tlacenka