diff --git a/biome.json b/biome.json new file mode 100644 index 0000000..90c25b6 --- /dev/null +++ b/biome.json @@ -0,0 +1,12 @@ +{ + "$schema": "https://biomejs.dev/schemas/1.8.1/schema.json", + "organizeImports": { + "enabled": true + }, + "linter": { + "enabled": true, + "rules": { + "recommended": true + } + } +} diff --git a/eslint.config.js b/eslint.config.js deleted file mode 100644 index 48120ba..0000000 --- a/eslint.config.js +++ /dev/null @@ -1,9 +0,0 @@ -import pluginJs from "@eslint/js"; -import globals from "globals"; -import tseslint from "typescript-eslint"; - -export default [ - { languageOptions: { globals: { ...globals.browser, ...globals.node } } }, - pluginJs.configs.recommended, - ...tseslint.configs.recommended, -]; diff --git a/package.json b/package.json index 824b921..0c22d1c 100644 --- a/package.json +++ b/package.json @@ -1,46 +1,44 @@ { - "name": "bubo-reader", - "version": "2.0.2", - "description": "A simple but effective feed reader (RSS, JSON)", - "homepage": "https://github.com/georgemandis/bubo-rss", - "main": "src/index.ts", - "type": "module", - "scripts": { - "clean": "rm -rf dist", - "build": "bun src/index.ts", - "check": "biome check --write ./{src,config,public} ./eslint.config.js" - }, - "author": { - "name": "George Mandis", - "email": "george@mand.is", - "url": "https://george.mand.is" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/georgemandis" - }, - "bugs": { - "url": "https://github.com/georgemandis/bubo-rss/issues", - "email": "george+bubo@mand.is" - }, - "license": "MIT", - "dependencies": { - "@feelinglovelynow/get-relative-time": "^1.1.2", - "chalk": "^5.2.0", - "node-fetch": "^3.3.1", - "nunjucks": "^3.2.4", - "rss-parser": "^3.13.0" - }, - "devDependencies": { - "@biomejs/biome": "^1.8.1", - "@types/bun": "latest", - "@types/nunjucks": "^3.2.2", - "@types/xml2js": "^0.4.11", - "tslib": "^2.5.3", - "typescript": "^5.1.3", - "typescript-eslint": "^7.13.1" - }, - "trustedDependencies": [ - "@biomejs/biome" - ] + "name": "bubo-reader", + "version": "2.0.2", + "description": "A simple but effective feed reader (RSS, JSON)", + "homepage": "https://github.com/georgemandis/bubo-rss", + "main": "src/index.ts", + "type": "module", + "scripts": { + "clean": "rm -rf dist", + "build": "bun src/index.ts", + "check": "biome check --write ./{src,config,public} ./*.json --no-errors-on-unmatched" + }, + "author": { + "name": "George Mandis", + "email": "george@mand.is", + "url": "https://george.mand.is" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/georgemandis" + }, + "bugs": { + "url": "https://github.com/georgemandis/bubo-rss/issues", + "email": "george+bubo@mand.is" + }, + "license": "MIT", + "dependencies": { + "@feelinglovelynow/get-relative-time": "^1.1.2", + "chalk": "^5.2.0", + "node-fetch": "^3.3.1", + "nunjucks": "^3.2.4", + "rss-parser": "^3.13.0" + }, + "devDependencies": { + "@biomejs/biome": "^1.8.1", + "@types/bun": "latest", + "@types/nunjucks": "^3.2.2", + "@types/xml2js": "^0.4.11", + "tslib": "^2.5.3", + "typescript": "^5.1.3", + "typescript-eslint": "^7.13.1" + }, + "trustedDependencies": ["@biomejs/biome"] } diff --git a/tsconfig.json b/tsconfig.json index f9f5190..565a04d 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,30 +1,23 @@ { - "compilerOptions": { - "module": "esnext", - "forceConsistentCasingInFileNames": true, - "removeComments": true, - "strict": true, - "importHelpers": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "target": "ES2021", - "noImplicitAny": true, - "moduleResolution": "node", - "sourceMap": false, - "resolveJsonModule": true, - "outDir": "dist", - "baseUrl": ".", - "typeRoots": [ - "src/@types" - ], - "paths": { - "*": [ - "node_modules/*", - "src/@types" - ] - } - }, - "include": [ - "src/**/*" - ] -} \ No newline at end of file + "compilerOptions": { + "module": "esnext", + "forceConsistentCasingInFileNames": true, + "removeComments": true, + "strict": true, + "importHelpers": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "target": "ES2021", + "noImplicitAny": true, + "moduleResolution": "node", + "sourceMap": false, + "resolveJsonModule": true, + "outDir": "dist", + "baseUrl": ".", + "typeRoots": ["src/@types"], + "paths": { + "*": ["node_modules/*", "src/@types"] + } + }, + "include": ["src/**/*"] +}