chore: remove eslint for now and run prettier over files

This commit is contained in:
Joshua 2023-03-18 11:00:59 +01:00
parent 2ce0c6d92b
commit dccbde9fe4
6 changed files with 16 additions and 36 deletions

View file

@ -1,12 +0,0 @@
{
"extends": [
"plugin:cypress-dev/general"
],
"rules": {
"comma-dangle": "off",
"no-debugger": "warn"
},
"env": {
"node": true
}
}

View file

@ -1,7 +1,6 @@
const { defineConfig } = require("cypress"); const { defineConfig } = require("cypress");
const { functions } = require("./src/utils"); const { functions } = require("./src/utils");
module.exports = defineConfig({ module.exports = defineConfig({
snapshot: { snapshot: {
snapshotPath: "cypress/snapshots/", snapshotPath: "cypress/snapshots/",

View file

@ -1,10 +1,7 @@
'use strict'
// global cy, Cypress // global cy, Cypress
const { functions } = require("./utils/index");
const { functions } = require('./utils/index')
module.exports = { module.exports = {
register: functions.register, register: functions.register,
tasks: functions.tasks tasks: functions.tasks,
} };

View file

@ -1,16 +1,13 @@
'use strict' const api = require(".");
const la = require("lazy-ass");
const is = require("check-more-types");
/* eslint-env mocha */ describe("@datashard/snapshot", () => {
const api = require('.') it("is an object", () => {
const la = require('lazy-ass') la(is.object(api));
const is = require('check-more-types') });
describe('@datashard/snapshot', () => { it("has register", () => {
it('is an object', () => { la(is.fn(api.register));
la(is.object(api)) });
}) });
it('has register', () => {
la(is.fn(api.register))
})
})

View file

@ -20,9 +20,9 @@ module.exports = {
functions: { functions: {
register: require("./functions/register"), register: require("./functions/register"),
tasks: require("./functions/addTasks") tasks: require("./functions/addTasks"),
}, },
tasks: { tasks: {
readFileMaybe readFileMaybe,
}, },
}; };

View file

@ -1,7 +1,6 @@
const stripTransientIdAttributes = require("./stripTransientIdAttributes"); const stripTransientIdAttributes = require("./stripTransientIdAttributes");
const beautify = require("js-beautify").html; const beautify = require("js-beautify").html;
module.exports = (el$) => { module.exports = (el$) => {
const html = el$[0].outerHTML; const html = el$[0].outerHTML;
const stripped = stripTransientIdAttributes(html); const stripped = stripTransientIdAttributes(html);