eslint-plugin-filenames icon indicating copy to clipboard operation
eslint-plugin-filenames copied to clipboard

Feature Request: Do not apply match-exported if file is index.js

Open bodawei opened this issue 5 years ago • 2 comments

The organization I work for has a rule very similar to what match-exported provides, except that we do not want exports from an index.js file to need to match the directory name.

We'd love to have something like another option to match-exported which would allow us to ask that it ignore index.js files.

bodawei avatar Apr 07 '19 01:04 bodawei

overrides: [
    {
      files: ['**/index.js'],
      rules: {
        'filenames/match-exported': 0
      }
    }
  ],

jsphstls avatar Dec 23 '19 18:12 jsphstls