1
0
Fork 0

chore: Fixing linter warnings

This commit is contained in:
Joost De Cock 2022-07-12 21:07:42 +02:00
parent a195a5c0e7
commit cc4889b4ec
8 changed files with 15 additions and 27 deletions

View file

@ -5,7 +5,6 @@ export default function (part) {
Snippet,
snippets,
store,
utils,
} = part.shorthand()
points.waist2 = points.backWaistBandMid

View file

@ -1,5 +1,4 @@
import { useRouter } from 'next/router'
import Link from 'next/link'
// Shared components
import Aside from 'shared/components/navigation/aside'
import Breadcrumbs from 'shared/components/breadcrumbs.js'

View file

@ -1,7 +1,6 @@
import React from 'react'
import Page from 'site/components/wrappers/page.js'
import useApp from 'site/hooks/useApp.js'
import Head from 'next/head'
import Link from 'next/link'
import { useTranslation } from 'next-i18next'
import { formatVersionTitle } from 'site/components/version-picker.js'
@ -9,23 +8,19 @@ import Layout from 'site/components/layouts/bare'
import { PageTitle } from 'site/components/wrappers/layout'
import availableVersions from 'site/available-versions.json'
const DesignLinks = ({ list, prefix='', version=false }) => {
const { t } = useTranslation(['patterns'])
return (
<ul className="flex flex-row flex-wrap ml-8">
{list.map( d => (
<li key={d} className="p-2">
<Link href={`${prefix}/${d}`}>
<a className="capitalize text-secondary hover:text-secondary-focus hover:underline">
{d}
</a>
</Link>
</li>
))}
</ul>
)
}
const DesignLinks = ({ list, prefix='', version=false }) => (
<ul className="flex flex-row flex-wrap ml-8">
{list.map( d => (
<li key={d} className="p-2">
<Link href={`${prefix}/${d}`}>
<a className="capitalize text-secondary hover:text-secondary-focus hover:underline">
{d}
</a>
</Link>
</li>
))}
</ul>
)
const VersionLinks = ({ list, prefix='', version=false, currentDesigns=[] }) => (
<ul className="flex flex-col flex-wrap gap-2">
@ -51,8 +46,7 @@ const VersionLinks = ({ list, prefix='', version=false, currentDesigns=[] }) =>
)
const VersionListPage = ({ section=false, version=false }) => {
const app = useApp()
const { t } = useTranslation(['app'])
const app = useApp()
const currentDesigns = []
for (const section in app.designs) currentDesigns.push(...app.designs[section])

View file

@ -1,6 +1,5 @@
import Text from '../text'
import Circle from '../circle'
import { round } from 'shared/utils'
import { Tr, KeyTd, ValTd, Attributes, pointCoords } from '../path/index'
const RevealPoint = props => {

View file

@ -1,5 +1,4 @@
import { useState } from 'react'
import { SizeMe } from 'react-sizeme'
import { useTranslation } from 'next-i18next'
import fileSaver from 'file-saver'
import yaml from 'js-yaml'

View file

@ -1,4 +1,4 @@
import { Ul, Li, Summary, NoSumDiv, Deg } from 'shared/components/workbench/menu'
import { Ul, Li, NoSumDiv, Deg } from 'shared/components/workbench/menu'
import { formatMm } from 'shared/utils'
import Attributes from './attributes'
import Ops from './path-ops'

View file

@ -1,5 +1,4 @@
import path from 'path'
import { readdirSync } from 'fs'
import remarkGfm from 'remark-gfm'
import { designs, plugins } from '../../../config/software/index.mjs'

View file

@ -1,5 +1,4 @@
const colors = require('tailwindcss/colors')
const light = require('./light')
const blue = '#77cbf9'
const pink = '#ecadb9'