Skip to content

Commit

Permalink
chore: lax some linting rules
Browse files Browse the repository at this point in the history
  • Loading branch information
atilafassina committed Oct 5, 2024
1 parent 21a12a4 commit 4b4a331
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 24 deletions.
2 changes: 2 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ export default tseslint.config(
"@typescript-eslint/no-redundant-type-constituents": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/no-unsafe-argument": "off",
"@typescript-eslint/no-unnecessary-type-assertion": "off",

// These on-by-default rules don't work well for this repo and we like them off.
"no-constant-condition": "off",
Expand Down
4 changes: 2 additions & 2 deletions src/defaults.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { DEV_DEFAULT_CSP, PROD_DEFAULT_CSP } from "./lib/csp/csp.js";
import { HeaderNames, SecHeaders } from "./types.js";
import { DEV_DEFAULT_CSP, PROD_DEFAULT_CSP } from "./lib/csp.js";

Check failure on line 1 in src/defaults.ts

View workflow job for this annotation

GitHub Actions / Build

Cannot find module './lib/csp.js' or its corresponding type declarations.

Check failure on line 1 in src/defaults.ts

View workflow job for this annotation

GitHub Actions / Lint

Can't resolve './lib/csp.js' in '/home/runner/work/shieldwall/shieldwall/src'

Check failure on line 1 in src/defaults.ts

View workflow job for this annotation

GitHub Actions / Type Check

Cannot find module './lib/csp.js' or its corresponding type declarations.
import { HeaderNames } from "./types.js";

export const HEADER_NAMES: HeaderNames = {
hsts: "Strict-Transport-Security",
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import crypto from "node:crypto";
import { DEFAULT_HEADERS, HEADER_NAMES } from "./defaults.js";
import { SecHeaders } from "./types.js";
import { keyIsHeader } from "./utils.js";
import { generateCSP } from "./lib/csp/csp.js";
import { generateCSP } from "./lib/csp.js";

Check failure on line 5 in src/index.ts

View workflow job for this annotation

GitHub Actions / release

Cannot find module './lib/csp.js' or its corresponding type declarations.

Check failure on line 5 in src/index.ts

View workflow job for this annotation

GitHub Actions / Lint

Can't resolve './lib/csp.js' in '/home/runner/work/shieldwall/shieldwall/src'

Check failure on line 5 in src/index.ts

View workflow job for this annotation

GitHub Actions / Type Check

Cannot find module './lib/csp.js' or its corresponding type declarations.
import { type FetchEvent } from "@solidjs/start/server";
import { appendHeader } from "vinxi/http";

Expand Down
21 changes: 0 additions & 21 deletions src/shieldwall.test.ts

This file was deleted.

0 comments on commit 4b4a331

Please sign in to comment.