summaryrefslogtreecommitdiffstats
path: root/.eslintrc.js
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-11-07 12:05:14 +0100
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-11-07 12:05:47 +0100
commite209ea2c0ae2bcf362b58563a25bb94526f695ac (patch)
tree8232ed5735f40bf6b48baf1837c91ba5df0fc849 /.eslintrc.js
parent6bb1c1b13d68269bf70c4d594171212750e268e1 (diff)
Bump eslint config
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to '.eslintrc.js')
-rw-r--r--.eslintrc.js11
1 files changed, 6 insertions, 5 deletions
diff --git a/.eslintrc.js b/.eslintrc.js
index 91e6cb09..6c62cc72 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -15,7 +15,8 @@ module.exports = {
VueRouter: true
},
parserOptions: {
- parser: 'babel-eslint'
+ parser: 'babel-eslint',
+ ecmaVersion: 6
},
extends: [
'eslint:recommended',
@@ -42,8 +43,6 @@ module.exports = {
'no-console': ['error', { allow: ['error', 'warn', 'debug'] }],
// classes blocks
'padded-blocks': ['error', { classes: 'always' }],
- // always add a trailing comma, for diff readability
- 'comma-dangle': ["error", "only-multiline"],
// always have the operator in front
'operator-linebreak': ['error', 'before'],
// ternary on multiline
@@ -58,9 +57,11 @@ module.exports = {
}],
// es6 import/export and require
'node/no-unpublished-require': ['off'],
- 'node/no-unsupported-features': ['off'],
+ 'node/no-unsupported-features/es-syntax': ['off'],
// space before self-closing elements
'vue/html-closing-bracket-spacing': 'error',
+ // no ending html tag on a new line
+ 'vue/html-closing-bracket-newline': ['error', { multiline: 'never' }],
// code spacing with attributes
'vue/max-attributes-per-line': [
'error',
@@ -73,4 +74,4 @@ module.exports = {
}
]
}
-};
+}