@wordpress/eslint-plugin not adding spaces #47794
Labels
[Tool] ESLint plugin
/packages/eslint-plugin
[Tool] Prettier config
/packages/prettier-config
[Type] Enhancement
A suggestion for improvement.
Description
Withing brackets, there should be spaces according to the coding standards for javascript.
Example:
var arr = [ 9, 4, 15 ];
With @wordpress/eslint-plugin and @wordpress/prettier-config installed, it still gives that error:
error Replace '·9,·4,·15·' with '9,·4,·15' prettier/prettier
Step-by-step reproduction instructions
type: module
node applicationeslint
,prettier
,@wordpress/eslint-plugin
and@wordpress/prettier-config
using npm"prettier": "@wordpress/prettier-config"
to your package.json.eslintrc.json
in your root and fill it with the content:npx eslint <filename>
Screenshots, screen recording, code snippet
No response
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: