From af4660b4c4fea455dfffbf2d966bae425ed6effb Mon Sep 17 00:00:00 2001
From: Zero~Informatique
Date: Wed, 12 Feb 2020 21:25:07 +0100
Subject: viewer: project configuration - eof-last enforced
---
viewer/.eslintrc.js | 3 ++-
viewer/.vscode/tasks.json | 19 ++++++++++++++++++-
viewer/src/@types/Operation.ts | 2 +-
viewer/src/@types/gallery.d.ts | 2 +-
viewer/src/@types/scrollposition.d.ts | 2 +-
viewer/src/@types/tag.d.ts | 2 +-
viewer/src/@types/v-lazy-image.d.ts | 2 +-
viewer/src/@types/vue-dragscroll.d.ts | 2 +-
viewer/src/components/LdKeyPress.vue | 2 +-
viewer/src/components/index.ts | 2 +-
viewer/src/dragscrollclickfix.ts | 2 +-
viewer/src/plugins/buefy.ts | 2 +-
viewer/src/store/galleryStore.ts | 2 +-
viewer/src/tools.ts | 2 +-
viewer/visualstudio.code-workspace | 2 ++
15 files changed, 34 insertions(+), 14 deletions(-)
(limited to 'viewer')
diff --git a/viewer/.eslintrc.js b/viewer/.eslintrc.js
index 40d2a11..e1ad89b 100644
--- a/viewer/.eslintrc.js
+++ b/viewer/.eslintrc.js
@@ -13,6 +13,7 @@ module.exports = {
rules: {
"no-console": "off",
"no-debugger": process.env.NODE_ENV === "production" ? "error" : "off",
+ 'eol-last': ['warn', 'always'],
'vue/attribute-hyphenation': 'warn',
'vue/html-closing-bracket-spacing': 'warn',
'vue/html-end-tags': 'error',
@@ -24,7 +25,7 @@ module.exports = {
'vue/v-bind-style': 'warn',
'vue/v-on-style': 'warn',
'vue/attributes-order': 'warn',
- 'vue/this-in-template': 'warn'
+ 'vue/this-in-template': 'warn',
},
parserOptions: {
diff --git a/viewer/.vscode/tasks.json b/viewer/.vscode/tasks.json
index 3c02098..102002d 100644
--- a/viewer/.vscode/tasks.json
+++ b/viewer/.vscode/tasks.json
@@ -9,7 +9,10 @@
"group": {
"kind": "build",
"isDefault": true
- }
+ },
+ "problemMatcher": [
+ "$tsc"
+ ]
},
{
"type": "npm",
@@ -17,6 +20,20 @@
"problemMatcher": [
"$tsc"
]
+ },
+ {
+ "type": "npm",
+ "script": "lint-autoformat",
+ "problemMatcher": [
+ "$tsc"
+ ]
+ },
+ {
+ "type": "npm",
+ "script": "lint",
+ "problemMatcher": [
+ "$tsc"
+ ]
}
]
}
\ No newline at end of file
diff --git a/viewer/src/@types/Operation.ts b/viewer/src/@types/Operation.ts
index f1e7a41..ba31bc0 100644
--- a/viewer/src/@types/Operation.ts
+++ b/viewer/src/@types/Operation.ts
@@ -21,4 +21,4 @@ export enum Operation {
INTERSECTION = '',
ADDITION = '+',
SUBSTRACTION = '-',
-};
\ No newline at end of file
+};
diff --git a/viewer/src/@types/gallery.d.ts b/viewer/src/@types/gallery.d.ts
index 1987416..14a7ed9 100644
--- a/viewer/src/@types/gallery.d.ts
+++ b/viewer/src/@types/gallery.d.ts
@@ -56,4 +56,4 @@ declare namespace Gallery {
}
type RawTag = string;
type ItemType = "other" | "picture" | "directory";
-}
\ No newline at end of file
+}
diff --git a/viewer/src/@types/scrollposition.d.ts b/viewer/src/@types/scrollposition.d.ts
index d4fad52..b2147fa 100644
--- a/viewer/src/@types/scrollposition.d.ts
+++ b/viewer/src/@types/scrollposition.d.ts
@@ -17,4 +17,4 @@
-- along with this program. If not, see .
*/
-type ScrollPosition = { [index: string]: number }
\ No newline at end of file
+type ScrollPosition = { [index: string]: number }
diff --git a/viewer/src/@types/tag.d.ts b/viewer/src/@types/tag.d.ts
index 1d5df88..a390c80 100644
--- a/viewer/src/@types/tag.d.ts
+++ b/viewer/src/@types/tag.d.ts
@@ -31,4 +31,4 @@ declare namespace Tag {
}
type SearchByOperation = { [index: string]: Tag.Search[] };
type Index = { [index: string]: Node };
-}
\ No newline at end of file
+}
diff --git a/viewer/src/@types/v-lazy-image.d.ts b/viewer/src/@types/v-lazy-image.d.ts
index e307751..df29484 100644
--- a/viewer/src/@types/v-lazy-image.d.ts
+++ b/viewer/src/@types/v-lazy-image.d.ts
@@ -17,4 +17,4 @@
-- along with this program. If not, see .
*/
-declare module 'v-lazy-image';
\ No newline at end of file
+declare module 'v-lazy-image';
diff --git a/viewer/src/@types/vue-dragscroll.d.ts b/viewer/src/@types/vue-dragscroll.d.ts
index b0967a9..052023d 100644
--- a/viewer/src/@types/vue-dragscroll.d.ts
+++ b/viewer/src/@types/vue-dragscroll.d.ts
@@ -17,4 +17,4 @@
-- along with this program. If not, see .
*/
-declare module 'vue-dragscroll';
\ No newline at end of file
+declare module 'vue-dragscroll';
diff --git a/viewer/src/components/LdKeyPress.vue b/viewer/src/components/LdKeyPress.vue
index 8276607..c507b33 100644
--- a/viewer/src/components/LdKeyPress.vue
+++ b/viewer/src/components/LdKeyPress.vue
@@ -46,4 +46,4 @@ export default class LdKeyPress extends Vue {
return e;
}
}
-
\ No newline at end of file
+
diff --git a/viewer/src/components/index.ts b/viewer/src/components/index.ts
index 8e73274..ef55489 100644
--- a/viewer/src/components/index.ts
+++ b/viewer/src/components/index.ts
@@ -38,4 +38,4 @@ requireComponent.keys().forEach(fileName => {
// otherwise fall back to module's root.
componentConfig.default ?? componentConfig
)
-})
\ No newline at end of file
+})
diff --git a/viewer/src/dragscrollclickfix.ts b/viewer/src/dragscrollclickfix.ts
index 00360fb..38eb106 100644
--- a/viewer/src/dragscrollclickfix.ts
+++ b/viewer/src/dragscrollclickfix.ts
@@ -49,4 +49,4 @@ export default class DragScrollClickFix {
e.stopPropagation();
}
}
-}
\ No newline at end of file
+}
diff --git a/viewer/src/plugins/buefy.ts b/viewer/src/plugins/buefy.ts
index fbffd55..74b6176 100644
--- a/viewer/src/plugins/buefy.ts
+++ b/viewer/src/plugins/buefy.ts
@@ -39,4 +39,4 @@ declare module 'vue/types/vue' {
interface Vue {
$buefy: any;
}
-}
\ No newline at end of file
+}
diff --git a/viewer/src/store/galleryStore.ts b/viewer/src/store/galleryStore.ts
index 1c95fe7..5ab0c33 100644
--- a/viewer/src/store/galleryStore.ts
+++ b/viewer/src/store/galleryStore.ts
@@ -108,4 +108,4 @@ export default class GalleryStore extends VuexModule {
}
return [];
}
-}
\ No newline at end of file
+}
diff --git a/viewer/src/tools.ts b/viewer/src/tools.ts
index 124e183..80a7ef0 100644
--- a/viewer/src/tools.ts
+++ b/viewer/src/tools.ts
@@ -56,4 +56,4 @@ export default class Tools {
}
}
-}
\ No newline at end of file
+}
diff --git a/viewer/visualstudio.code-workspace b/viewer/visualstudio.code-workspace
index 0ba3584..da96c0a 100644
--- a/viewer/visualstudio.code-workspace
+++ b/viewer/visualstudio.code-workspace
@@ -7,6 +7,8 @@
"settings": {
"editor.formatOnSave": true,
"editor.wordBasedSuggestions": false,
+ "files.insertFinalNewline": true,
+ "files.trimFinalNewlines": true,
"javascript.format.semicolons": "insert",
"typescript.disableAutomaticTypeAcquisition": true,
"vue-i18n-ally.keystyle": "flat",
--
cgit v1.2.3