Skip to content

Commit

Permalink
Lint: autofix to new import order
Browse files Browse the repository at this point in the history
  • Loading branch information
stscoundrel committed Aug 6, 2023
1 parent a57bcb7 commit 6ab4403
Show file tree
Hide file tree
Showing 18 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion src/components/Breadcrumbs/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Link from 'next/link'
import { getBreadcrumbs } from 'lib/utils/breadcrumbs'
import { getSchema } from 'lib/utils/schema'
import Link from 'next/link'
import styles from './Breadcrumbs.module.scss'

export default function Breadcrumbs({ type, content }) {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Crosslinks/Crosslinks.test.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import renderer from 'react-test-renderer'
import { Crosslink } from 'lib/services/crosslinks'
import { DictionarySource } from 'scandinavian-dictionary-crosslinker'
import { Crosslink } from 'lib/services/crosslinks'
import Crosslinks from './index'
import styles from './Crosslinks.module.scss'

Expand Down
2 changes: 1 addition & 1 deletion src/components/Footer/Footer.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import ReactDOM from 'react-dom/client'
import Footer from 'components/Footer'
import renderer from 'react-test-renderer'
import Footer from 'components/Footer'

const letters = [
{
Expand Down
2 changes: 1 addition & 1 deletion src/components/Head/Head.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import ReactDOM from 'react-dom/client'
import Head from 'components/Head'
import renderer from 'react-test-renderer'
import Head from 'components/Head'
import { getByLetter, getWord } from 'lib/services/dictionary'

describe('Head component', () => {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Layout/Layout.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import ReactDOM from 'react-dom/client'
import Layout from 'components/Layout'
import renderer from 'react-test-renderer'
import Layout from 'components/Layout'
import { getByLetter, getWord, getAlphabet } from 'lib/services/dictionary'

describe('Layout component', () => {
Expand Down
2 changes: 1 addition & 1 deletion src/components/SearchResults/SearchTeaser/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { SearchResult } from 'lib/services/search'
import Link from 'next/link'
import { SearchResult } from 'lib/services/search'
import styles from './SearchTeaser.module.scss'

interface SearchTeaserProps {
Expand Down
2 changes: 1 addition & 1 deletion src/components/WordDefinition/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { capitalize } from 'lib/utils/strings'
import { lettersToRunes } from 'younger-futhark'
import { capitalize } from 'lib/utils/strings'
import { addAbbreviationsToContent } from 'lib/services/abbreviations'
import Abbreviations from 'components/Abbreviations'
import Crosslinks from 'components/Crosslinks'
Expand Down
2 changes: 1 addition & 1 deletion src/pages/api/search.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { NextApiRequest, NextApiResponse } from 'next';
import { getAllWords } from 'lib/services/dictionary'
import { Criteria, searchDictionary } from 'lib/services/search';
import { NextApiRequest, NextApiResponse } from 'next';

export const config = {
api: {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/api/sitemap.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { NextApiRequest, NextApiResponse } from 'next'
import { getSitemapContent, formatSitemap } from 'lib/services/sitemap'
import { SitemapStream, streamToPromise } from 'sitemap'
import { getSitemapContent, formatSitemap } from 'lib/services/sitemap'

export default async (req: NextApiRequest, res: NextApiResponse) => {
const content = getSitemapContent()
Expand Down
2 changes: 1 addition & 1 deletion src/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// Services.
import Link from 'next/link'
import { AlphabetLetter, getAlphabet } from 'lib/services/dictionary'

// Components.
import Layout from 'components/Layout'
import ContentArea from 'components/ContentArea'
import Link from 'next/link'
import SampleText from 'components/SampleText'

interface IndexProps {
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/lib/services/dictionary.test.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { getDictionary } from 'old-icelandic-zoega'
import { isArray } from 'volva'
import { matchesSchema } from 'jafningjar'
import {
getAllWords, getByLetter, getWord, getAlphabet,
} from 'lib/services/dictionary'
import { isArray } from 'volva'
import { matchesSchema } from 'jafningjar'

describe('Dictionary tests', () => {
const dictionary = getAllWords()
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/lib/services/search.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { getAllWords } from 'lib/services/dictionary'
import { searchDictionary } from 'lib/services/search'
import { isArray } from 'volva'
import { hasProperty } from 'spyrjari'
import { getAllWords } from 'lib/services/dictionary'
import { searchDictionary } from 'lib/services/search'

describe('Search tests', () => {
const dictionary = getAllWords()
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/lib/services/sitemap.test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { getSitemapContent, formatSitemap } from 'lib/services/sitemap'
import { SitemapStream, streamToPromise } from 'sitemap'
import { hasProperty } from 'spyrjari'
import { isArray } from 'volva'
import { getSitemapContent, formatSitemap } from 'lib/services/sitemap'

describe('Sitemap tests', () => {
process.env.NEXT_PUBLIC_SITE_URL = 'https://oldicelandic.test'
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/pages/404.test.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import ReactDOM from 'react-dom/client'
import Page404, { getStaticProps } from 'pages/404'
import renderer from 'react-test-renderer'
import Page404, { getStaticProps } from 'pages/404'
import { getAlphabet } from 'lib/services/dictionary'

describe('404 page page', () => {
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/pages/index.test.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import ReactDOM from 'react-dom/client'
import Index, { getStaticProps } from 'pages/index'
import renderer from 'react-test-renderer'
import { getAlphabet } from 'lib/services/dictionary'
import { matchesSchema } from 'jafningjar'
import Index, { getStaticProps } from 'pages/index'
import { getAlphabet } from 'lib/services/dictionary'

describe('Index page', () => {
test('Does not crash', () => {
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/pages/letter.test.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import ReactDOM from 'react-dom/client'
import Letter, { getStaticProps, getStaticPaths } from 'pages/letter/[letter]'
import renderer from 'react-test-renderer'
import Letter, { getStaticProps, getStaticPaths } from 'pages/letter/[letter]'
import { getByLetter, getAlphabet } from 'lib/services/dictionary'

describe('Letter page: render', () => {
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/pages/search.test.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import ReactDOM from 'react-dom/client'
import Search, { getStaticProps } from 'pages/search'
import renderer from 'react-test-renderer'
import Search, { getStaticProps } from 'pages/search'
import { getAlphabet } from 'lib/services/dictionary'

/**
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/pages/word.test.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import ReactDOM from 'react-dom/client'
import Word, { getStaticProps, getStaticPaths } from 'pages/word/[word]'
import renderer from 'react-test-renderer'
import Word, { getStaticProps, getStaticPaths } from 'pages/word/[word]'
import { getAlphabet } from 'lib/services/dictionary'

const mockHandler = jest.fn()
Expand Down

0 comments on commit 6ab4403

Please sign in to comment.