In your project root, there's a file called eslintrc.js. In there, you should add the rule for spaces:
eslintrc.js
'rules': { // allow paren-less arrow functions 'arrow-parens': 0, // allow debugger during development 'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0, // indent to 4 spaces 'indent': ['error', 4] }
Also, if you use editorconfig, you can set that option in your .editorconfig file:
editorconfig
.editorconfig
... indent_size = 4 ...
I'm not positive, but I think that should do it.
thanks man! i'll try it again :)
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
In your project root, there's a file called
eslintrc.js
. In there, you should add the rule for spaces:Also, if you use
editorconfig
, you can set that option in your.editorconfig
file:I'm not positive, but I think that should do it.
thanks man! i'll try it again :)