Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
andresinostroza opened this issue Feb 14, 2020 · 1 comment
Open

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

andresinostroza opened this issue Feb 14, 2020 · 1 comment

Comments

@andresinostroza
Copy link

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!

@Igorkowalski94
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants