Skip to content

How to lint non-asset directory #16

@hatashiro

Description

@hatashiro

Hi,

I have a non-asset directory to be linted. My project is based on Play 2.3.2 and the directory structure is like this:

- app
  - assets
    - js
- plugins

There're JavaScript files in both ./app/assets/js and ./plugins. Files in ./app/assets/js are linted without any settings, but I don't know how to include ./plugins in the directory to be linted.

I tried this:

sourceDirectory in Assets <<= baseDirectory(_ / "plugins")

Then I can lint the files in ./plugins but at that time ./app/assets/js is excluded. I think it just changed sourceDirectory, not adding the directory to it.
Is there any way to lint both of them?

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions