Make ESLint apply rules to only certain file name patterns

Updated answer:

Yes, now it’s possible. In your example it could look like

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

You can read more at eslint doc page.

Old answer:

Currently this is not supported. But for 2.0.0 version we are actively working on this feature.

To track progress: https://github.com/eslint/eslint/issues/3611

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)