How does eslint restrict working only to the src directory?

how does eslint restrict working only in the src directory?
how to configure it under .eslint.json?

Jul.07,2022

.eslintignore learn about


{
  "rules": {},
  "overrides": [
    {
      "files": [ "app/module1/*.js" ],
      "excludedFiles": "*.spec.js",
      "rules": {
        "quotes": [ 2, "single" ]
      }
    }
  ]
}
Menu