Skip to content

Commit

Permalink
[repo] Bump dependencies to latest versions where possible
Browse files Browse the repository at this point in the history
This includes a change to some markdownlint rules and configuration due
to a change in the upstream package.

Note: Not all packages can be updated as mdx has major breaking changes
which will be addressed in Docusaurus 3.
  • Loading branch information
andrewnicols committed Dec 2, 2022
1 parent da15445 commit ae808ff
Show file tree
Hide file tree
Showing 5 changed files with 2,259 additions and 1,873 deletions.
7 changes: 7 additions & 0 deletions .markdownlint-cli2.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,13 @@ config.MD049 = false;
// MD050 / strong - style - Strong style should be consistent
config.MD050 = false;

// MDL051 / link-fragments - Links fragments should be valid
// This rule is not compatible with Docusaurus as Docusaurus generates ids not present in the source.
config.MD051 = false;

// MD052 / reference-links-images - Reference links and images should use a label that is defined
// MD053 / link-image-reference-definitions - Link and image reference definitions should be needed

// Moodle casedWords.
// Used to ensure that casing of some words is correct - for example in Trademarks.
config.casedWords = {
Expand Down
4 changes: 2 additions & 2 deletions .markdownlint/cased-words.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const {
forEachLine,
getLineMetadata,
codeBlockAndSpanRanges,
overlapsAnyRange,
withinAnyRange,
} = require('markdownlint-rule-helpers');

const linkSearch = /(?<markdownLink>\[[^\]]*\](?<link>\([^)]*\)))/g;
Expand Down Expand Up @@ -78,7 +78,7 @@ module.exports = {
continue;
}

if (overlapsAnyRange(exclusions, lineIndex, match.index, match[0].length)) {
if (withinAnyRange(exclusions, lineIndex, match.index, match[0].length)) {
continue;
}

Expand Down
4 changes: 2 additions & 2 deletions .markdownlint/fix-renamed-links.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const {
forEachLine,
getLineMetadata,
codeBlockAndSpanRanges,
overlapsAnyRange,
withinAnyRange,
} = require('markdownlint-rule-helpers');

const path = require('path');
Expand Down Expand Up @@ -245,7 +245,7 @@ module.exports = {
continue;
}

if (overlapsAnyRange(exclusions, lineIndex, match.index, match[0].length)) {
if (withinAnyRange(exclusions, lineIndex, match.index, match[0].length)) {
// This match was within a code block.
// Skip.
continue;
Expand Down
80 changes: 40 additions & 40 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,20 +33,20 @@
"@docusaurus/core": "^2.2.0",
"@docusaurus/plugin-pwa": "^2.2.0",
"@docusaurus/preset-classic": "^2.2.0",
"@emotion/react": "^11.8.2",
"@emotion/styled": "^11.8.1",
"@emotion/react": "^11.10.5",
"@emotion/styled": "^11.10.5",
"@mdx-js/react": "^1.6.22",
"@mui/icons-material": "^5.6.0",
"@mui/material": "^5.5.3",
"clsx": "^1.1.1",
"commander": "5",
"dotenv": "^16.0.0",
"hast-util-from-parse5": "^5.0.0",
"prism-react-renderer": "^1.3.1",
"@mui/icons-material": "^5.10.16",
"@mui/material": "^5.10.16",
"clsx": "^1.2.1",
"commander": "5.1.0",
"dotenv": "^16.0.3",
"hast-util-from-parse5": "^7.1.0",
"prism-react-renderer": "^1.3.5",
"raw-loader": "^4.0.2",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-player": "^2.10.1"
"react-player": "^2.11.0"
},
"browserslist": {
"production": [
Expand All @@ -61,43 +61,43 @@
]
},
"devDependencies": {
"@apidevtools/json-schema-ref-parser": "^9.0.9",
"@babel/plugin-transform-runtime": "^7.18.9",
"@babel/preset-env": "^7.18.9",
"@apidevtools/json-schema-ref-parser": "^9.1.0",
"@babel/plugin-transform-runtime": "^7.19.6",
"@babel/preset-env": "^7.20.2",
"@docusaurus/module-type-aliases": "^2.2.0",
"@tsconfig/docusaurus": "^1.0.5",
"@tsconfig/docusaurus": "^1.0.6",
"@types/core-js": "^2.5.5",
"@types/node": "^17.0.31",
"@typescript-eslint/eslint-plugin": "^5.19.0",
"@typescript-eslint/parser": "^5.19.0",
"@types/node": "^18.11.10",
"@typescript-eslint/eslint-plugin": "^5.45.0",
"@typescript-eslint/parser": "^5.45.0",
"ajv-cli": "^5.0.0",
"babel-jest": "^27.5.1",
"cspell": "^5.19.7",
"eslint": "^8.13.0",
"babel-jest": "^29.3.1",
"cspell": "^6.15.1",
"eslint": "^8.28.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-plugin-header": "^3.1.1",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jest": "^26.1.4",
"eslint-plugin-jsx-a11y": "^6.5.1",
"eslint-plugin-mdx": "^1.17.0",
"eslint-plugin-react": "^7.29.4",
"eslint-plugin-react-hooks": "^4.4.0",
"eslint-plugin-regexp": "^1.6.0",
"husky": "^7.0.4",
"inquirer": "^8.2.4",
"jest": "^27.5.1",
"eslint-plugin-jest": "^27.1.6",
"eslint-plugin-jsx-a11y": "^6.6.1",
"eslint-plugin-mdx": "^1.17.1",
"eslint-plugin-react": "^7.31.11",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-regexp": "^1.11.0",
"husky": "^8.0.2",
"inquirer": "^8.2.5",
"jest": "^29.3.1",
"js-yaml": "^4.1.0",
"lint-staged": "^12.3.7",
"markdownlint-cli2": "^0.4.0",
"markdownlint-rule-helpers": "^0.16.0",
"node-fetch": "^3.2.10",
"nodemw": "^0.17.0",
"stylelint": "^14.6.1",
"stylelint-config-standard": "^25.0.0",
"ts-jest": "^27.1.4",
"typescript": "^4.6.3",
"unist-util-inspect": "6.0.0",
"winston": "^3.7.2"
"lint-staged": "^13.0.4",
"markdownlint-cli2": "^0.5.1",
"markdownlint-rule-helpers": "^0.17.2",
"node-fetch": "^3.3.0",
"nodemw": "^0.18.0",
"stylelint": "^14.15.0",
"stylelint-config-standard": "^29.0.0",
"ts-jest": "^29.0.3",
"typescript": "^4.9.3",
"unist-util-inspect": "7.0.1",
"winston": "^3.8.2"
},
"packageManager": "[email protected]"
}
Loading

0 comments on commit ae808ff

Please sign in to comment.