• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mizchi / next-editor / 1448

28 Feb 2024 12:17PM UTC coverage: 42.344% (+0.6%) from 41.712%
1448

Pull #349

circleci

web-flow
chore(deps): update babel monorepo
Pull Request #349: chore(deps): update babel monorepo

95 of 450 branches covered (21.11%)

Branch coverage included in aggregate %.

967 of 2058 relevant lines covered (46.99%)

1.93 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/lib/runTextlint.ts
1
import { TextlintKernel } from "@textlint/kernel"
×
2
import TextlintMarkdown from "@textlint/textlint-plugin-markdown"
×
3
import NoTodo from "textlint-rule-no-todo"
×
4

5
const kernel = new TextlintKernel()
×
6

7
export function runTextlint(source: string, _options: any) {
×
8
  // TODO: Load modules by option
9
  const options = {
×
10
    filePath: "/path/to/file.md",
11
    ext: ".md",
12
    plugins: [
13
      {
14
        pluginId: "markdown",
15
        plugin: TextlintMarkdown
16
      }
17
    ],
18
    rules: [
19
      {
20
        ruleId: "no-todo",
21
        rule: NoTodo
22
      }
23
      // TODO: Use prh
24
    ]
25
  }
26
  return kernel.lintText(source, options)
×
27
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc