Gutenberg: `lint-js` task lints `build/` directory

Created on 3 May 2019  路  3Comments  路  Source: WordPress/gutenberg

Describe the bug

Running the JS linter will lint the build/ folder, resulting in hundreds of errors because it's minified, etc.

Expected behavior

The build/ folder should be ignored by the linter config.

[Package] Scripts [Type] Bug

Most helpful comment

Not with Gutenberg, but in general, when using wp-scripts to build blocks or other plugins that use wp.element, wp.component, etc. For example.

All 3 comments

In Gutenberg or did you mean in general? The .eslintignore in Gutenberg excludes build directories already, but I don't think there's any such default configuration in the scripts package.

Not with Gutenberg, but in general, when using wp-scripts to build blocks or other plugins that use wp.element, wp.component, etc. For example.

I would expect the same issue for lint-styles as well.

Was this page helpful?
0 / 5 - 0 ratings