web/NPM Workspaces: Prep ESBuild plugin for publish. (#14552)
* web: Prep ESBuild plugin for publish. * prettier-config: Update deps. * eslint-config: Update deps. * docusaurus-config: Update deps. * docs: Update deps. * docs: Enable linter. * docs: Lint. * web/sfe: Clean up types. Prep for monorepo. * esbuild-plugin-live-reload: Update deps. * web: Tidy ESLint, script commands. * web: Fix logs. * web: Lint. * web: Split compile check from cached version.
This commit is contained in:
17
website/eslint.config.mjs
Normal file
17
website/eslint.config.mjs
Normal file
@ -0,0 +1,17 @@
|
||||
import { DefaultIgnorePatterns, createESLintPackageConfig } from "@goauthentik/eslint-config";
|
||||
|
||||
// @ts-check
|
||||
|
||||
/**
|
||||
* ESLint configuration for authentik's monorepo.
|
||||
*/
|
||||
const ESLintConfig = createESLintPackageConfig({
|
||||
ignorePatterns: [
|
||||
// ---
|
||||
...DefaultIgnorePatterns,
|
||||
".docusaurus/",
|
||||
"./build",
|
||||
],
|
||||
});
|
||||
|
||||
export default ESLintConfig;
|
||||
3973
website/package-lock.json
generated
3973
website/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -12,6 +12,8 @@
|
||||
"build:schema": "cp -f ../schema.yml ./static/schema.yml",
|
||||
"deploy": "docusaurus deploy",
|
||||
"docusaurus": "docusaurus",
|
||||
"lint": "eslint --fix .",
|
||||
"lint-check": "eslint --max-warnings 0 .",
|
||||
"lint:lockfile": "echo 'Skipping lockfile linting'",
|
||||
"prettier": "prettier --write .",
|
||||
"prettier-check": "prettier --check .",
|
||||
@ -48,27 +50,37 @@
|
||||
"@docusaurus/module-type-aliases": "^3.7.0",
|
||||
"@docusaurus/tsconfig": "^3.7.0",
|
||||
"@docusaurus/types": "^3.7.0",
|
||||
"@eslint/js": "^9.27.0",
|
||||
"@goauthentik/eslint-config": "^1.0.4",
|
||||
"@goauthentik/prettier-config": "^1.0.4",
|
||||
"@types/lodash": "^4.17.16",
|
||||
"@goauthentik/tsconfig": "^1.0.4",
|
||||
"@trivago/prettier-plugin-sort-imports": "^5.2.2",
|
||||
"@types/lodash": "^4.17.17",
|
||||
"@types/node": "^22.15.21",
|
||||
"@types/postman-collection": "^3.5.11",
|
||||
"@types/react": "^18.3.13",
|
||||
"@types/react": "^18.3.22",
|
||||
"@types/semver": "^7.7.0",
|
||||
"@typescript-eslint/eslint-plugin": "^8.8.0",
|
||||
"@typescript-eslint/parser": "^8.8.0",
|
||||
"cross-env": "^7.0.3",
|
||||
"eslint": "^9.11.1",
|
||||
"fast-glob": "^3.3.3",
|
||||
"npm-run-all": "^4.1.5",
|
||||
"prettier": "^3.5.3",
|
||||
"typescript": "~5.8.2"
|
||||
"prettier-plugin-packagejson": "^2.5.14",
|
||||
"typescript": "^5.8.3",
|
||||
"typescript-eslint": "^8.32.1"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"@rspack/binding-darwin-arm64": "1.3.10",
|
||||
"@rspack/binding-linux-arm64-gnu": "1.3.10",
|
||||
"@rspack/binding-linux-x64-gnu": "1.3.10",
|
||||
"@swc/core-darwin-arm64": "1.11.24",
|
||||
"@swc/core-linux-arm64-gnu": "1.11.24",
|
||||
"@swc/core-linux-x64-gnu": "1.11.24",
|
||||
"@swc/html-darwin-arm64": "1.11.24",
|
||||
"@swc/html-linux-arm64-gnu": "1.11.24",
|
||||
"@swc/html-linux-x64-gnu": "1.11.24",
|
||||
"@rspack/binding-darwin-arm64": "1.3.11",
|
||||
"@rspack/binding-linux-arm64-gnu": "1.3.11",
|
||||
"@rspack/binding-linux-x64-gnu": "1.3.11",
|
||||
"@swc/core-darwin-arm64": "1.11.29",
|
||||
"@swc/core-linux-arm64-gnu": "1.11.29",
|
||||
"@swc/core-linux-x64-gnu": "1.11.29",
|
||||
"@swc/html-darwin-arm64": "1.11.29",
|
||||
"@swc/html-linux-arm64-gnu": "1.11.29",
|
||||
"@swc/html-linux-x64-gnu": "1.11.29",
|
||||
"lightningcss-darwin-arm64": "1.30.1",
|
||||
"lightningcss-linux-arm64-gnu": "1.30.1",
|
||||
"lightningcss-linux-x64-gnu": "1.30.1"
|
||||
|
||||
@ -13,8 +13,8 @@ function remarkEnterpriseDirective() {
|
||||
/**
|
||||
* @param {Root} tree The MDAST tree to transform.
|
||||
*/
|
||||
return function (tree) {
|
||||
visit(tree, "textDirective", function (node) {
|
||||
return (tree) => {
|
||||
visit(tree, "textDirective", (node) => {
|
||||
if (node.name !== "ak-enterprise") return SKIP;
|
||||
|
||||
const data = node.data || (node.data = {});
|
||||
|
||||
@ -13,8 +13,8 @@ function remarkPreviewDirective() {
|
||||
/**
|
||||
* @param {Root} tree The MDAST tree to transform.
|
||||
*/
|
||||
return function (tree) {
|
||||
visit(tree, "textDirective", function (node) {
|
||||
return (tree) => {
|
||||
visit(tree, "textDirective", (node) => {
|
||||
if (node.name !== "ak-preview") return SKIP;
|
||||
|
||||
const data = node.data || (node.data = {});
|
||||
|
||||
@ -40,8 +40,8 @@ function remarkSupportDirective() {
|
||||
/**
|
||||
* @param {Root} tree The MDAST tree to transform.
|
||||
*/
|
||||
return function (tree) {
|
||||
visit(tree, "textDirective", function (node) {
|
||||
return (tree) => {
|
||||
visit(tree, "textDirective", (node) => {
|
||||
if (node.name !== "ak-support") return SKIP;
|
||||
|
||||
const firstChild = node.children[0];
|
||||
|
||||
@ -26,8 +26,8 @@ function remarkVersionDirective() {
|
||||
/**
|
||||
* @param {Root} tree The MDAST tree to transform.
|
||||
*/
|
||||
return function (tree) {
|
||||
visit(tree, "textDirective", function (node) {
|
||||
return (tree) => {
|
||||
visit(tree, "textDirective", (node) => {
|
||||
if (node.name !== "ak-version") return SKIP;
|
||||
|
||||
const firstChild = node.children[0];
|
||||
|
||||
@ -82,7 +82,7 @@ const DocItemContent: React.FC<Props> = ({ children }) => {
|
||||
throw new MarkdownLintError(
|
||||
`${metadata.id}: ${invalidBadges.length} Badge(s) defined in markdown content instead of the frontmatter.`,
|
||||
);
|
||||
}, []);
|
||||
}, [metadata.id]);
|
||||
|
||||
return (
|
||||
<div className={clsx(ThemeClassNames.docs.docMarkdown, "markdown")}>
|
||||
|
||||
Reference in New Issue
Block a user