From dccbde9fe4c7be16e9eac356e4e31f907f61184a Mon Sep 17 00:00:00 2001 From: Joshua Date: Sat, 18 Mar 2023 11:00:59 +0100 Subject: [PATCH] chore: remove eslint for now and run prettier over files --- .eslintrc | 12 ------------ cypress.config.js | 1 - src/index.js | 9 +++------ src/snapshot-spec.js | 25 +++++++++++------------- src/utils/index.js | 4 ++-- src/utils/serializers/serializeToHTML.js | 1 - 6 files changed, 16 insertions(+), 36 deletions(-) delete mode 100644 .eslintrc diff --git a/.eslintrc b/.eslintrc deleted file mode 100644 index 3c1a4ae..0000000 --- a/.eslintrc +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": [ - "plugin:cypress-dev/general" - ], - "rules": { - "comma-dangle": "off", - "no-debugger": "warn" - }, - "env": { - "node": true - } -} diff --git a/cypress.config.js b/cypress.config.js index 2b063c4..7c57e27 100644 --- a/cypress.config.js +++ b/cypress.config.js @@ -1,7 +1,6 @@ const { defineConfig } = require("cypress"); const { functions } = require("./src/utils"); - module.exports = defineConfig({ snapshot: { snapshotPath: "cypress/snapshots/", diff --git a/src/index.js b/src/index.js index 9137bcf..c1cc876 100644 --- a/src/index.js +++ b/src/index.js @@ -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, +}; diff --git a/src/snapshot-spec.js b/src/snapshot-spec.js index 4f92054..947de69 100644 --- a/src/snapshot-spec.js +++ b/src/snapshot-spec.js @@ -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)); + }); +}); diff --git a/src/utils/index.js b/src/utils/index.js index 341d652..ae0b254 100644 --- a/src/utils/index.js +++ b/src/utils/index.js @@ -20,9 +20,9 @@ module.exports = { functions: { register: require("./functions/register"), - tasks: require("./functions/addTasks") + tasks: require("./functions/addTasks"), }, tasks: { - readFileMaybe + readFileMaybe, }, }; diff --git a/src/utils/serializers/serializeToHTML.js b/src/utils/serializers/serializeToHTML.js index 2399628..c62fdee 100644 --- a/src/utils/serializers/serializeToHTML.js +++ b/src/utils/serializers/serializeToHTML.js @@ -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);