diff --git a/.github/workflows/format-check.yml b/.github/workflows/format-check.yml new file mode 100644 index 0000000..6ea15f5 --- /dev/null +++ b/.github/workflows/format-check.yml @@ -0,0 +1,19 @@ +name: format-check +on: pull_request +jobs: + check-formatting: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Node.js + uses: actions/setup-node@v2 + with: + node-version: '14' + + - name: Install dependencies + run: npm install + + - name: Check formatting + run: npm run format:check diff --git a/README.md b/README.md index 794f245..b2fd2a5 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ HTTP proxy that parses only text, links and pictures from pages reducing internet traffic, removing ads and heavy scripts. Uses [Mozilla's readability.js](https://github.com/mozilla/readability), -[JSDOM](https://github.com/jsdom/jsdom), +[🔗 linkedom](https://github.com/WebReflection/linkedom), [Fastify web framework](https://github.com/fastify/fastify). ## Installation diff --git a/package-lock.json b/package-lock.json index adb2a72..17c8eef 100644 --- a/package-lock.json +++ b/package-lock.json @@ -36,6 +36,7 @@ "clean-css-cli": "^5.6.2", "copyfiles": "^2.4.1", "eslint": "^8.47.0", + "prettier": "^3.1.0", "tsc-watch": "^6.0.4", "typescript": "^5.1.6" } @@ -2599,6 +2600,21 @@ "node": ">= 0.8.0" } }, + "node_modules/prettier": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.1.0.tgz", + "integrity": "sha512-TQLvXjq5IAibjh8EpBIkNKxO749UEWABoiIZehEPiY4GNpVdhaFKqSTu+QrlU6D2dPAfubRmtJTi4K4YkQ5eXw==", + "dev": true, + "bin": { + "prettier": "bin/prettier.cjs" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" + } + }, "node_modules/process": { "version": "0.11.10", "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", diff --git a/package.json b/package.json index 15f19ba..69530c5 100644 --- a/package.json +++ b/package.json @@ -32,6 +32,7 @@ "clean-css-cli": "^5.6.2", "copyfiles": "^2.4.1", "eslint": "^8.47.0", + "prettier": "^3.1.0", "tsc-watch": "^6.0.4", "typescript": "^5.1.6" },