chore: More linter warnings
This commit is contained in:
parent
8b17eea194
commit
db8f9521a3
10 changed files with 18 additions and 18 deletions
|
@ -2,8 +2,6 @@ import { useState } from 'react'
|
|||
import set from 'lodash.set'
|
||||
// Stores state in local storage
|
||||
import useLocalStorage from 'shared/hooks/useLocalStorage.js'
|
||||
// Translation
|
||||
import { en } from '@freesewing/i18n'
|
||||
// Prebuild navigation
|
||||
import prebuildNavigation from 'site/prebuild/navigation.js'
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ import set from 'lodash.set'
|
|||
// Stores state in local storage
|
||||
import useLocalStorage from 'shared/hooks/useLocalStorage.js'
|
||||
// Translation
|
||||
import { en } from '@freesewing/i18n'
|
||||
//import { en } from '@freesewing/i18n'
|
||||
// Prebuild navigation
|
||||
import prebuildNavigation from 'site/prebuild/navigation.js'
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ const SITE = process.env.SITE
|
|||
const run = async () => {
|
||||
const mdxPages = await prebuildMdx(SITE)
|
||||
const [posts, authors] = await prebuildStrapi(SITE)
|
||||
await prebuildNavigation(mdxPages, posts, SITE)
|
||||
prebuildNavigation(mdxPages, posts, SITE)
|
||||
await prebuildContributors(SITE)
|
||||
await prebuildPatrons(SITE)
|
||||
console.log()
|
||||
|
|
|
@ -108,7 +108,7 @@ export const prebuildMdx = async(site) => {
|
|||
pages[lang][slug] = {
|
||||
title: meta.data.title,
|
||||
slug,
|
||||
order: meta.data?.order
|
||||
order: meta.data.order
|
||||
? `${meta.data.order}${meta.data.title}`
|
||||
: meta.data.title
|
||||
}
|
||||
|
|
|
@ -1,9 +1,11 @@
|
|||
import chai from 'chai'
|
||||
import freesewing from '@freesewing/core'
|
||||
import plugin from '../dist/index.js'
|
||||
//import freesewing from '@freesewing/core'
|
||||
//import plugin from '../dist/index.js'
|
||||
|
||||
const expect = chai.expect
|
||||
|
||||
describe('Export-MDX Plugin Tests', () => {
|
||||
// FIXME: No tests. But then again, this plugin is quasi-abandoned
|
||||
it('FIXME: No plugin tests configured', () => {
|
||||
expect(1).to.equal(1)
|
||||
})
|
||||
})
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import chai from 'chai'
|
||||
import freesewing from '@freesewing/core'
|
||||
import plugin from '../dist/index.mjs'
|
||||
//import freesewing from '@freesewing/core'
|
||||
//import plugin from '../dist/index.mjs'
|
||||
|
||||
const expect = chai.expect
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import chai from 'chai'
|
||||
import freesewing from '@freesewing/core'
|
||||
import plugin from '../dist/index.mjs'
|
||||
//import freesewing from '@freesewing/core'
|
||||
//import plugin from '../dist/index.mjs'
|
||||
|
||||
const expect = chai.expect
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import chai from 'chai'
|
||||
import freesewing from '@freesewing/core'
|
||||
import plugin from '../dist/index.mjs'
|
||||
//import freesewing from '@freesewing/core'
|
||||
//import plugin from '../dist/index.mjs'
|
||||
|
||||
const expect = chai.expect;
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import chai from 'chai'
|
||||
import freesewing from '@freesewing/core'
|
||||
import plugin from '../dist/index.mjs'
|
||||
//import freesewing from '@freesewing/core'
|
||||
//import plugin from '../dist/index.mjs'
|
||||
|
||||
const expect = chai.expect;
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import chai from 'chai'
|
||||
import freesewing from '@freesewing/core'
|
||||
import plugin from '../dist/index.mjs'
|
||||
//import freesewing from '@freesewing/core'
|
||||
//import plugin from '../dist/index.mjs'
|
||||
|
||||
const expect = chai.expect
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue