chore: Fixing linter warnings
This commit is contained in:
parent
a195a5c0e7
commit
cc4889b4ec
8 changed files with 15 additions and 27 deletions
|
@ -5,7 +5,6 @@ export default function (part) {
|
|||
Snippet,
|
||||
snippets,
|
||||
store,
|
||||
utils,
|
||||
} = part.shorthand()
|
||||
|
||||
points.waist2 = points.backWaistBandMid
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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,10 +8,7 @@ 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 (
|
||||
const DesignLinks = ({ list, prefix='', version=false }) => (
|
||||
<ul className="flex flex-row flex-wrap ml-8">
|
||||
{list.map( d => (
|
||||
<li key={d} className="p-2">
|
||||
|
@ -24,8 +20,7 @@ const DesignLinks = ({ list, prefix='', version=false }) => {
|
|||
</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])
|
||||
|
|
|
@ -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 => {
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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'
|
||||
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
const colors = require('tailwindcss/colors')
|
||||
const light = require('./light')
|
||||
|
||||
const blue = '#77cbf9'
|
||||
const pink = '#ecadb9'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue