From b4135cce2cffa9b777a6c54bdaf68ffca64173fc Mon Sep 17 00:00:00 2001 From: Ilya Kreymer Date: Mon, 7 Oct 2024 20:30:38 -0700 Subject: [PATCH] add docs to lint + format ignores fix DOCS_URL --- frontend/.eslintrc.js | 2 +- frontend/.prettierignore | 1 + frontend/package.json | 4 ++-- frontend/webpack.config.js | 4 +++- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/frontend/.eslintrc.js b/frontend/.eslintrc.js index 0b6f92d5d6..eb8341432e 100644 --- a/frontend/.eslintrc.js +++ b/frontend/.eslintrc.js @@ -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"], diff --git a/frontend/.prettierignore b/frontend/.prettierignore index 250127a9aa..faca7bf8b4 100644 --- a/frontend/.prettierignore +++ b/frontend/.prettierignore @@ -2,3 +2,4 @@ __generated__ __mocks__ assets dist +docs diff --git a/frontend/package.json b/frontend/package.json index 28c59bfcdb..8b34939a62 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -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 .", diff --git a/frontend/webpack.config.js b/frontend/webpack.config.js index a6a6288755..42a856c6db 100644 --- a/frontend/webpack.config.js +++ b/frontend/webpack.config.js @@ -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