Skip to content

Commit 301ab94

Browse files
author
Lionel Bijaoui
committed
Improve Codacy score
1 parent 0f63c63 commit 301ab94

File tree

8 files changed

+11
-7
lines changed

8 files changed

+11
-7
lines changed

dev/projects/basic/app.vue

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
</template>
1616

1717
<script>
18+
/* eslint no-console: 0 */
1819
import mixinUtils from "../../mixins/utils.js";
1920
2021
export default {

dev/projects/checklist/app.vue

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
</template>
1616

1717
<script>
18+
/* eslint no-console: 0 */
1819
import { validators } from "../../../src";
1920
import mixinUtils from "../../mixins/utils.js";
2021

dev/projects/custom/app.vue

+3-2
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
</template>
5757

5858
<script>
59+
/* eslint no-console: 0 */
5960
import mixinUtils from "../../mixins/utils.js";
6061
import VueMarkdown from "vue-markdown";
6162
@@ -182,7 +183,7 @@ https://google.com/
182183
183184
methods: {
184185
testClick(helpText, event) {
185-
// console.log(helpText, event);
186+
console.log(helpText, event);
186187
},
187188
getIcon(field, getValueFromOption) {
188189
let fieldType = getValueFromOption(field, "type");
@@ -193,7 +194,7 @@ https://google.com/
193194
date: "calendar-alt",
194195
color: "palette"
195196
};
196-
if (fieldType === "input" && typeof icons[fieldOptions.inputType] !== undefined) {
197+
if (fieldType === "input" && typeof icons[fieldOptions.inputType] !== "undefined") {
197198
return icons[fieldOptions.inputType];
198199
} else {
199200
return "file-alt";

dev/projects/full/app.vue

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
</template>
3535

3636
<script>
37+
/* eslint no-console: 0 */
3738
import Vue from "vue";
3839
import VueFormGenerator from "../../../src";
3940
import DataTable from "./dataTable.vue";

dev/projects/full/schema.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint no-console: 0 */
12
import fecha from "fecha";
23

34
import { validators } from "../../../src";

dev/projects/multi/app.vue

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
</template>
2121

2222
<script>
23+
/* eslint no-console: 0 */
2324
import mixinUtils from "../../mixins/utils.js";
2425
2526
export default {

test/unit/specs/VueFormGenerator.spec.js

-3
Original file line numberDiff line numberDiff line change
@@ -1070,9 +1070,6 @@ describe("VueFormGenerator.vue", () => {
10701070
field.validate();
10711071
Vue.config.errorHandler = done;
10721072
Vue.nextTick(() => {
1073-
console.log(form.errors);
1074-
console.log(formGenerator.emitted().validated);
1075-
10761073
expect(form.errors).to.be.length(1);
10771074
expect(formGenerator.emitted().validated).to.be.an.instanceof(Array);
10781075
expect(formGenerator.emitted().validated.length).to.be.equal(1);

test/unit/specs/fields/abstractField.spec.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -219,12 +219,13 @@ describe("abstractField.vue", () => {
219219
// options.validateAfterChanged = true;
220220

221221
wrapper.setProps({ formOptions: { validateAfterChanged: true } });
222-
console.log("---", field.value);
222+
// console.log("---", field.value);
223223
// console.log("---", wrapper);
224224
const textInput = wrapper.find(`input[type="text"]`);
225+
// console.log("---", wrapper);
225226
textInput.setValue("Jane Roe");
226227
// field.value.set("Jane Roe");
227-
console.log("---", field.value);
228+
// console.log("---", field.value);
228229
// wrapper.setData({ value: "Jane Roe" });
229230
Vue.config.errorHandler = done;
230231
Vue.nextTick(() => {

0 commit comments

Comments
 (0)