summaryrefslogtreecommitdiffstats
path: root/.eslintrc.js
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2019-08-30 13:56:37 +0200
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2019-09-03 15:42:44 +0200
commit5a1b11179d9f0b82d93ff2108751d203aa96556e (patch)
tree722551b44b1b06be5f973c8b08075c2225fd0b8e /.eslintrc.js
parent88510f76d3bb5767bdb5bc754d94caf1a31d67e8 (diff)
Allow to toggle year
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to '.eslintrc.js')
-rw-r--r--.eslintrc.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/.eslintrc.js b/.eslintrc.js
index 7c652642..8aabc2d3 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -27,6 +27,7 @@ module.exports = {
'plugin:node/recommended',
'plugin:vue/essential',
'plugin:vue/recommended',
+ 'plugin:nextcloud/recommended',
'standard'
],
settings: {
@@ -73,8 +74,14 @@ module.exports = {
// es6 import/export and require
'node/no-unpublished-require': ['off'],
'node/no-unsupported-features/es-syntax': ['off'],
- // kebab case components for vuejs
+ // PascalCase components names for vuejs
+ // https://vuejs.org/v2/style-guide/#Single-file-component-filename-casing-strongly-recommended
'vue/component-name-in-template-casing': ['error', 'PascalCase'],
+ // force name
+ 'vue/match-component-file-name': ['error', {
+ 'extensions': ['jsx', 'vue', 'js'],
+ 'shouldMatchCase': true
+ }],
// space before self-closing elements
'vue/html-closing-bracket-spacing': 'error',
// no ending html tag on a new line