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

Lint front-matter using the work in progress fmlinter #26174

Merged
merged 2 commits into from
Apr 13, 2023
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion files/en-us/glossary/bitwise_flags/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "Bitwise flags"
title: Bitwise flags
slug: Glossary/Bitwise_flags
page-type: glossary-definition
---
Expand Down
2 changes: 0 additions & 2 deletions files/en-us/glossary/replay_attack/index.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
---
title: Replay attack
slug: Glossary/Replay_attack
tags:
- Security
---

In web security, a _replay attack_ happens when an attacker intercepts a previously-sent message and resends it later to get the same credentials as the original message, potentially with a different payload or instruction.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: declarativeNetRequest.ModifyHeaderInfo
slug: Mozilla/Add-ons/WebExtensions/API/declarativeNetRequest/ModifyHeaderInfo
page-type: webextension-api-type
browser-compat:
browser-compat:
- webextensions.api.declarativeNetRequest.RuleAction.requestHeaders
- webextensions.api.declarativeNetRequest.RuleAction.responseHeaders
---
Expand Down
3 changes: 1 addition & 2 deletions files/en-us/web/api/launch_handler_api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ slug: Web/API/Launch_Handler_API
page-type: web-api-overview
status:
- experimental
browser-compat:
- api.Window.launchQueue
browser-compat: api.Window.launchQueue
---

{{SeeCompatTable}}{{DefaultAPISidebar("Launch Handler API")}}
Expand Down
3 changes: 1 addition & 2 deletions files/en-us/web/api/local_font_access_api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ slug: Web/API/Local_Font_Access_API
page-type: web-api-overview
status:
- experimental
browser-compat:
- api.Window.queryLocalFonts
browser-compat: api.Window.queryLocalFonts
---

{{SeeCompatTable}}{{DefaultAPISidebar("Local Font Access API")}}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "Code values for keyboard events"
title: Code values for keyboard events
slug: Web/API/UI_Events/Keyboard_event_code_values
page-type: guide
---
Expand Down
3 changes: 1 addition & 2 deletions files/en-us/web/api/view_transitions_api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ title: View Transitions API
slug: Web/API/View_Transitions_API
page-type: web-api-overview
status: experimental
browser-compat:
- api.Document.startViewTransition
browser-compat: api.Document.startViewTransition
---

{{SeeCompatTable}}{{DefaultAPISidebar("View Transitions API")}}
Expand Down
3 changes: 1 addition & 2 deletions files/en-us/web/api/virtualkeyboard_api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ slug: Web/API/VirtualKeyboard_API
page-type: web-api-overview
status:
- experimental
browser-compat:
- api.VirtualKeyboard
browser-compat: api.VirtualKeyboard
---

{{SeeCompatTable}}{{DefaultAPISidebar("VirtualKeyboard API")}}
Expand Down
3 changes: 1 addition & 2 deletions files/en-us/web/api/webgpu_api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ title: WebGPU API
slug: Web/API/WebGPU_API
page-type: web-api-overview
status: experimental
browser-compat:
- api.GPU
browser-compat: api.GPU
---

{{SeeCompatTable}}{{DefaultAPISidebar("WebGPU API")}}
Expand Down
3 changes: 1 addition & 2 deletions files/en-us/web/api/webtransport_api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ slug: Web/API/WebTransport_API
page-type: web-api-overview
status:
- experimental
browser-compat:
- api.WebTransport
browser-compat: api.WebTransport
---

{{SeeCompatTable}}{{DefaultAPISidebar("WebTransport API")}}{{SecureContext_Header}}
Expand Down
30 changes: 19 additions & 11 deletions files/en-us/web/api/webxr_device_api/cameras/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 'Viewpoints and viewers: Simulating cameras in WebXR'
title: "Viewpoints and viewers: Simulating cameras in WebXR"
slug: Web/API/WebXR_Device_API/Cameras
page-type: guide
---
Expand Down Expand Up @@ -117,7 +117,7 @@ Thus a matrix that looks like this:

Is represented in array form like this:

```js
```js-nolint
let matrixArray = [a1, a2, a3, a4, a5, a6, a7, a8,
a9, a10, a11, a12, a13, a14, a15, a16];
```
Expand Down Expand Up @@ -152,8 +152,7 @@ function createPerspectiveMatrix(viewport, fovDegrees, nearClip, farClip) {
const aspectRatio = viewport.width / viewport.height;

const transform = mat4.create();
mat4.perspective(transform, fovRadians, aspectRatio,
nearClip, farClip);
mat4.perspective(transform, fovRadians, aspectRatio, nearClip, farClip);
return transform;
}
```
Expand All @@ -170,7 +169,11 @@ If you start each frame's rendering pass by computing the perspective matrix, yo

```js
const transform = createPerspectiveMatrix(viewport, 130, 1, 100);
const translateVec = vec3.fromValues(-trackDistance, -craneDistance, pushDistance);
const translateVec = vec3.fromValues(
-trackDistance,
-craneDistance,
pushDistance
);
mat4.translate(transform, transform, translateVec);
```

Expand All @@ -182,7 +185,7 @@ Unlike a true "zoom", **scaling** involves multiplying each of the `x`, `y`, and

If you want to scale up by a factor of 2, you need to multiply each component by 2.0. To scale down by the same amount, multiply them by -2.0. In matrix terms, this is performed using a transform matrix with scaling factored into it, like this:

```js
```js-nolint
let scaleTransform = [
Sx, 0, 0, 0,
0, Sy, 0, 0,
Expand All @@ -195,7 +198,7 @@ This matrix represents a transform that scales up or down by a factor indicated

If the same scaling factor is to be applied in every direction, you can create a simple function to generate the scaling transform matrix for you:

```js
```js-nolint
function createScalingMatrix(f) {
return [
f, 0, 0, 0,
Expand All @@ -208,7 +211,7 @@ function createScalingMatrix(f) {

With the transform matrix in hand, we apply the transform `scaleTransform` to the vector (or vertex) `myVector`:

```js
```js-nolint
let myVector = [2, 1, -3];
let scaleTransform = [
2, 0, 0, 0,
Expand Down Expand Up @@ -329,8 +332,11 @@ mat4.translate(viewMatrix, viewMatrix, [0, 0, dollyDistance]);
The solution here is obvious. SInce the translation is expressed as a vector providing the distance to move along each axis, we can combine them like this:

```js
mat4.translate(viewMatrix, viewMatrix,
[-truckDistance, -pedestalDistance, dollyDistance]);
mat4.translate(viewMatrix, viewMatrix, [
-truckDistance,
-pedestalDistance,
dollyDistance,
]);
```

This will shift the origin of the matrix `viewMatrix` by the specified amount along each axis.
Expand Down Expand Up @@ -388,7 +394,9 @@ function myAnimationFrameCallback(time, frame) {
const adjustedRefSpace = applyPositionOffsets(xrReferenceSpace);
const pose = frame.getViewerPose(adjustedRefSpace);

animationFrameRequestID = frame.session.requestAnimationFrame(myAnimationFrameCallback);
animationFrameRequestID = frame.session.requestAnimationFrame(
myAnimationFrameCallback
);

if (pose) {
const glLayer = frame.session.renderState.baseLayer;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: "XSLTProcessor: clearParameters() method"
short-title: clearParameters()
slug: Web/API/XSLTProcessor/clearParameters
page-type: web-api-instance-method
browser-compat: api.XSLTProcessor.clearParameters
browser-compat: api.XSLTProcessor.clearParameters
---

{{APIRef("XSLT")}}
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/xsltprocessor/getparameter/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: "XSLTProcessor: getParameter() method"
short-title: getParameter()
slug: Web/API/XSLTProcessor/getParameter
page-type: web-api-instance-method
browser-compat: api.XSLTProcessor.getParameter
browser-compat: api.XSLTProcessor.getParameter
---

{{APIRef("XSLT")}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: "XSLTProcessor: importStylesheet() method"
short-title: importStylesheet()
slug: Web/API/XSLTProcessor/importStylesheet
page-type: web-api-instance-method
browser-compat: api.XSLTProcessor.importStylesheet
browser-compat: api.XSLTProcessor.importStylesheet
---

{{APIRef("XSLT")}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: "XSLTProcessor: removeParameter() method"
short-title: removeParameter()
slug: Web/API/XSLTProcessor/removeParameter
page-type: web-api-instance-method
browser-compat: api.XSLTProcessor.removeParameter
browser-compat: api.XSLTProcessor.removeParameter
---

{{APIRef("XSLT")}}
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/xsltprocessor/reset/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: "XSLTProcessor: reset() method"
short-title: reset()
slug: Web/API/XSLTProcessor/reset
page-type: web-api-instance-method
browser-compat: api.XSLTProcessor.reset
browser-compat: api.XSLTProcessor.reset
---

{{APIRef("XSLT")}}
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/xsltprocessor/setparameter/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: "XSLTProcessor: setParameter() method"
short-title: setParameter()
slug: Web/API/XSLTProcessor/setParameter
page-type: web-api-instance-method
browser-compat: api.XSLTProcessor.setParameter
browser-compat: api.XSLTProcessor.setParameter
---

{{APIRef("XSLT")}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: "XSLTProcessor: transformToDocument() method"
short-title: transformToDocument()
slug: Web/API/XSLTProcessor/transformToDocument
page-type: web-api-instance-method
browser-compat: api.XSLTProcessor.transformToDocument
browser-compat: api.XSLTProcessor.transformToDocument
---

{{APIRef("XSLT")}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: "XSLTProcessor: transformToFragment() method"
short-title: transformToFragment()
slug: Web/API/XSLTProcessor/transformToFragment
page-type: web-api-instance-method
browser-compat: api.XSLTProcessor.transformToFragment
browser-compat: api.XSLTProcessor.transformToFragment
---

{{APIRef("XSLT")}}
Expand Down
3 changes: 1 addition & 2 deletions files/en-us/web/css/css_basic_user_interface/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
title: CSS Basic User Interface
slug: Web/CSS/CSS_Basic_User_Interface
page-type: css-module
spec-urls:
- https://drafts.csswg.org/css-ui/
spec-urls: https://drafts.csswg.org/css-ui/
---

{{CSSRef}}
Expand Down
3 changes: 1 addition & 2 deletions files/en-us/web/css/dashed-ident/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
title: <dashed-ident>
slug: Web/CSS/dashed-ident
page-type: css-type
spec-urls:
- https://drafts.csswg.org/css-values/#dashed-idents
spec-urls: https://drafts.csswg.org/css-values/#dashed-idents
---

{{CSSRef}}
Expand Down
3 changes: 1 addition & 2 deletions files/en-us/web/css/ident/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
title: <ident>
slug: Web/CSS/ident
page-type: css-type
spec-urls:
- https://drafts.csswg.org/css-values/#css-identifier
spec-urls: https://drafts.csswg.org/css-values/#css-identifier
---

{{CSSRef}}
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/html/attributes/accept/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 'HTML attribute: accept'
title: "HTML attribute: accept"
slug: Web/HTML/Attributes/accept
page-type: html-attribute
browser-compat: html.elements.input.accept
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/html/attributes/autocomplete/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 'HTML attribute: autocomplete'
title: "HTML attribute: autocomplete"
slug: Web/HTML/Attributes/autocomplete
page-type: html-attribute
browser-compat: html.global_attributes.autocomplete
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/html/attributes/capture/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 'HTML attribute: capture'
title: "HTML attribute: capture"
slug: Web/HTML/Attributes/capture
page-type: html-attribute
browser-compat: html.elements.input.capture
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/html/attributes/for/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 'HTML attribute: for'
title: "HTML attribute: for"
slug: Web/HTML/Attributes/for
page-type: html-attribute
browser-compat:
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/html/attributes/multiple/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 'HTML attribute: multiple'
title: "HTML attribute: multiple"
slug: Web/HTML/Attributes/multiple
page-type: html-attribute
spec-urls: https://html.spec.whatwg.org/multipage/input.html#attr-input-multiple
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/html/attributes/pattern/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 'HTML attribute: pattern'
title: "HTML attribute: pattern"
slug: Web/HTML/Attributes/pattern
page-type: html-attribute
browser-compat: html.elements.input.pattern
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/html/attributes/readonly/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 'HTML attribute: readonly'
title: "HTML attribute: readonly"
slug: Web/HTML/Attributes/readonly
page-type: html-attribute
browser-compat:
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/html/attributes/required/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 'HTML attribute: required'
title: "HTML attribute: required"
slug: Web/HTML/Attributes/required
page-type: html-attribute
browser-compat: html.elements.attributes.required
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/html/attributes/size/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 'HTML attribute: size'
title: "HTML attribute: size"
slug: Web/HTML/Attributes/size
page-type: html-attribute
browser-compat: html.elements.attribute.size
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/html/element/abbr/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: '<abbr>: The Abbreviation element'
title: "<abbr>: The Abbreviation element"
slug: Web/HTML/Element/abbr
page-type: html-element
browser-compat: html.elements.abbr
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/html/element/address/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: '<address>: The Contact Address element'
title: "<address>: The Contact Address element"
slug: Web/HTML/Element/address
page-type: html-element
browser-compat: html.elements.address
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/html/element/applet/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: '<applet>: The Embed Java Applet element'
title: "<applet>: The Embed Java Applet element"
slug: Web/HTML/Element/applet
page-type: html-element
status:
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/html/element/article/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: '<article>: The Article Contents element'
title: "<article>: The Article Contents element"
slug: Web/HTML/Element/article
page-type: html-element
browser-compat: html.elements.article
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/html/element/aside/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: '<aside>: The Aside element'
title: "<aside>: The Aside element"
slug: Web/HTML/Element/aside
page-type: html-element
browser-compat: html.elements.aside
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/html/element/audio/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: '<audio>: The Embed Audio element'
title: "<audio>: The Embed Audio element"
slug: Web/HTML/Element/audio
page-type: html-element
browser-compat: html.elements.audio
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/html/element/b/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: '<b>: The Bring Attention To element'
title: "<b>: The Bring Attention To element"
slug: Web/HTML/Element/b
page-type: html-element
browser-compat: html.elements.b
Expand Down
Loading