webksde / ddev-vscode-devcontainer-drupal-template

Drupal DDEV based development container with attached Visual Studio Code
23 stars 3 forks source link

Add .eslintignore for only linting custom modules and themes #103

Closed joshsedl closed 2 years ago

joshsedl commented 2 years ago

For some reason

*
!web/modules/custom
...

does not work, even if it should, see https://eslint.org/docs/user-guide/configuring/ignoring-code#the-eslintignore-file

JPustkuchen commented 2 years ago

Does it perhaps need a / in the end?

!web/modules/custom/

Just an idea.

joshsedl commented 2 years ago

We are using the Drupal eslintignore now, see https://github.com/webksde/ddev-vscode-devcontainer-drupal9-template/commit/b37c8897933b4cad80c2e56fc694caad7d3fb2f6

joshsedl commented 2 years ago

@JPustkuchen the "/" didn't work, if we would implement something like this again, we could try "!web/modules/custom/*/.js". This should definitely work.