diff --git a/.markdownlint-cli2.jsonc b/.markdownlint-cli2.jsonc index 79cd75b4bb7..fedc130ce42 100644 --- a/.markdownlint-cli2.jsonc +++ b/.markdownlint-cli2.jsonc @@ -20,6 +20,6 @@ "single-title": false, }, "gitignore": true, - "globs": ["*.md", "**/*.md"], + "globs": ["*.md", "**/*.md", "*.mdx", "**/*.mdx"], "ignores": ["**/LICENSE*.md"], } diff --git a/.markdownlintignore b/.markdownlintignore deleted file mode 100644 index 2c8fc0beb25..00000000000 --- a/.markdownlintignore +++ /dev/null @@ -1,167 +0,0 @@ -######################################### -## Files uniquely ignored by Markdownlint -######################################### - -# Ignore all files (but still allow sub-folder scanning) -* -!*/ - -# Allow certain file types -!*.md -!*.mdx - -######################## -## Same as in .gitignore -######################## - -# Logs -**/logs -**/*.log -**/npm-debug.log* -**/yarn-debug.log* -**/yarn-error.log* - -# Runtime data -pids -*.pid -*.seed -*.pid.lock - -# Directory for instrumented libs generated by jscoverage/JSCover -**/lib-cov - -# Coverage directory used by tools like istanbul -**/coverage -**/coverage.* -**/.coverage -**/.coverage.* - -# nyc test coverage -.nyc_output - -# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) -.grunt - -# Bower dependency directory (https://bower.io/) -bower_components - -# node-waf configuration -.lock-wscript - -# Tests -**/playwright-report/ -**/test-results/ - -# Compiled binary addons (https://nodejs.org/api/addons.html) -**/build/Release - -# Dependency directories -**/node_modules/ -**/jspm_packages/ - -# TypeScript v1 declaration files -typings/ - -# Optional npm cache directory -**/.npm - -# Optional eslint cache -**/.eslintcache - -# Optional REPL history -.node_repl_history - -# Output of 'npm pack' -*.tgz - -# Yarn -.pnp.* -.yarn/* -!.yarn/patches -!.yarn/plugins -!.yarn/releases -!.yarn/sdks -!.yarn/versions - -# local environment variable files -blocks/**/.env -.env.local -.env.*.local - -# macOS directory file -**/.DS_Store - -# next.js build output -**/.next - -# build files -**/dist -**/build -**/target - -# vscode config -**/.vscode/settings.json - -# intellij IDEs config -**/.idea/ - -# fleet IDEs config -**/.fleet/ - -# Python virtual environment -**/venv -**/.venv - -# Python compiled files and package metadata -**/__pycache__ -*.egg-info -**/*.pyc -**/*.pyo -**/*.pyd -**/.Python -**/pip-log.txt -**/pip-delete-this-directory.txt -**/.mypy_cache -**/.pytest_cache -**/.hypothesis -**/wheels - -# generated files -*.gen.* -*.tsbuildinfo -blocks/**/generated - -# Sentry -.sentryclirc - -# Application data -/var -seed-users.json - -# Block Protocol -.blockprotocolrc - -# Terraform -**/.terraform -*.tfstate -*.tfstate.* -*.secrets.tfvars -*.pem - -# Storybook -**/storybook-static - -# SARIF files -*.sarif - -######################### -## Shared between linters -######################### - -# Keep license files as is -LICENSE.md -LICENSE-*.md - -# Turborepo -.turbo/ -out/ diff --git a/package.json b/package.json index bd36ed6df68..82b112693c5 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,7 @@ "fix:constraints": "yarn constraints --fix", "fix:eslint": "turbo --continue fix:eslint --", "fix:taplo": "taplo fmt", - "fix:markdownlint": "markdownlint --dot --fix .", + "fix:markdownlint": "markdownlint-cli2 --fix", "fix:prettier": "prettier --write --ignore-unknown .", "fix:yarn-deduplicate": "yarn dedupe --strategy highest", "lint": "npm-run-all --continue-on-error \"lint:*\"", @@ -47,7 +47,7 @@ "lint:constraints": "yarn constraints", "lint:eslint": "turbo --continue lint:eslint --", "lint:license-in-workspaces": "yarn workspace @local/repo-chores exe scripts/check-license-in-workspaces.ts", - "lint:markdownlint": "markdownlint --dot .", + "lint:markdownlint": "markdownlint-cli2", "lint:prettier": "prettier --check --ignore-unknown .", "lint:taplo": "taplo fmt --check", "lint:tsc": "turbo --continue lint:tsc --",