Skip to content

Commit

Permalink
chore: Switch from Rome to Biome.
Browse files Browse the repository at this point in the history
  • Loading branch information
vxern committed Sep 17, 2023
1 parent 0952fce commit 369d049
Show file tree
Hide file tree
Showing 30 changed files with 166 additions and 145 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 0.0.1+1

- Switch from Rome to Biome, following the package having been renamed.

# 0.0.1

- Initial commit.
3 changes: 1 addition & 2 deletions rome.json → biome.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"$schema": "https://docs.rome.tools/schemas/12.1.3/schema.json",
"linter": {
"enabled": true,
"rules": {
Expand All @@ -8,7 +7,7 @@
"noEmptyInterface": "off"
},
"nursery": {
"useCamelCase": "off"
"useImportRestrictions": "off"
}
}
},
Expand Down
194 changes: 106 additions & 88 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "wiktionary-scraper",
"description": "A lightweight scraper to fetch information about words in various languages from Wiktionary.",
"license": "MIT",
"version": "0.0.1",
"version": "0.0.1+1",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"type": "module",
Expand All @@ -17,8 +17,8 @@
"language",
"dictionary",
"english",
"german",
"polish"
"german",
"polish"
],
"homepage": "https://github.com/vxern/wiktionary-scraper",
"bugs": {
Expand All @@ -41,16 +41,16 @@
"test": "mocha --no-warnings",
"publish": "tsc && npm publish"
},
"dependencies": {
"cheerio": "^1.0.0-rc.12"
},
"devDependencies": {
"@biomejs/biome": "1.2.2",
"@types/chai": "^4.3.5",
"@types/mocha": "^10.0.1",
"chai": "^4.3.7",
"mocha": "^10.2.0",
"rome": "12.1.3",
"ts-node": "^10.9.1",
"typescript": "^5.1.3"
},
"dependencies": {
"cheerio": "^1.0.0-rc.12"
}
}
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import * as cheerio from "cheerio";
import { ScraperOptions } from "./options.js";
import links from "./constants/links.js";
import selectors from "./constants/selectors.js";
import { Entry } from "./types.js";
import { ScraperOptions } from "./options.js";
import { parse } from "./parsers/parser.js";
import { Entry } from "./types.js";

const defaultScraperOptions: ScraperOptions = {
lemmaLanguage: "English",
Expand Down
10 changes: 5 additions & 5 deletions src/parsers/parser.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import * as cheerio from "cheerio";
import { Entry, Lemma, PartOfSpeech, SectionType, Sections } from "../types.js";
import selectors from "../constants/selectors.js";
import { ScraperOptions } from "../options.js";
import partsOfSpeech from "../constants/parts-of-speech.js";
import patterns from "../constants/patterns.js";
import sections from "../constants/sections.js";
import parsers from "./parsers.js";
import partsOfSpeech from "../constants/parts-of-speech.js";
import selectors from "../constants/selectors.js";
import { ScraperOptions } from "../options.js";
import { Entry, Lemma, PartOfSpeech, SectionType, Sections } from "../types.js";
import { addMissingProperties } from "../utils.js";
import parsers from "./parsers.js";

export type Parser<S extends Partial<Sections>, K extends keyof S> = (
$: cheerio.CheerioAPI,
Expand Down
Loading

0 comments on commit 369d049

Please sign in to comment.