mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Fix docs build & clean-up deps (#23811)
This commit is contained in:
@@ -1,53 +0,0 @@
|
||||
const tsFilesConfig = require('../.eslintrc.js').overrides.find((o) => o.files.includes('*.ts'));
|
||||
|
||||
/** @type {import('eslint').Linter.Config} */
|
||||
module.exports = {
|
||||
ignorePatterns: ['/packages/**'],
|
||||
overrides: [
|
||||
// Apply TypeScript config to tsx files
|
||||
{
|
||||
...tsFilesConfig,
|
||||
files: [...tsFilesConfig.files, '*.tsx'],
|
||||
},
|
||||
// Code blocks in Markdown files
|
||||
{
|
||||
files: ['**/*.md'],
|
||||
plugins: ['markdown'],
|
||||
processor: 'markdown/markdown',
|
||||
},
|
||||
{
|
||||
files: ['**/*.md/**'],
|
||||
extends: ['plugin:prettier/recommended'],
|
||||
rules: {
|
||||
'prettier/prettier': ['warn', {}, { forceFormatExtracted: true }],
|
||||
},
|
||||
},
|
||||
{
|
||||
files: ['**/*.md/*.{js,ts,vue,jsx,tsx}'],
|
||||
rules: {
|
||||
'no-console': 'off',
|
||||
'no-undef': 'off',
|
||||
'no-unused-vars': 'off',
|
||||
'@typescript-eslint/no-unused-vars': 'off',
|
||||
},
|
||||
},
|
||||
{
|
||||
files: ['**/*.md/*.{jsx,tsx}'],
|
||||
extends: ['plugin:react/jsx-runtime'],
|
||||
parserOptions: {
|
||||
ecmaFeatures: {
|
||||
jsx: true,
|
||||
},
|
||||
},
|
||||
settings: {
|
||||
react: {
|
||||
version: '18',
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
files: ['**/*.md/*.{json,md,y?(a)ml,html,graphql,css}'],
|
||||
parser: 'eslint-parser-plain',
|
||||
},
|
||||
],
|
||||
};
|
||||
@@ -20,23 +20,19 @@
|
||||
"@directus/format-title": "workspace:*",
|
||||
"@directus/sdk": "workspace:*",
|
||||
"@directus/tsconfig": "workspace:*",
|
||||
"@pnpm/find-workspace-dir": "7.0.1",
|
||||
"@pnpm/find-workspace-dir": "7.0.2",
|
||||
"@pnpm/find-workspace-packages": "6.0.9",
|
||||
"eslint-parser-plain": "0.1.0",
|
||||
"eslint-plugin-markdown": "3.0.1",
|
||||
"eslint-plugin-prettier": "npm:@paescuj/eslint-plugin-prettier@5.0.1-1",
|
||||
"eslint-plugin-react": "7.35.0",
|
||||
"markdown-it-for-inline": "2.0.1",
|
||||
"marked": "12.0.2",
|
||||
"marked": "14.1.2",
|
||||
"spellchecker-cli": "6.2.0",
|
||||
"typedoc": "0.26.7",
|
||||
"typedoc-plugin-frontmatter": "0.0.2",
|
||||
"typedoc-plugin-markdown": "4.0.0-next.53",
|
||||
"typedoc": "0.26.8",
|
||||
"typedoc-plugin-frontmatter": "1.0.0",
|
||||
"typedoc-plugin-markdown": "4.2.9",
|
||||
"typedoc-plugin-zod": "1.2.1",
|
||||
"typedoc-vitepress-theme": "1.0.1",
|
||||
"typedoc-vitepress-theme": "1.0.2",
|
||||
"typescript": "5.6.2",
|
||||
"vitepress": "1.0.0-rc.4",
|
||||
"vitepress-plugin-tabs": "0.3.0",
|
||||
"vue": "3.4.27"
|
||||
"vue": "3.5.11"
|
||||
}
|
||||
}
|
||||
|
||||
800
pnpm-lock.yaml
generated
800
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -4,7 +4,7 @@ import { throwIfEmpty } from '../../utils/index.js';
|
||||
import type { RestCommand } from '../../types.js';
|
||||
|
||||
/**
|
||||
* Read the contents of a file as a ReadableStream<Uint8Array>
|
||||
* Read the contents of a file as a ReadableStream
|
||||
*
|
||||
* @param {string} key
|
||||
* @param {AssetsQuery} query
|
||||
|
||||
Reference in New Issue
Block a user