Combine lint and format commands
This commit is contained in:
parent
7f0af2c0c1
commit
82026e2266
4 changed files with 47 additions and 48 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
import globals from "globals";
|
|
||||||
import pluginJs from "@eslint/js";
|
import pluginJs from "@eslint/js";
|
||||||
|
import globals from "globals";
|
||||||
import tseslint from "typescript-eslint";
|
import tseslint from "typescript-eslint";
|
||||||
|
|
||||||
export default [
|
export default [
|
||||||
|
|
|
||||||
|
|
@ -8,8 +8,7 @@
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"clean": "rm -rf dist",
|
"clean": "rm -rf dist",
|
||||||
"build": "bun src/index.js",
|
"build": "bun src/index.js",
|
||||||
"lint": "biome lint --write ./src",
|
"check": "biome check --write ./src ./eslint.config.js"
|
||||||
"format": "biome format --write ./src ./eslint.config.js"
|
|
||||||
},
|
},
|
||||||
"author": {
|
"author": {
|
||||||
"name": "George Mandis",
|
"name": "George Mandis",
|
||||||
|
|
|
||||||
26
src/index.ts
26
src/index.ts
|
|
@ -10,21 +10,21 @@
|
||||||
* Licensed under the MIT License (http://opensource.org/licenses/MIT)
|
* Licensed under the MIT License (http://opensource.org/licenses/MIT)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import fetch from "node-fetch";
|
|
||||||
import Parser from "rss-parser";
|
|
||||||
import type { Feeds, FeedItem } from "./@types/bubo";
|
|
||||||
import type { Response } from "node-fetch";
|
|
||||||
import { render } from "./renderer.js";
|
|
||||||
import {
|
|
||||||
getLink,
|
|
||||||
getTitle,
|
|
||||||
getTimestamp,
|
|
||||||
parseFeed,
|
|
||||||
getFeedList,
|
|
||||||
getBuboInfo,
|
|
||||||
} from "./utilities.js";
|
|
||||||
import { writeFile } from "node:fs/promises";
|
import { writeFile } from "node:fs/promises";
|
||||||
import chalk from "chalk";
|
import chalk from "chalk";
|
||||||
|
import fetch from "node-fetch";
|
||||||
|
import type { Response } from "node-fetch";
|
||||||
|
import Parser from "rss-parser";
|
||||||
|
import type { FeedItem, Feeds } from "./@types/bubo";
|
||||||
|
import { render } from "./renderer.js";
|
||||||
|
import {
|
||||||
|
getBuboInfo,
|
||||||
|
getFeedList,
|
||||||
|
getLink,
|
||||||
|
getTimestamp,
|
||||||
|
getTitle,
|
||||||
|
parseFeed,
|
||||||
|
} from "./utilities.js";
|
||||||
|
|
||||||
const buboInfo = await getBuboInfo();
|
const buboInfo = await getBuboInfo();
|
||||||
const parser = new Parser();
|
const parser = new Parser();
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,8 @@
|
||||||
Note: these are tightly-coupled to the template and a personal preference.
|
Note: these are tightly-coupled to the template and a personal preference.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import type { Response } from "node-fetch";
|
|
||||||
import { readFile } from "node:fs/promises";
|
import { readFile } from "node:fs/promises";
|
||||||
|
import type { Response } from "node-fetch";
|
||||||
import type { FeedItem, JSONValue } from "./@types/bubo";
|
import type { FeedItem, JSONValue } from "./@types/bubo";
|
||||||
|
|
||||||
export const getLink = (obj: FeedItem): string => {
|
export const getLink = (obj: FeedItem): string => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue