eslint plugin:@wordpress/eslint-plugin/ not settings spaces
-
I’ve installed the eslint plugin @wordpress/eslint-plugin/recommended for the first time.
I found out that it seems to not use the wordpress coding standard for javascript.For example, when having a
const calcNumbers = [ 1, 10, 3, 7 ];
, eslint will warn me to remove the first and last space within the brackets:3:22 warning Replace
·1,·10,·3,·7·
with1,·10,·3,·7
prettier/prettierAs in the coding standard, the spaces have to be there.
Here’s my .eslintrc.json (located in my doc root where the package.json is)
Here’s my package.json (only part of the dev dependencies)Any help would be appreciated.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘eslint plugin:@wordpress/eslint-plugin/ not settings spaces’ is closed to new replies.