Skip to content

Commit

Permalink
add docs to lint + format ignores
Browse files Browse the repository at this point in the history
fix DOCS_URL
  • Loading branch information
ikreymer committed Oct 8, 2024
1 parent ae1dd1b commit b4135cc
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion frontend/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ module.exports = {
typescript: true,
},
},
ignorePatterns: ["__generated__", "__mocks__", "dist"],
ignorePatterns: ["__generated__", "__mocks__", "dist", "docs"],
overrides: [
{
extends: ["plugin:@typescript-eslint/disable-type-checked"],
Expand Down
1 change: 1 addition & 0 deletions frontend/.prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ __generated__
__mocks__
assets
dist
docs
4 changes: 2 additions & 2 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@
"build:analyze": "BUNDLE_ANALYZER=true webpack --config webpack.prod.js",
"start": "webpack serve --mode=development --config webpack.dev.js",
"serve": "node scripts/serve.js",
"lint": "eslint --fix . --ignore-pattern docs/",
"lint:check": "eslint . --ignore-pattern docs/",
"lint": "eslint --fix .",
"lint:check": "eslint .",
"lint:lit-analyzer": "lit-analyzer",
"format": "prettier --write .",
"format:check": "prettier --check .",
Expand Down
4 changes: 3 additions & 1 deletion frontend/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ const WEBSOCKET_HOST =

const DOCS_URL = process.env.DOCS_URL
? new URL(process.env.DOCS_URL)
: new URL(isDevServer ? "https://docs.browsertrix.com/" : "/docs/");
: isDevServer
? "https://docs.browsertrix.com/"
: "/docs/";

// Get git info for release version info

Expand Down

0 comments on commit b4135cc

Please sign in to comment.