Closed greatislander closed 3 years ago
Many of our projects explicitly add .package-lock.json
to .gitignore
, and it's certainly possible to exclude it from specific checks, so it's not a bug exactly. I agree it would be a nice improvement to include it explicitly in the defaults.
Describe the bug
By default, the
lintspaces.jsonindentation
check has no excludes:https://github.com/fluid-project/fluid-lint-all/blob/7b4b73db567cf48aa4ce6417ca8668d40444f32a/src/js/lint-all.js#L246-L254
As a result, a project's
package-lock.json
file will be linted by default, producing thousands of indentation errors.To reproduce
Review the GitHub Actions output for a repository I've created to demonstrate the issue, greatislander/lintspaces-test.
Or:
npm install
npm test
lintspaces.jsonindentation
.Expected behavior
package-lock.json
be excluded from this check by default. I expect this may be as simple as adding it to the excludes list as seen inlintspaces.newlines
:https://github.com/fluid-project/fluid-lint-all/blob/7b4b73db567cf48aa4ce6417ca8668d40444f32a/src/js/lint-all.js#L255-L280