diff --git a/packages/freesewing.shared/components/mdx/prev-next.js b/packages/freesewing.shared/components/mdx/prev-next.js
index 8249f8f538a..71fd9c89b47 100644
--- a/packages/freesewing.shared/components/mdx/prev-next.js
+++ b/packages/freesewing.shared/components/mdx/prev-next.js
@@ -1,8 +1,6 @@
import get from 'lodash.get'
import orderBy from 'lodash.orderby'
import Link from 'next/link'
-import Right from 'shared/components/icons/right.js'
-import Left from 'shared/components/icons/left.js'
// helper method to order nav entries
const order = obj => orderBy(obj, ['__order', '__title'], ['asc', 'asc'])
diff --git a/packages/freesewing.shared/components/navigation/primary.js b/packages/freesewing.shared/components/navigation/primary.js
index 5945a42a944..3b0045b162e 100644
--- a/packages/freesewing.shared/components/navigation/primary.js
+++ b/packages/freesewing.shared/components/navigation/primary.js
@@ -1,10 +1,7 @@
-import get from 'lodash.get'
import Link from 'next/link'
import orderBy from 'lodash.orderby'
-import Logo from 'shared/components/logos/freesewing.js'
import ThemePicker from 'shared/components/theme-picker.js'
import RssIcon from 'shared/components/icons/rss.js'
-import ThemeIcon from 'shared/components/icons/theme.js'
import TutorialIcon from 'shared/components/icons/tutorial.js'
import GuideIcon from 'shared/components/icons/guide.js'
import HelpIcon from 'shared/components/icons/help.js'
@@ -102,7 +99,7 @@ const SubLevel = ({ nodes={}, active }) => (
{child.__slug === active ? <>•> : <>°>}
- { child?.__linktitle || child.__title }
+ { child.__linktitle || child.__title }
diff --git a/packages/freesewing.shared/components/popout.js b/packages/freesewing.shared/components/popout.js
index 5c5d34cc8c3..cd8cbccab8e 100644
--- a/packages/freesewing.shared/components/popout.js
+++ b/packages/freesewing.shared/components/popout.js
@@ -10,19 +10,19 @@ const colors = {
}
let forceTailwind =
-forceTailwind =
-forceTailwind =
-forceTailwind =
-forceTailwind =
-forceTailwind =
-forceTailwind =
-forceTailwind =
-forceTailwind =
-forceTailwind =
-forceTailwind =
-forceTailwind =
-forceTailwind =
-forceTailwind =
+forceTailwind +=
+forceTailwind +=
+forceTailwind +=
+forceTailwind +=
+forceTailwind +=
+forceTailwind +=
+forceTailwind +=
+forceTailwind +=
+forceTailwind +=
+forceTailwind +=
+forceTailwind +=
+forceTailwind +=
+forceTailwind +=
const Popout = (props) => {
let type = 'none'
diff --git a/packages/freesewing.shared/package.json b/packages/freesewing.shared/package.json
index 121e6b9d938..2aee45110c9 100644
--- a/packages/freesewing.shared/package.json
+++ b/packages/freesewing.shared/package.json
@@ -22,8 +22,7 @@
"remark-extract-frontmatter": "^3.2.0",
"remark-frontmatter": "^4.0.1",
"to-vfile": "^7.2.2",
- "unist-util-visit": "^4.1.0",
- "vfile-reporter": "^7.0.3"
+ "unist-util-visit": "^4.1.0"
},
"devDependencies": {
"autoprefixer": "^10.4.0",
diff --git a/packages/freesewing.shared/prebuild/mdx.mjs b/packages/freesewing.shared/prebuild/mdx.mjs
index f09cd96a188..8a73edb1c17 100644
--- a/packages/freesewing.shared/prebuild/mdx.mjs
+++ b/packages/freesewing.shared/prebuild/mdx.mjs
@@ -1,14 +1,12 @@
import path from 'path'
import fs from 'fs'
-import { languages, strapiHost } from '../config/freesewing.mjs'
+import { languages } from '../config/freesewing.mjs'
import rdir from 'recursive-readdir'
import { unified } from 'unified'
import remarkParser from 'remark-parse'
import remarkCompiler from 'remark-stringify'
import remarkFrontmatter from 'remark-frontmatter'
import remarkFrontmatterExtractor from 'remark-extract-frontmatter'
-import remarkMdx from 'remark-mdx'
-import vfileReporter from 'vfile-reporter'
import { readSync } from 'to-vfile'
import yaml from 'js-yaml'
@@ -106,14 +104,11 @@ export const prebuildMdx = async(site) => {
const slug = fileToSlug(file, site, lang)
if (slug) {
const meta = await mdxMetaInfo(file)
- if (meta?.data?.title && meta?.data?.title) {
+ if (meta.data?.title && meta.data?.title) {
pages[lang][slug] = {
title: meta.data.title,
- order: meta.data.order
- ? meta.data.order+meta.data.title
- : meta.data.title,
slug,
- order: meta?.data?.order
+ order: meta.data?.order
? `${meta.data.order}${meta.data.title}`
: meta.data.title
}
diff --git a/packages/freesewing.shared/prebuild/navigation.mjs b/packages/freesewing.shared/prebuild/navigation.mjs
index e4a63b9e841..82cf0958d32 100644
--- a/packages/freesewing.shared/prebuild/navigation.mjs
+++ b/packages/freesewing.shared/prebuild/navigation.mjs
@@ -1,7 +1,6 @@
import path from 'path'
import fs from 'fs'
import set from 'lodash.set'
-import get from 'lodash.get'
// Some arbitrary future time
const future = new Date('10-12-2026').getTime()
@@ -51,4 +50,5 @@ export const prebuildNavigation = (mdxPages, strapiPosts, site) => {
`export default ${JSON.stringify(nav, null ,2)}`
)
+ return true
}
diff --git a/packages/freesewing.shared/prebuild/strapi.mjs b/packages/freesewing.shared/prebuild/strapi.mjs
index 80419829bb3..8088346ea6f 100644
--- a/packages/freesewing.shared/prebuild/strapi.mjs
+++ b/packages/freesewing.shared/prebuild/strapi.mjs
@@ -91,7 +91,7 @@ export const prebuildStrapi = async(site) => {
date: post.date,
slug: post.slug,
author: post.author,
- img: post?.image?.formats?.large?.url || 'https://posts.freesewing.org/uploads/logo_8401e711e4.png'
+ img: post.image?.formats?.large?.url || 'https://posts.freesewing.org/uploads/logo_8401e711e4.png'
})), null, 2)}`
)
for (const [slug, post] of Object.entries(posts[lang][type])) {
diff --git a/packages/freesewing.shared/strapi/loader.js b/packages/freesewing.shared/strapi/loader.js
index 651844095e5..f3d329e6c52 100644
--- a/packages/freesewing.shared/strapi/loader.js
+++ b/packages/freesewing.shared/strapi/loader.js
@@ -8,7 +8,6 @@ import { compile } from '@mdx-js/mdx'
// Remark plugins we want to use
import remarkFrontmatter from 'remark-frontmatter'
import remarkGfm from 'remark-gfm'
-import remarkCopyLinkedFiles from 'remark-copy-linked-files'
// Rehype plugins we want to use
import rehypeHighlight from 'rehype-highlight'
diff --git a/packages/freesewing.shared/strapi/qa.mjs b/packages/freesewing.shared/strapi/qa.mjs
index 1579c96dbf3..9fb777e255b 100644
--- a/packages/freesewing.shared/strapi/qa.mjs
+++ b/packages/freesewing.shared/strapi/qa.mjs
@@ -1,9 +1,7 @@
/*
* This tries to fix as many Strapi things as possible
*/
-import axios from 'axios'
-import { languages as allLanguages, strapiHost } from '../config/freesewing.mjs'
-import {getPosts } from '../prebuild/strapi.mjs'
+import { languages as allLanguages } from '../config/freesewing.mjs'
// What types of content to load
const content = {
diff --git a/packages/freesewing.shared/themes/dark.js b/packages/freesewing.shared/themes/dark.js
index 88a1fe9aecf..f286b4b2d63 100644
--- a/packages/freesewing.shared/themes/dark.js
+++ b/packages/freesewing.shared/themes/dark.js
@@ -1,5 +1,4 @@
const colors = require('tailwindcss/colors')
-const gray = colors.neutral
module.exports = {
'fontFamily': '-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif',
diff --git a/packages/freesewing.shared/themes/hax0r.js b/packages/freesewing.shared/themes/hax0r.js
index 9fe7a34d57c..d8a0c40de6e 100644
--- a/packages/freesewing.shared/themes/hax0r.js
+++ b/packages/freesewing.shared/themes/hax0r.js
@@ -74,14 +74,6 @@ module.exports = {
'--pattern-mark': colors.blue['500'],
'--pattern-contrast': colors.pink['500'],
'--pattern-note': colors.violet['500'],
- '--pattern-fabric': colors.neutral['700'],
- '--pattern-lining': colors.emerald['500'],
- '--pattern-interfacing': colors.neutral['400'],
- '--pattern-canvas': colors.amber['600'],
- '--pattern-various': colors.red['500'],
- '--pattern-mark': colors.blue['500'],
- '--pattern-contrast': colors.pink['500'],
- '--pattern-note': colors.violet['500'],
'--pattern-dev-0': colors.red['500'],
'--pattern-dev-1': colors.green['500'],
diff --git a/packages/plugin-banner/tests/shared.test.mjs b/packages/plugin-banner/tests/shared.test.mjs
index 42cd98f4655..d6732ed0838 100644
--- a/packages/plugin-banner/tests/shared.test.mjs
+++ b/packages/plugin-banner/tests/shared.test.mjs
@@ -1,10 +1,8 @@
// This file is auto-generated.
// Changes you make will be overwritten.
-import freesewing from '@freesewing/core'
-import chai from 'chai'
import plugin from '../dist/index.mjs'
import { sharedPluginTests } from '../../../tests/plugins/shared.mjs'
// Run shared tests
-sharedPluginTests(plugin, freesewing, chai.expect)
+sharedPluginTests(plugin)
diff --git a/packages/plugin-bartack/tests/shared.test.mjs b/packages/plugin-bartack/tests/shared.test.mjs
index 42cd98f4655..d6732ed0838 100644
--- a/packages/plugin-bartack/tests/shared.test.mjs
+++ b/packages/plugin-bartack/tests/shared.test.mjs
@@ -1,10 +1,8 @@
// This file is auto-generated.
// Changes you make will be overwritten.
-import freesewing from '@freesewing/core'
-import chai from 'chai'
import plugin from '../dist/index.mjs'
import { sharedPluginTests } from '../../../tests/plugins/shared.mjs'
// Run shared tests
-sharedPluginTests(plugin, freesewing, chai.expect)
+sharedPluginTests(plugin)
diff --git a/packages/plugin-bundle/tests/shared.test.mjs b/packages/plugin-bundle/tests/shared.test.mjs
index 42cd98f4655..d6732ed0838 100644
--- a/packages/plugin-bundle/tests/shared.test.mjs
+++ b/packages/plugin-bundle/tests/shared.test.mjs
@@ -1,10 +1,8 @@
// This file is auto-generated.
// Changes you make will be overwritten.
-import freesewing from '@freesewing/core'
-import chai from 'chai'
import plugin from '../dist/index.mjs'
import { sharedPluginTests } from '../../../tests/plugins/shared.mjs'
// Run shared tests
-sharedPluginTests(plugin, freesewing, chai.expect)
+sharedPluginTests(plugin)
diff --git a/packages/plugin-bust/tests/shared.test.mjs b/packages/plugin-bust/tests/shared.test.mjs
index 42cd98f4655..d6732ed0838 100644
--- a/packages/plugin-bust/tests/shared.test.mjs
+++ b/packages/plugin-bust/tests/shared.test.mjs
@@ -1,10 +1,8 @@
// This file is auto-generated.
// Changes you make will be overwritten.
-import freesewing from '@freesewing/core'
-import chai from 'chai'
import plugin from '../dist/index.mjs'
import { sharedPluginTests } from '../../../tests/plugins/shared.mjs'
// Run shared tests
-sharedPluginTests(plugin, freesewing, chai.expect)
+sharedPluginTests(plugin)
diff --git a/packages/plugin-buttons/tests/shared.test.mjs b/packages/plugin-buttons/tests/shared.test.mjs
index 42cd98f4655..d6732ed0838 100644
--- a/packages/plugin-buttons/tests/shared.test.mjs
+++ b/packages/plugin-buttons/tests/shared.test.mjs
@@ -1,10 +1,8 @@
// This file is auto-generated.
// Changes you make will be overwritten.
-import freesewing from '@freesewing/core'
-import chai from 'chai'
import plugin from '../dist/index.mjs'
import { sharedPluginTests } from '../../../tests/plugins/shared.mjs'
// Run shared tests
-sharedPluginTests(plugin, freesewing, chai.expect)
+sharedPluginTests(plugin)
diff --git a/packages/plugin-cutonfold/tests/shared.test.mjs b/packages/plugin-cutonfold/tests/shared.test.mjs
index 42cd98f4655..d6732ed0838 100644
--- a/packages/plugin-cutonfold/tests/shared.test.mjs
+++ b/packages/plugin-cutonfold/tests/shared.test.mjs
@@ -1,10 +1,8 @@
// This file is auto-generated.
// Changes you make will be overwritten.
-import freesewing from '@freesewing/core'
-import chai from 'chai'
import plugin from '../dist/index.mjs'
import { sharedPluginTests } from '../../../tests/plugins/shared.mjs'
// Run shared tests
-sharedPluginTests(plugin, freesewing, chai.expect)
+sharedPluginTests(plugin)
diff --git a/packages/plugin-dimension/tests/shared.test.mjs b/packages/plugin-dimension/tests/shared.test.mjs
index 42cd98f4655..d6732ed0838 100644
--- a/packages/plugin-dimension/tests/shared.test.mjs
+++ b/packages/plugin-dimension/tests/shared.test.mjs
@@ -1,10 +1,8 @@
// This file is auto-generated.
// Changes you make will be overwritten.
-import freesewing from '@freesewing/core'
-import chai from 'chai'
import plugin from '../dist/index.mjs'
import { sharedPluginTests } from '../../../tests/plugins/shared.mjs'
// Run shared tests
-sharedPluginTests(plugin, freesewing, chai.expect)
+sharedPluginTests(plugin)
diff --git a/packages/plugin-export-dxf/tests/shared.test.mjs b/packages/plugin-export-dxf/tests/shared.test.mjs
index 42cd98f4655..d6732ed0838 100644
--- a/packages/plugin-export-dxf/tests/shared.test.mjs
+++ b/packages/plugin-export-dxf/tests/shared.test.mjs
@@ -1,10 +1,8 @@
// This file is auto-generated.
// Changes you make will be overwritten.
-import freesewing from '@freesewing/core'
-import chai from 'chai'
import plugin from '../dist/index.mjs'
import { sharedPluginTests } from '../../../tests/plugins/shared.mjs'
// Run shared tests
-sharedPluginTests(plugin, freesewing, chai.expect)
+sharedPluginTests(plugin)
diff --git a/packages/plugin-flip/tests/shared.test.mjs b/packages/plugin-flip/tests/shared.test.mjs
index 42cd98f4655..d6732ed0838 100644
--- a/packages/plugin-flip/tests/shared.test.mjs
+++ b/packages/plugin-flip/tests/shared.test.mjs
@@ -1,10 +1,8 @@
// This file is auto-generated.
// Changes you make will be overwritten.
-import freesewing from '@freesewing/core'
-import chai from 'chai'
import plugin from '../dist/index.mjs'
import { sharedPluginTests } from '../../../tests/plugins/shared.mjs'
// Run shared tests
-sharedPluginTests(plugin, freesewing, chai.expect)
+sharedPluginTests(plugin)
diff --git a/packages/plugin-gore/tests/shared.test.mjs b/packages/plugin-gore/tests/shared.test.mjs
index 42cd98f4655..d6732ed0838 100644
--- a/packages/plugin-gore/tests/shared.test.mjs
+++ b/packages/plugin-gore/tests/shared.test.mjs
@@ -1,10 +1,8 @@
// This file is auto-generated.
// Changes you make will be overwritten.
-import freesewing from '@freesewing/core'
-import chai from 'chai'
import plugin from '../dist/index.mjs'
import { sharedPluginTests } from '../../../tests/plugins/shared.mjs'
// Run shared tests
-sharedPluginTests(plugin, freesewing, chai.expect)
+sharedPluginTests(plugin)
diff --git a/packages/plugin-grainline/tests/shared.test.mjs b/packages/plugin-grainline/tests/shared.test.mjs
index 42cd98f4655..d6732ed0838 100644
--- a/packages/plugin-grainline/tests/shared.test.mjs
+++ b/packages/plugin-grainline/tests/shared.test.mjs
@@ -1,10 +1,8 @@
// This file is auto-generated.
// Changes you make will be overwritten.
-import freesewing from '@freesewing/core'
-import chai from 'chai'
import plugin from '../dist/index.mjs'
import { sharedPluginTests } from '../../../tests/plugins/shared.mjs'
// Run shared tests
-sharedPluginTests(plugin, freesewing, chai.expect)
+sharedPluginTests(plugin)
diff --git a/packages/plugin-i18n/tests/shared.test.mjs b/packages/plugin-i18n/tests/shared.test.mjs
index 42cd98f4655..d6732ed0838 100644
--- a/packages/plugin-i18n/tests/shared.test.mjs
+++ b/packages/plugin-i18n/tests/shared.test.mjs
@@ -1,10 +1,8 @@
// This file is auto-generated.
// Changes you make will be overwritten.
-import freesewing from '@freesewing/core'
-import chai from 'chai'
import plugin from '../dist/index.mjs'
import { sharedPluginTests } from '../../../tests/plugins/shared.mjs'
// Run shared tests
-sharedPluginTests(plugin, freesewing, chai.expect)
+sharedPluginTests(plugin)
diff --git a/packages/plugin-logo/tests/shared.test.mjs b/packages/plugin-logo/tests/shared.test.mjs
index 42cd98f4655..d6732ed0838 100644
--- a/packages/plugin-logo/tests/shared.test.mjs
+++ b/packages/plugin-logo/tests/shared.test.mjs
@@ -1,10 +1,8 @@
// This file is auto-generated.
// Changes you make will be overwritten.
-import freesewing from '@freesewing/core'
-import chai from 'chai'
import plugin from '../dist/index.mjs'
import { sharedPluginTests } from '../../../tests/plugins/shared.mjs'
// Run shared tests
-sharedPluginTests(plugin, freesewing, chai.expect)
+sharedPluginTests(plugin)
diff --git a/packages/plugin-measurements/tests/shared.test.mjs b/packages/plugin-measurements/tests/shared.test.mjs
index 42cd98f4655..d6732ed0838 100644
--- a/packages/plugin-measurements/tests/shared.test.mjs
+++ b/packages/plugin-measurements/tests/shared.test.mjs
@@ -1,10 +1,8 @@
// This file is auto-generated.
// Changes you make will be overwritten.
-import freesewing from '@freesewing/core'
-import chai from 'chai'
import plugin from '../dist/index.mjs'
import { sharedPluginTests } from '../../../tests/plugins/shared.mjs'
// Run shared tests
-sharedPluginTests(plugin, freesewing, chai.expect)
+sharedPluginTests(plugin)
diff --git a/packages/plugin-mirror/tests/shared.test.mjs b/packages/plugin-mirror/tests/shared.test.mjs
index 42cd98f4655..d6732ed0838 100644
--- a/packages/plugin-mirror/tests/shared.test.mjs
+++ b/packages/plugin-mirror/tests/shared.test.mjs
@@ -1,10 +1,8 @@
// This file is auto-generated.
// Changes you make will be overwritten.
-import freesewing from '@freesewing/core'
-import chai from 'chai'
import plugin from '../dist/index.mjs'
import { sharedPluginTests } from '../../../tests/plugins/shared.mjs'
// Run shared tests
-sharedPluginTests(plugin, freesewing, chai.expect)
+sharedPluginTests(plugin)
diff --git a/packages/plugin-notches/tests/shared.test.mjs b/packages/plugin-notches/tests/shared.test.mjs
index 42cd98f4655..d6732ed0838 100644
--- a/packages/plugin-notches/tests/shared.test.mjs
+++ b/packages/plugin-notches/tests/shared.test.mjs
@@ -1,10 +1,8 @@
// This file is auto-generated.
// Changes you make will be overwritten.
-import freesewing from '@freesewing/core'
-import chai from 'chai'
import plugin from '../dist/index.mjs'
import { sharedPluginTests } from '../../../tests/plugins/shared.mjs'
// Run shared tests
-sharedPluginTests(plugin, freesewing, chai.expect)
+sharedPluginTests(plugin)
diff --git a/packages/plugin-round/tests/shared.test.mjs b/packages/plugin-round/tests/shared.test.mjs
index 42cd98f4655..d6732ed0838 100644
--- a/packages/plugin-round/tests/shared.test.mjs
+++ b/packages/plugin-round/tests/shared.test.mjs
@@ -1,10 +1,8 @@
// This file is auto-generated.
// Changes you make will be overwritten.
-import freesewing from '@freesewing/core'
-import chai from 'chai'
import plugin from '../dist/index.mjs'
import { sharedPluginTests } from '../../../tests/plugins/shared.mjs'
// Run shared tests
-sharedPluginTests(plugin, freesewing, chai.expect)
+sharedPluginTests(plugin)
diff --git a/packages/plugin-scalebox/tests/shared.test.mjs b/packages/plugin-scalebox/tests/shared.test.mjs
index 42cd98f4655..d6732ed0838 100644
--- a/packages/plugin-scalebox/tests/shared.test.mjs
+++ b/packages/plugin-scalebox/tests/shared.test.mjs
@@ -1,10 +1,8 @@
// This file is auto-generated.
// Changes you make will be overwritten.
-import freesewing from '@freesewing/core'
-import chai from 'chai'
import plugin from '../dist/index.mjs'
import { sharedPluginTests } from '../../../tests/plugins/shared.mjs'
// Run shared tests
-sharedPluginTests(plugin, freesewing, chai.expect)
+sharedPluginTests(plugin)
diff --git a/packages/plugin-sprinkle/tests/shared.test.mjs b/packages/plugin-sprinkle/tests/shared.test.mjs
index 42cd98f4655..d6732ed0838 100644
--- a/packages/plugin-sprinkle/tests/shared.test.mjs
+++ b/packages/plugin-sprinkle/tests/shared.test.mjs
@@ -1,10 +1,8 @@
// This file is auto-generated.
// Changes you make will be overwritten.
-import freesewing from '@freesewing/core'
-import chai from 'chai'
import plugin from '../dist/index.mjs'
import { sharedPluginTests } from '../../../tests/plugins/shared.mjs'
// Run shared tests
-sharedPluginTests(plugin, freesewing, chai.expect)
+sharedPluginTests(plugin)
diff --git a/packages/plugin-svgattr/tests/shared.test.mjs b/packages/plugin-svgattr/tests/shared.test.mjs
index 42cd98f4655..d6732ed0838 100644
--- a/packages/plugin-svgattr/tests/shared.test.mjs
+++ b/packages/plugin-svgattr/tests/shared.test.mjs
@@ -1,10 +1,8 @@
// This file is auto-generated.
// Changes you make will be overwritten.
-import freesewing from '@freesewing/core'
-import chai from 'chai'
import plugin from '../dist/index.mjs'
import { sharedPluginTests } from '../../../tests/plugins/shared.mjs'
// Run shared tests
-sharedPluginTests(plugin, freesewing, chai.expect)
+sharedPluginTests(plugin)
diff --git a/packages/plugin-theme/tests/shared.test.mjs b/packages/plugin-theme/tests/shared.test.mjs
index 42cd98f4655..d6732ed0838 100644
--- a/packages/plugin-theme/tests/shared.test.mjs
+++ b/packages/plugin-theme/tests/shared.test.mjs
@@ -1,10 +1,8 @@
// This file is auto-generated.
// Changes you make will be overwritten.
-import freesewing from '@freesewing/core'
-import chai from 'chai'
import plugin from '../dist/index.mjs'
import { sharedPluginTests } from '../../../tests/plugins/shared.mjs'
// Run shared tests
-sharedPluginTests(plugin, freesewing, chai.expect)
+sharedPluginTests(plugin)
diff --git a/packages/plugin-title/tests/shared.test.mjs b/packages/plugin-title/tests/shared.test.mjs
index 42cd98f4655..d6732ed0838 100644
--- a/packages/plugin-title/tests/shared.test.mjs
+++ b/packages/plugin-title/tests/shared.test.mjs
@@ -1,10 +1,8 @@
// This file is auto-generated.
// Changes you make will be overwritten.
-import freesewing from '@freesewing/core'
-import chai from 'chai'
import plugin from '../dist/index.mjs'
import { sharedPluginTests } from '../../../tests/plugins/shared.mjs'
// Run shared tests
-sharedPluginTests(plugin, freesewing, chai.expect)
+sharedPluginTests(plugin)
diff --git a/packages/plugin-validate/src/index.js b/packages/plugin-validate/src/index.js
index 16d8f2c9997..a736f74fa88 100644
--- a/packages/plugin-validate/src/index.js
+++ b/packages/plugin-validate/src/index.js
@@ -1,5 +1,4 @@
import { version, name } from '../package.json'
-import validate from './validate'
const err = 'FIXME: plugin-validate is not updated for recent core versions'
export default {
diff --git a/packages/plugin-validate/tests/shared.test.mjs b/packages/plugin-validate/tests/shared.test.mjs
index 42cd98f4655..d6732ed0838 100644
--- a/packages/plugin-validate/tests/shared.test.mjs
+++ b/packages/plugin-validate/tests/shared.test.mjs
@@ -1,10 +1,8 @@
// This file is auto-generated.
// Changes you make will be overwritten.
-import freesewing from '@freesewing/core'
-import chai from 'chai'
import plugin from '../dist/index.mjs'
import { sharedPluginTests } from '../../../tests/plugins/shared.mjs'
// Run shared tests
-sharedPluginTests(plugin, freesewing, chai.expect)
+sharedPluginTests(plugin)
diff --git a/packages/plugin-versionfree-svg/tests/shared.test.mjs b/packages/plugin-versionfree-svg/tests/shared.test.mjs
index 42cd98f4655..d6732ed0838 100644
--- a/packages/plugin-versionfree-svg/tests/shared.test.mjs
+++ b/packages/plugin-versionfree-svg/tests/shared.test.mjs
@@ -1,10 +1,8 @@
// This file is auto-generated.
// Changes you make will be overwritten.
-import freesewing from '@freesewing/core'
-import chai from 'chai'
import plugin from '../dist/index.mjs'
import { sharedPluginTests } from '../../../tests/plugins/shared.mjs'
// Run shared tests
-sharedPluginTests(plugin, freesewing, chai.expect)
+sharedPluginTests(plugin)
diff --git a/packages/plugintest/src/plugin-gore.js b/packages/plugintest/src/plugin-gore.js
index c4db16c3d16..ec9059a3b65 100644
--- a/packages/plugintest/src/plugin-gore.js
+++ b/packages/plugintest/src/plugin-gore.js
@@ -1,5 +1,5 @@
const draftDimension = (part) => {
- const { points, Point, paths, Path, snippets, Snippet, options, macro } = part.shorthand()
+ const { points, Point, options, macro } = part.shorthand()
if (['gore', 'all'].indexOf(options.plugin) !== -1) {
points.start = new Point(10, 10)
diff --git a/packages/plugintest/src/plugin-i18n.js b/packages/plugintest/src/plugin-i18n.js
index 02f69eee785..c9fc2ccdc7f 100644
--- a/packages/plugintest/src/plugin-i18n.js
+++ b/packages/plugintest/src/plugin-i18n.js
@@ -1,5 +1,5 @@
const draftI18n = (part) => {
- const { points, Point, paths, Path, options, macro, settings } = part.shorthand()
+ const { points, Point, paths, Path, options } = part.shorthand()
if (['i18n', 'all'].indexOf(options.plugin) !== -1) {
points.a = new Point(0, 0).attr('data-text', 'cutTwoStripsToFinishTheArmholes')
diff --git a/packages/plugintest/src/plugin-logo.js b/packages/plugintest/src/plugin-logo.js
index 3485f40d118..e1a964dfbfb 100644
--- a/packages/plugintest/src/plugin-logo.js
+++ b/packages/plugintest/src/plugin-logo.js
@@ -1,12 +1,3 @@
-const addThese = [
- 'button',
- 'buttonhole',
- 'buttonhole-start',
- 'buttonhole-end',
- 'snap-stud',
- 'snap-socket',
-]
-
const draftButtons = (part) => {
const { points, Point, paths, Path, snippets, Snippet, options } = part.shorthand()
diff --git a/packages/plugintest/src/plugin-scalebox.js b/packages/plugintest/src/plugin-scalebox.js
index b3be4535f0a..59fabe1579f 100644
--- a/packages/plugintest/src/plugin-scalebox.js
+++ b/packages/plugintest/src/plugin-scalebox.js
@@ -1,5 +1,5 @@
const draftScalebox = (part) => {
- const { Point, points, Path, paths, macro, options } = part.shorthand()
+ const { Point, points, macro, options } = part.shorthand()
if (['scalebox', 'all'].indexOf(options.plugin) !== -1) {
points.a = new Point(0, 0)
diff --git a/packages/rendertest/src/circles.js b/packages/rendertest/src/circles.js
index f69da4a42cd..5f13cd6228a 100644
--- a/packages/rendertest/src/circles.js
+++ b/packages/rendertest/src/circles.js
@@ -1,10 +1,9 @@
export default function (part, demo = false) {
- const { Point, Path, points, paths, store, options } = part.shorthand()
+ const { Point, points, store, options } = part.shorthand()
if (options.only === 'circles' || demo) {
let y = store.get('y')
const w = store.get('w')
- let colors = store.get('colors')
y += w / 8 + 5
for (let i = 1; i < 6; i++) {
diff --git a/packages/rendertest/src/demo.js b/packages/rendertest/src/demo.js
index 78bacb2f4c4..a8798c5446f 100644
--- a/packages/rendertest/src/demo.js
+++ b/packages/rendertest/src/demo.js
@@ -8,7 +8,7 @@ import snippets from './snippets.js'
import macros from './macros.js'
export default function (part) {
- const { macro, store, options, Path, paths, Point } = part.shorthand()
+ const { store, options, Path, paths, Point } = part.shorthand()
// Keep things in store
store.set('y', 0)
diff --git a/tests/plugins/shared.mjs b/tests/plugins/shared.mjs
index d5d2b5d6c11..12c87fab6ac 100644
--- a/tests/plugins/shared.mjs
+++ b/tests/plugins/shared.mjs
@@ -5,8 +5,6 @@ import chai from 'chai'
* It expects the following:
*
* @param object plugin: The plugin object
- * @param object freesewing: Imported @freesewing/core
- * @param object expect: Imported chai.expect
*/
export const sharedPluginTests = plugin => {