summaryrefslogtreecommitdiffstats
path: root/.eslintrc.js
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-09-06 15:45:41 +0200
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-09-06 15:45:41 +0200
commit9fa5441ad16e4d897c8598213f273303828477f4 (patch)
tree32312df793ab69893f21d7ded0cc4bdb3b3fb7e2 /.eslintrc.js
parent62f160a9c8023eab651b137a9a7611a3d7138d2f (diff)
Eslint fix ternary on new lines and operator before
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to '.eslintrc.js')
-rw-r--r--.eslintrc.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/.eslintrc.js b/.eslintrc.js
index c48735df..be234f81 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -38,9 +38,13 @@ module.exports = {
'no-tabs': 0,
'vue/html-indent': ['error', 'tab'],
// only debug console
- 'no-console': ['error', { 'allow': ['error', 'warn', 'debug'] }],
+ 'no-console': ['error', { allow: ['error', 'warn', 'debug'] }],
// classes blocks
- 'padded-blocks': ['error', { 'classes': 'always' }],
+ 'padded-blocks': ['error', { classes: 'always' }],
+ // always have the operator in front
+ 'operator-linebreak': ['error', 'before'],
+ // ternary on multiline
+ 'multiline-ternary': ['error', 'always-multiline'],
// es6 import/export and require
'node/no-unpublished-require': ['off'],
'node/no-unsupported-features': ['off'],