Code format (#69)
* ci: format * Create format-check.yml * Update package.json * format
This commit is contained in:
parent
8f707c800e
commit
8524289f55
19
.github/workflows/format-check.yml
vendored
Normal file
19
.github/workflows/format-check.yml
vendored
Normal file
@ -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
|
@ -13,7 +13,7 @@ HTTP proxy that parses only text, links and pictures from pages
|
|||||||
reducing internet traffic, removing ads and heavy scripts.
|
reducing internet traffic, removing ads and heavy scripts.
|
||||||
|
|
||||||
Uses [Mozilla's readability.js](https://github.com/mozilla/readability),
|
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).
|
[Fastify web framework](https://github.com/fastify/fastify).
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
16
package-lock.json
generated
16
package-lock.json
generated
@ -36,6 +36,7 @@
|
|||||||
"clean-css-cli": "^5.6.2",
|
"clean-css-cli": "^5.6.2",
|
||||||
"copyfiles": "^2.4.1",
|
"copyfiles": "^2.4.1",
|
||||||
"eslint": "^8.47.0",
|
"eslint": "^8.47.0",
|
||||||
|
"prettier": "^3.1.0",
|
||||||
"tsc-watch": "^6.0.4",
|
"tsc-watch": "^6.0.4",
|
||||||
"typescript": "^5.1.6"
|
"typescript": "^5.1.6"
|
||||||
}
|
}
|
||||||
@ -2599,6 +2600,21 @@
|
|||||||
"node": ">= 0.8.0"
|
"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": {
|
"node_modules/process": {
|
||||||
"version": "0.11.10",
|
"version": "0.11.10",
|
||||||
"resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz",
|
"resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz",
|
||||||
|
@ -32,6 +32,7 @@
|
|||||||
"clean-css-cli": "^5.6.2",
|
"clean-css-cli": "^5.6.2",
|
||||||
"copyfiles": "^2.4.1",
|
"copyfiles": "^2.4.1",
|
||||||
"eslint": "^8.47.0",
|
"eslint": "^8.47.0",
|
||||||
|
"prettier": "^3.1.0",
|
||||||
"tsc-watch": "^6.0.4",
|
"tsc-watch": "^6.0.4",
|
||||||
"typescript": "^5.1.6"
|
"typescript": "^5.1.6"
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user