Skip to content

Commit

Permalink
lint: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
farnabaz committed Aug 23, 2023
1 parent e8e3263 commit 7b4485e
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/from-markdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
* Version: 2.1.0
* License: MIT (https://github.com/syntax-tree/mdast-util-directive/blob/main/license)
*/
import type { Token } from './micromark-extension/types'
import { parseEntities } from 'parse-entities'
import { kebabCase } from 'scule'
import type { Token } from './micromark-extension/types'

const canContainEols = ['textComponent']
const enter = {
Expand Down
2 changes: 1 addition & 1 deletion src/micromark-extension/factory-attributes.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import type { Effects, State, TokenTypeMap } from './types'
import { factorySpace } from 'micromark-factory-space'
import { factoryWhitespace } from 'micromark-factory-whitespace'

Expand All @@ -9,6 +8,7 @@ import {
asciiAlphanumeric,
markdownSpace
} from 'micromark-util-character'
import type { Effects, State, TokenTypeMap } from './types'
import { Codes } from './constants'

export default function createAttributes (
Expand Down
2 changes: 1 addition & 1 deletion src/micromark-extension/factory-label.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Effects, State, TokenTypeMap } from './types'
import { markdownLineEnding } from 'micromark-util-character'
import type { Effects, State, TokenTypeMap } from './types'
import { Codes } from './constants'

// This is a fork of:
Expand Down
2 changes: 1 addition & 1 deletion src/micromark-extension/factory-name.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Effects, State, Code, TokenizeContext, TokenTypeMap } from './types'
import { asciiAlpha, asciiAlphanumeric } from 'micromark-util-character'
import type { Effects, State, Code, TokenizeContext, TokenTypeMap } from './types'
import { Codes } from './constants'

export default function createName (this: TokenizeContext, effects: Effects, ok: State, nok: State, nameType: keyof TokenTypeMap) {
Expand Down
2 changes: 1 addition & 1 deletion src/micromark-extension/tokenize-attribute.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Effects, State, Code, TokenizeContext } from './types'
import { markdownLineEnding } from 'micromark-util-character'
import type { Effects, State, Code, TokenizeContext } from './types'
import { Codes } from './constants'
import createAttributes from './factory-attributes'

Expand Down
2 changes: 1 addition & 1 deletion src/micromark-extension/tokenize-container-indented.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Effects, State, TokenizeContext, Code } from './types'
import { codeFenced } from 'micromark-core-commonmark'
import { factorySpace } from 'micromark-factory-space'
import type { Effects, State, TokenizeContext, Code } from './types'
import { prefixSize } from './utils'
import componentContainer from './tokenize-container'
import { Codes } from './constants'
Expand Down
2 changes: 1 addition & 1 deletion src/micromark-extension/tokenize-container-suger.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Effects, State, TokenizeContext, Code } from './types'
import { markdownLineEnding } from 'micromark-util-character'
import { factorySpace } from 'micromark-factory-space'
import type { Effects, State, TokenizeContext, Code } from './types'
import componentContainer from './tokenize-inline'
import { Codes } from './constants'

Expand Down
2 changes: 1 addition & 1 deletion src/micromark-extension/tokenize-container.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Effects, State, Code, TokenizeContext } from './types'
import { factorySpace } from 'micromark-factory-space'
import { markdownLineEnding, asciiAlpha, markdownSpace } from 'micromark-util-character'
import type { Effects, State, Code, TokenizeContext } from './types'
import { linePrefixSize, tokenizeCodeFence, useTokenState } from './utils'
import { Codes, ContainerSequenceSize, slotSeparatorCode, slotSeparatorLength } from './constants'
import createName from './factory-name'
Expand Down
2 changes: 1 addition & 1 deletion src/micromark-extension/tokenize-frontmatter.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Effects, State, TokenizeContext, Code } from './types'
import { factorySpace } from 'micromark-factory-space'
import { markdownLineEnding, markdownSpace } from 'micromark-util-character'
import type { Effects, State, TokenizeContext, Code } from './types'
import { Codes, SectionSequenceSize } from './constants'
import { linePrefixSize } from './utils'

Expand Down
4 changes: 1 addition & 3 deletions src/micromark-extension/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ declare module 'micromark-util-types' {
bindingContent: 'bindingContent',
bindingFence: 'bindingFence',



// Component Text
componentText: 'componentText',
componentTextMarker: 'componentTextMarker',
Expand Down Expand Up @@ -61,4 +59,4 @@ declare module 'micromark-util-types' {
formGfmTaskCheckbox: 'formGfmTaskCheckbox'
doubleBracket: 'doubleBracket'
}
}
}

0 comments on commit 7b4485e

Please sign in to comment.