Closed A2-NieR closed 2 years ago
As jscpd is run in project mode, not a list of files, the best way to ignore vue files is to add **/*.vue
in .jscpd.json
local file, as described in the documentation :)
https://nvuillam.github.io/mega-linter/descriptors/copypaste_jscpd/
Hey thanks for the quick reply ^^ Yeah I got it to work like that, was just wondering if there is a way with the above setting to avoid cluttering the folder with another one of those files (.eslints, .gitlab-ci, .mega-linter, .prettier, .releasesrc, ...) :D
You can, by creating a folder , put linter config files in it, and define mega linter variables so they are used :)
Will look into that one, my dude (: But the .yml files need to stay in root, no? Am pretty new to gitlab ci/cd 😅
It's very common to have gitlab-ci.yml at the root, but if you prefer another location you can override it in gitlab ci/cd settings :)
For sure, but I can at least put the mega-linter config in a separate folder and include the path in the MEGALINTER_CONFIG
variable, right?
I've never seen it used like that (only for remote configuration) but it should work yes :)
I've read through it a couple of times, but can't figure our how to exclude .vue
Is it
[".vue", ""]
,[".vue", "*"]
or something completely different? 😅