Skip to content

Commit afa26ae

Browse files
committed
More ESLint fixes
1 parent e65f446 commit afa26ae

File tree

7 files changed

+10
-15
lines changed

7 files changed

+10
-15
lines changed

assets/js/app/editor/Components/Password.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929

3030
<script>
3131
import ProgressBar from './ProgressBar';
32+
import $ from 'jquery';
3233
3334
export default {
3435
name: 'EditorPassword',

assets/js/app/editor/Components/Select.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,9 @@ export default {
133133
value: newTag,
134134
selected: true,
135135
};
136+
// eslint-disable-next-line vue/no-mutating-props
136137
this.options.push(tag);
138+
// eslint-disable-next-line vue/no-mutating-props
137139
this.value.push(tag);
138140
this.selected.push(tag);
139141
},

assets/js/app/editor/Components/Slug.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
<script>
5454
import field from '../mixins/value';
5555
var emitter = require('tiny-emitter/instance');
56+
import $ from 'jquery';
5657
5758
export default {
5859
name: 'EditorSlug',
@@ -82,6 +83,7 @@ export default {
8283
mounted() {
8384
setTimeout(() => {
8485
let title = '';
86+
// eslint-disable-next-line no-unused-vars
8587
this.generate.split(',').forEach((element) => {
8688
title = title + $("input[name='fields[${element}]']").value;
8789
});

assets/js/app/listing/Components/Table/index.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import store from '../../store';
1414
export default {
1515
name: 'ListingTable',
1616
components: {
17+
// eslint-disable-next-line vue/no-unused-components
1718
draggable: draggable,
1819
'table-row': Row,
1920
},

assets/js/app/login/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { createApp } from 'vue';
2-
import Vue from 'vue';
32
import Password from '../editor/Components/Password';
43
import Text from '../editor/Components/Text';
54

assets/js/filters/date.js

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
1-
import Vue from 'vue';
21
import { DateTime } from 'luxon';
32

4-
// Vue.filter('date', string => {
5-
// if (string) {
6-
// return DateTime.fromISO(String(string)).toLocaleString();
7-
// }
8-
// });
9-
103
function formatAsDate(string) {
114
if (string) {
125
return DateTime.fromISO(String(string)).toLocaleString();
@@ -19,8 +12,7 @@ function formatAsDateTime(string) {
1912
}
2013
}
2114

22-
// Vue.filter('datetime', string => {
23-
// if (string) {
24-
// return DateTime.fromISO(String(string)).toLocaleString(DateTime.DATETIME_MED);
25-
// }
26-
// });
15+
export default {
16+
formatAsDate,
17+
formatAsDateTime,
18+
};

assets/js/filters/string.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import Vue from 'vue';
2-
31
function formatSlugify(string) {
42
if (string) {
53
// based on https://gist.github.com/sgmurphy/3095196

0 commit comments

Comments
 (0)