fluid-project / fluid-lint-all

Consolidated linting logic free from any particular build technology
BSD 3-Clause "New" or "Revised" License
0 stars 5 forks source link

Exclude font files from newline check #11

Closed jobara closed 3 years ago

jobara commented 3 years ago

Is your feature request related to a problem?

At the moment font files are included in the lintspaces.newlines check. However, these are binary files that do not require this check. At the moment a user of fluid-lint-all needs to setup configuration in the .fluidlintallrc.json file to explicitly exclude all of these files in the project.

For example:

{
    "lintspaces": {
        "newlines": {
            "excludes": [
                "./src/**/*.eot",
                "./src/**/*.otf",
                "./src/**/*.woff",
                "./src/**/*.woff2"
            ]
        }
    }
}

Describe the solution you'd like

These binary files, and other common ones should automatically be excluded from the lintspaces.newlines check.

the-t-in-rtf commented 3 years ago

I will address this in #31.