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 { functions } = require("./src/utils");
module.exports = defineConfig({
snapshot: {
snapshotPath: "cypress/snapshots/",

View file

@ -1,10 +1,7 @@
'use strict'
// global cy, Cypress
const { functions } = require('./utils/index')
const { functions } = require("./utils/index");
module.exports = {
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 */
const api = require('.')
const la = require('lazy-ass')
const is = require('check-more-types')
describe("@datashard/snapshot", () => {
it("is an object", () => {
la(is.object(api));
});
describe('@datashard/snapshot', () => {
it('is an object', () => {
la(is.object(api))
})
it('has register', () => {
la(is.fn(api.register))
})
})
it("has register", () => {
la(is.fn(api.register));
});
});

View file

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

View file

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