Skip to content

Commit

Permalink
Merge pull request #27 from gentlementlegen/main
Browse files Browse the repository at this point in the history
  • Loading branch information
0x4007 authored Oct 10, 2024
2 parents 2b65e83 + 7601e39 commit 3516d1d
Show file tree
Hide file tree
Showing 6 changed files with 523 additions and 636 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: Spell Check
name: Formatting Check

on:
push:

jobs:
spellcheck:
name: Check for spelling errors
name: Check for formatting errors
runs-on: ubuntu-latest

steps:
Expand All @@ -17,8 +17,7 @@ jobs:
with:
node-version: "20.10.0"

- name: Install cspell
run: yarn add cspell

- name: Run cspell
run: yarn format:cspell
- name: Run formatting checks
run: |
yarn install
yarn check-formatting
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,9 @@ await fetch("http://localhost:4000/", {
A full example can be found [here](https://github.com/ubiquibot/assistive-pricing/blob/623ea3f950f04842f2d003bda3fc7b7684e41378/tests/http/request.http).

#### Deploying the Worker
For testing purposes, the worker can be deployed through the Worker Deploy and Worker Delete workflows. It requires to
create a personal [Cloudflare Account](https://www.cloudflare.com/), and fill the `CLOUDFLARE_ACCOUNT_ID` and `CLOUDFLARE_API_TOKEN` within your

For testing purposes, the worker can be deployed through the Worker Deploy and Worker Delete workflows. It requires to
create a personal [Cloudflare Account](https://www.cloudflare.com/), and fill the `CLOUDFLARE_ACCOUNT_ID` and `CLOUDFLARE_API_TOKEN` within your
GitHub Action Secrets.

### Action Plugins
Expand Down
12 changes: 11 additions & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ export default tsEslint.config({
languageOptions: {
parser: tsEslint.parser,
parserOptions: {
project: ["./tsconfig.json"],
projectService: {
defaultProject: "tsconfig.json",
allowDefaultProject: ["*.mjs"],
},
tsconfigRootDir: import.meta.dirname,
},
},
rules: {
Expand Down Expand Up @@ -65,6 +69,12 @@ export default tsEslint.config({
"sonarjs/no-element-overwrite": "error",
"sonarjs/no-identical-conditions": "error",
"sonarjs/no-identical-expressions": "error",
"sonarjs/new-cap": "off",
"sonarjs/different-types-comparison": "off",
"sonarjs/sonar-prefer-regexp-exec": "off",
"sonarjs/function-return-type": "off",
"sonarjs/no-misleading-array-reverse": "off",
"sonarjs/slow-regex": "off",
"@typescript-eslint/naming-convention": [
"error",
{
Expand Down
15 changes: 8 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,11 @@
"scripts": {
"build": "tsc --project tsconfig.json",
"format": "run-p format:*",
"check-formatting": "run-p check-formatting:* format:cspell",
"check-formatting:lint": "eslint --fix-dry-run",
"format:lint": "eslint --fix .",
"format:prettier": "prettier --write .",
"check-formatting:prettier": "prettier --check .",
"format:cspell": "cspell **/*",
"knip": "knip --config .github/knip.ts",
"knip-ci": "knip --no-exit-code --reporter json --config .github/knip.ts",
Expand Down Expand Up @@ -48,24 +51,22 @@
"@mswjs/data": "0.16.1",
"@types/jest": "^29.5.12",
"@types/node": "20.14.5",
"cspell": "8.9.0",
"eslint": "9.5.0",
"eslint-config-prettier": "9.1.0",
"cspell": "8.14.4",
"eslint": "9.12.0",
"eslint-plugin-check-file": "2.8.0",
"eslint-plugin-prettier": "5.1.3",
"eslint-plugin-sonarjs": "1.0.3",
"husky": "9.0.11",
"jest": "29.7.0",
"jest-junit": "16.0.0",
"jest-md-dashboard": "0.8.0",
"knip": "5.21.2",
"knip": "5.33.1",
"lint-staged": "15.2.7",
"npm-run-all": "4.1.5",
"prettier": "3.3.2",
"prettier": "3.3.3",
"ts-jest": "29.1.5",
"tsx": "4.15.6",
"typescript": "5.6.2",
"typescript-eslint": "7.13.1",
"typescript-eslint": "8.8.1",
"wrangler": "3.79.0"
},
"lint-staged": {
Expand Down
2 changes: 1 addition & 1 deletion strings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"greeting": "Hello user",
"taskAssignment": "You've been assigned to the task"
}
}
Loading

0 comments on commit 3516d1d

Please sign in to comment.