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'
|
import set from 'lodash.set'
|
||||||
// Stores state in local storage
|
// Stores state in local storage
|
||||||
import useLocalStorage from 'shared/hooks/useLocalStorage.js'
|
import useLocalStorage from 'shared/hooks/useLocalStorage.js'
|
||||||
// Translation
|
|
||||||
import { en } from '@freesewing/i18n'
|
|
||||||
// Prebuild navigation
|
// Prebuild navigation
|
||||||
import prebuildNavigation from 'site/prebuild/navigation.js'
|
import prebuildNavigation from 'site/prebuild/navigation.js'
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@ import set from 'lodash.set'
|
||||||
// Stores state in local storage
|
// Stores state in local storage
|
||||||
import useLocalStorage from 'shared/hooks/useLocalStorage.js'
|
import useLocalStorage from 'shared/hooks/useLocalStorage.js'
|
||||||
// Translation
|
// Translation
|
||||||
import { en } from '@freesewing/i18n'
|
//import { en } from '@freesewing/i18n'
|
||||||
// Prebuild navigation
|
// Prebuild navigation
|
||||||
import prebuildNavigation from 'site/prebuild/navigation.js'
|
import prebuildNavigation from 'site/prebuild/navigation.js'
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ const SITE = process.env.SITE
|
||||||
const run = async () => {
|
const run = async () => {
|
||||||
const mdxPages = await prebuildMdx(SITE)
|
const mdxPages = await prebuildMdx(SITE)
|
||||||
const [posts, authors] = await prebuildStrapi(SITE)
|
const [posts, authors] = await prebuildStrapi(SITE)
|
||||||
await prebuildNavigation(mdxPages, posts, SITE)
|
prebuildNavigation(mdxPages, posts, SITE)
|
||||||
await prebuildContributors(SITE)
|
await prebuildContributors(SITE)
|
||||||
await prebuildPatrons(SITE)
|
await prebuildPatrons(SITE)
|
||||||
console.log()
|
console.log()
|
||||||
|
|
|
@ -108,7 +108,7 @@ export const prebuildMdx = async(site) => {
|
||||||
pages[lang][slug] = {
|
pages[lang][slug] = {
|
||||||
title: meta.data.title,
|
title: meta.data.title,
|
||||||
slug,
|
slug,
|
||||||
order: meta.data?.order
|
order: meta.data.order
|
||||||
? `${meta.data.order}${meta.data.title}`
|
? `${meta.data.order}${meta.data.title}`
|
||||||
: meta.data.title
|
: meta.data.title
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,9 +1,11 @@
|
||||||
import chai from 'chai'
|
import chai from 'chai'
|
||||||
import freesewing from '@freesewing/core'
|
//import freesewing from '@freesewing/core'
|
||||||
import plugin from '../dist/index.js'
|
//import plugin from '../dist/index.js'
|
||||||
|
|
||||||
const expect = chai.expect
|
const expect = chai.expect
|
||||||
|
|
||||||
describe('Export-MDX Plugin Tests', () => {
|
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 chai from 'chai'
|
||||||
import freesewing from '@freesewing/core'
|
//import freesewing from '@freesewing/core'
|
||||||
import plugin from '../dist/index.mjs'
|
//import plugin from '../dist/index.mjs'
|
||||||
|
|
||||||
const expect = chai.expect
|
const expect = chai.expect
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import chai from 'chai'
|
import chai from 'chai'
|
||||||
import freesewing from '@freesewing/core'
|
//import freesewing from '@freesewing/core'
|
||||||
import plugin from '../dist/index.mjs'
|
//import plugin from '../dist/index.mjs'
|
||||||
|
|
||||||
const expect = chai.expect
|
const expect = chai.expect
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import chai from 'chai'
|
import chai from 'chai'
|
||||||
import freesewing from '@freesewing/core'
|
//import freesewing from '@freesewing/core'
|
||||||
import plugin from '../dist/index.mjs'
|
//import plugin from '../dist/index.mjs'
|
||||||
|
|
||||||
const expect = chai.expect;
|
const expect = chai.expect;
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import chai from 'chai'
|
import chai from 'chai'
|
||||||
import freesewing from '@freesewing/core'
|
//import freesewing from '@freesewing/core'
|
||||||
import plugin from '../dist/index.mjs'
|
//import plugin from '../dist/index.mjs'
|
||||||
|
|
||||||
const expect = chai.expect;
|
const expect = chai.expect;
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import chai from 'chai'
|
import chai from 'chai'
|
||||||
import freesewing from '@freesewing/core'
|
//import freesewing from '@freesewing/core'
|
||||||
import plugin from '../dist/index.mjs'
|
//import plugin from '../dist/index.mjs'
|
||||||
|
|
||||||
const expect = chai.expect
|
const expect = chai.expect
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue