Appearance
Linting
We've got a linting standard at Altruistiq that is automatically enforced by your IDE.
Overriding the linter
The linter is a tool, not a law. If you get linting errors, and you're sure you're doing nothing wrong - or you know what you're doing - you can override the linter in 3 ways:
1. single line override (preferred) Just add a comment before the line for which you want to disable a certain linting rule: // eslint-disable-next-line camelcase
This is the preferred way to override the linter, as it makes it very clear to other devs why and where you're overriding.
2. override for the file Add a comment on top of the .js
file, or just after the <script>
tag in the Vue component: /* eslint-disable camelcase */
Now the camelcase rule is disabled for the complete file. (Note the different comment style!)
3. disable the rule in .eslintrc.js
This should be your last resort! You can disable (and enable) any rule in the eslint config file.