eslint-plugin-filenames
eslint-plugin-filenames copied to clipboard
filenames/match-regex error using export { ... }
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!
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.