DEV Community

Discussion on: Vue on Django, Part 1

Collapse
 
rpalo profile image
Ryan Palo

In your project root, there's a file called eslintrc.js. In there, you should add the rule for spaces:

'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:

...
indent_size = 4
...

I'm not positive, but I think that should do it.

Collapse
 
yujinyuz profile image
Yujin

thanks man! i'll try it again :)