Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates 2024-03-25 #1538

Merged
merged 9 commits into from
Mar 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ on:
- 'yarn.lock'

env:
NODE_BUILD_VERSION: 18
NODE_BUILD_VERSION: 20

jobs:
dev-setup:
Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,16 +68,16 @@
"vscode"
],
"devDependencies": {
"@typescript-eslint/eslint-plugin": "7.1.1",
"@typescript-eslint/parser": "7.1.1",
"@typescript-eslint/eslint-plugin": "7.3.1",
"@typescript-eslint/parser": "7.3.1",
"cspell": "8.6.0",
"eslint": "8.57.0",
"eslint-import-resolver-typescript": "3.6.1",
"eslint-plugin-eslint-comments": "3.2.0",
"eslint-plugin-import": "2.29.1",
"eslint-plugin-jsdoc": "48.2.1",
"eslint-plugin-node": "11.1.0",
"eslint-plugin-regexp": "2.3.0",
"eslint-plugin-regexp": "2.4.0",
"eslint-plugin-sort-class-members": "1.20.0",
"eslint-plugin-unicorn": "51.0.1",
"heapdump": "0.3.15",
Expand All @@ -86,17 +86,17 @@
"lint-staged": "15.2.2",
"npm-run-all2": "6.1.2",
"prettier": "3.2.5",
"textlint": "14.0.3",
"textlint": "14.0.4",
"textlint-filter-rule-comments": "1.2.2",
"textlint-rule-preset-ja-spacing": "2.3.0",
"textlint-rule-preset-ja-spacing": "2.3.1",
"textlint-rule-preset-ja-technical-writing": "10.0.1",
"textlint-rule-preset-japanese": "10.0.3",
"textlint-rule-preset-jtf-style": "2.3.14",
"ts-node": "10.9.2",
"typedoc": "0.25.11",
"typedoc": "0.25.12",
"typedoc-plugin-mdn-links": "3.1.18",
"typedoc-plugin-resolve-crossmodule-references": "0.3.3",
"typescript": "5.4.2"
"typescript": "5.4.3"
},
"resolutions": {
"lerna/**/string-width": "4",
Expand Down
2 changes: 1 addition & 1 deletion packages/@markuplint/config-presets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"build": "node build.mjs"
},
"devDependencies": {
"glob": "10.3.10",
"glob": "10.3.9",
"jsonc-parser": "3.2.1",
"mustache": "4.2.0"
}
Expand Down
4 changes: 2 additions & 2 deletions packages/@markuplint/create-rule/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@
"dependencies": {
"@markuplint/cli-utils": "4.1.1-alpha.0",
"@markuplint/ml-core": "4.3.1-alpha.0",
"glob": "10.3.10",
"glob": "10.3.9",
"prettier": "3.2.5",
"ts-node": "10.9.2",
"typescript": "5.4.2"
"typescript": "5.4.3"
},
"devDependencies": {
"@types/fs-extra": "11.0.4",
Expand Down
4 changes: 2 additions & 2 deletions packages/@markuplint/file-resolver/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"clean": "tsc --build --clean"
},
"devDependencies": {
"@types/node": "20.11.25"
"@types/node": "20.11.30"
},
"dependencies": {
"@markuplint/html-parser": "4.2.1-alpha.0",
Expand All @@ -37,7 +37,7 @@
"@markuplint/shared": "4.0.2-alpha.0",
"cosmiconfig": "9.0.0",
"debug": "4.3.4",
"glob": "10.3.10",
"glob": "10.3.9",
"ignore": "5.3.1",
"jsonc": "2.0.0",
"minimatch": "9.0.3"
Expand Down
2 changes: 1 addition & 1 deletion packages/@markuplint/html-parser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@
"@markuplint/ml-ast": "4.0.2-alpha.0",
"@markuplint/parser-utils": "4.2.1-alpha.0",
"parse5": "7.1.2",
"type-fest": "4.12.0"
"type-fest": "4.14.0"
}
}
15 changes: 13 additions & 2 deletions packages/@markuplint/html-spec/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,17 @@
}
}
},
"writingsuggestions": {
"type": {
"enum": ["", "true", "false"],
"disallowToSurroundBySpaces": true,
"invalidValueDefault": "default",
"missingValueDefault": "default",
"sameStates": {
"true": [""]
}
}
},
"class": {
"type": "Any"
},
Expand Down Expand Up @@ -40866,11 +40877,11 @@
"deprecated": true
},
"cellpadding": {
"description": "Defines the space between the content of a cell and its border, displayed or not. If the cellpadding's length is defined in pixels, this pixel-sized space will be applied to all four sides of the cell's content. If the length is defined using a percentage value, the content will be centered and the total vertical space (top and bottom) will represent this value. The same is true for the total horizontal space (left and right). Apply the border-collapse CSS property to the <table> element, with its value set to collapse, and the padding CSS property to the <td> elements instead, as this attribute is deprecated.",
"description": "Defines the space between the content of a cell and its border. This attribute is obsolete: instead of using it, apply the padding CSS property to the <th> and <td> elements.",
"deprecated": true
},
"cellspacing": {
"description": "Defines the size of the space between two cells in a percentage value or pixels. The attribute is applied both horizontally and vertically, to the space between the top of the table and the cells of the first row, the left of the table and the first column, the right of the table and the last column and the bottom of the table and the last row. Apply the border-spacing CSS property to the <table> element instead, as this attribute is deprecated. border-spacing does not have any effect if the border-collapse CSS property is set to collapse.",
"description": "Defines the size of the space between two cells. This attribute is obsolete: instead of using it, set the border-spacing CSS property on the <table> element. Note that this has no effect if the <table> element's border-collapse CSS property is set to collapse.",
"deprecated": true
},
"frame": {
Expand Down
12 changes: 12 additions & 0 deletions packages/@markuplint/html-spec/src/spec-common.attributes.json
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,18 @@
}
}
},
// https://html.spec.whatwg.org/multipage/interaction.html#attr-writingsuggestions
"writingsuggestions": {
"type": {
"enum": ["", "true", "false"],
"disallowToSurroundBySpaces": true,
"invalidValueDefault": "default",
"missingValueDefault": "default",
"sameStates": {
"true": [""]
}
}
},
// https://html.spec.whatwg.org/multipage/dom.html#classes
"class": {
"type": "Any"
Expand Down
4 changes: 2 additions & 2 deletions packages/@markuplint/jsx-parser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"@markuplint/html-parser": "4.2.1-alpha.0",
"@markuplint/ml-ast": "4.0.2-alpha.0",
"@markuplint/parser-utils": "4.2.1-alpha.0",
"@typescript-eslint/types": "7.1.1",
"@typescript-eslint/typescript-estree": "7.1.1"
"@typescript-eslint/types": "7.3.1",
"@typescript-eslint/typescript-estree": "7.3.1"
}
}
2 changes: 1 addition & 1 deletion packages/@markuplint/ml-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@
"deepmerge": "4.3.1",
"is-plain-object": "5.0.0",
"mustache": "4.2.0",
"type-fest": "4.12.0"
"type-fest": "4.14.0"
}
}
2 changes: 1 addition & 1 deletion packages/@markuplint/ml-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@
"@types/debug": "4.1.12",
"debug": "4.3.4",
"is-plain-object": "5.0.0",
"type-fest": "4.12.0"
"type-fest": "4.14.0"
}
}
4 changes: 2 additions & 2 deletions packages/@markuplint/ml-core/src/ml-dom/node/document.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import type { Walker } from '../helper/walkers.js';
import type { MLToken } from '../token/token.js';
import type { EndTagType, MLASTDocument, MLASTNodeTreeItem } from '@markuplint/ml-ast';
import type { PlainData, Pretender, RuleConfigValue } from '@markuplint/ml-config';
import type { MLMLSpec } from '@markuplint/ml-spec';
import type { ARIAVersion, MLMLSpec } from '@markuplint/ml-spec';

import { exchangeValueOnRule, mergeRule } from '@markuplint/ml-config';
import {
Expand Down Expand Up @@ -2837,7 +2837,7 @@ export class MLDocument<T extends RuleConfigValue, O extends PlainData = undefin
getAccessibilityProp(
// eslint-disable-next-line @typescript-eslint/prefer-readonly-parameter-types
node: MLNode<T, O>,
ariaVersion = ARIA_RECOMMENDED_VERSION,
ariaVersion: ARIAVersion = ARIA_RECOMMENDED_VERSION,
): AccessibilityProperties | null {
if (!node.is(node.ELEMENT_NODE)) {
return null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export const globalAttrs: Record<
'tabindex',
'title',
'translate',
'writingsuggestions',
'class',
'id',
'slot',
Expand Down
2 changes: 1 addition & 1 deletion packages/@markuplint/ml-spec/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"@markuplint/types": "4.0.3-alpha.0",
"dom-accessibility-api": "0.6.3",
"is-plain-object": "5.0.0",
"type-fest": "4.12.0"
"type-fest": "4.14.0"
},
"devDependencies": {
"@markuplint/test-tools": "4.1.1-alpha.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
"tabindex",
"title",
"translate",
"writingsuggestions",
"class",
"id",
"slot",
Expand Down Expand Up @@ -396,6 +397,7 @@
"tabindex",
"title",
"translate",
"writingsuggestions",
"class",
"id",
"slot",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export const ariaVersions = ['1.1', '1.2', '1.3'] as const;

export const ARIA_RECOMMENDED_VERSION = '1.2' as const;
export const ARIA_RECOMMENDED_VERSION = '1.2';
2 changes: 1 addition & 1 deletion packages/@markuplint/parser-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"@types/uuid": "9.0.8",
"debug": "4.3.4",
"espree": "10.0.1",
"type-fest": "4.12.0",
"type-fest": "4.14.0",
"uuid": "9.0.1"
}
}
1 change: 1 addition & 0 deletions packages/@markuplint/parser-utils/src/idl-attributes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ const idlContentMap = {
width: 'width',
wmode: 'wmode',
wrap: 'wrap',
writingSuggestions: 'writingsuggestions', // https://html.spec.whatwg.org/multipage/dom.html#elements-in-the-dom:dom-writingsuggestions

// SVG and RDFa
accentHeight: 'accent-height',
Expand Down
2 changes: 1 addition & 1 deletion packages/@markuplint/rules/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@
"ansi-colors": "4.1.3",
"chrono-node": "2.7.5",
"debug": "4.3.4",
"type-fest": "4.12.0"
"type-fest": "4.14.0"
}
}
4 changes: 2 additions & 2 deletions packages/@markuplint/selector/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
"@markuplint/ml-spec": "4.1.1-alpha.0",
"@types/debug": "4.1.12",
"debug": "4.3.4",
"postcss-selector-parser": "6.0.15",
"type-fest": "4.12.0"
"postcss-selector-parser": "6.0.16",
"type-fest": "4.14.0"
},
"devDependencies": {
"@types/jsdom": "21.1.6",
Expand Down
6 changes: 3 additions & 3 deletions packages/@markuplint/spec-generator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@
"ajv": "8.12.0",
"cheerio": "1.0.0-rc.12",
"cli-progress": "3.12.0",
"fast-xml-parser": "4.3.5",
"glob": "10.3.10",
"fast-xml-parser": "4.3.6",
"glob": "10.3.9",
"strip-json-comments": "5.0.1"
},
"devDependencies": {
"@markuplint/ml-spec": "4.1.1-alpha.0",
"@markuplint/test-tools": "4.1.1-alpha.0",
"@types/cli-progress": "3.11.5",
"type-fest": "4.12.0"
"type-fest": "4.14.0"
}
}
8 changes: 4 additions & 4 deletions packages/@markuplint/test-tools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,17 @@
"clean": "tsc --build --clean"
},
"dependencies": {
"@vitest/coverage-v8": "1.3.1",
"@vitest/coverage-v8": "1.4.0",
"browser-resolve": "2.0.0",
"coveralls": "3.1.1",
"default-markuplint": "npm:markuplint@latest",
"execa": "8.0.1",
"glob": "10.3.10",
"glob": "10.3.9",
"jsdom": "24.0.0",
"strip-json-comments": "5.0.1",
"test-markuplint": "npm:markuplint@latest",
"textlint-rule-prh": "5.3.0",
"type-fest": "4.12.0",
"vitest": "1.3.1"
"type-fest": "4.14.0",
"vitest": "1.4.0"
}
}
2 changes: 1 addition & 1 deletion packages/@markuplint/types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"css-tree": "2.3.1",
"debug": "4.3.4",
"leven": "4.0.0",
"type-fest": "4.12.0",
"type-fest": "4.14.0",
"whatwg-mimetype": "4.0.0"
}
}
2 changes: 1 addition & 1 deletion packages/markuplint/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@
"os-locale": "6.0.2",
"strict-event-emitter": "0.5.1",
"strip-ansi": "7.1.0",
"type-fest": "4.12.0"
"type-fest": "4.14.0"
}
}
16 changes: 8 additions & 8 deletions playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,21 +33,21 @@
"@markuplint/react-spec": "4.1.0",
"@total-typescript/ts-reset": "0.5.1",
"@types/json-schema": "7.0.15",
"@types/react": "18.2.64",
"@types/react-dom": "18.2.21",
"@types/react": "18.2.69",
"@types/react-dom": "18.2.22",
"@types/semver": "7.5.8",
"@vitejs/plugin-react": "4.2.1",
"autoprefixer": "10.4.18",
"autoprefixer": "10.4.19",
"cspell": "8.6.0",
"eslint": "8.57.0",
"eslint-plugin-react": "7.34.0",
"eslint-plugin-react": "7.34.1",
"eslint-plugin-react-hooks": "4.6.0",
"eslint-plugin-react-refresh": "0.4.5",
"postcss": "8.4.35",
"eslint-plugin-react-refresh": "0.4.6",
"postcss": "8.4.38",
"prettier": "3.2.5",
"prettier-plugin-tailwindcss": "0.5.12",
"tailwindcss": "3.4.1",
"typescript": "5.4.2",
"vite": "5.1.5"
"typescript": "5.4.3",
"vite": "5.2.6"
}
}