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

filenames/match-regex error using export { ... }

Open andresinostroza opened this issue 5 years ago • 1 comments

Hi guys, first of all thank you very much for the plugin It has been very useful for me, the only issue that I have is when I'm trying to use something like this:

export {
  LoadDashboard,
  LoadCargaAchivoDeVentaData,
  UploadFileCargaArchivoDeVenta,
  LoadDataJob
}

I get "Filename 'DashboardService.js' does not match the naming convention filenames/match-regex"

My rules are:

"filenames/match-regex": [2, "/^([A-Z][a-z]+)+$/", true], "filenames/match-exported": [2, "pascal"]

Do you have some hint about it?

Cheers!

andresinostroza avatar Feb 14 '20 13:02 andresinostroza

As an alternative you can use https://github.com/Igorkowalski94/eslint-plugin-project-structure has the same capabilities + force only folders/files, has a built-in case for name, regex support, ability to inherit the name from the parent (the child inherits the name of the folder in which it is located), folder recursion (You can nest a given folder structure recursively) and eslint realtime errors.

Igorkowalski94 avatar Oct 01 '23 08:10 Igorkowalski94