re: Vue on Django, Part 1 VIEW POST

FULL DISCUSSION
 

I have some problems with the lint thingy.. where should I modify it to have it four spaces instead of 2?

 

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.

 
code of conduct - report abuse