mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-02 19:57:25 +02:00
Tighten eslint disable range
Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
This commit is contained in:
parent
03e2174fe7
commit
a36c287662
1 changed files with 3 additions and 2 deletions
|
@ -5,7 +5,6 @@
|
||||||
* LICENSE file in the root directory of this source tree.
|
* LICENSE file in the root directory of this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* eslint-disable camelcase */
|
|
||||||
// eslint-disable-next-line spaced-comment
|
// eslint-disable-next-line spaced-comment
|
||||||
/// <reference types="@docusaurus/module-type-aliases" />
|
/// <reference types="@docusaurus/module-type-aliases" />
|
||||||
|
|
||||||
|
@ -183,6 +182,8 @@ export type LastUpdateData = {
|
||||||
};
|
};
|
||||||
|
|
||||||
export type DocFrontMatter = {
|
export type DocFrontMatter = {
|
||||||
|
// Front matter uses snake case
|
||||||
|
/* eslint-disable camelcase */
|
||||||
id?: string;
|
id?: string;
|
||||||
title?: string;
|
title?: string;
|
||||||
hide_title?: boolean;
|
hide_title?: boolean;
|
||||||
|
@ -196,6 +197,7 @@ export type DocFrontMatter = {
|
||||||
pagination_label?: string;
|
pagination_label?: string;
|
||||||
custom_edit_url?: string | null;
|
custom_edit_url?: string | null;
|
||||||
parse_number_prefixes?: boolean;
|
parse_number_prefixes?: boolean;
|
||||||
|
/* eslint-enable camelcase */
|
||||||
};
|
};
|
||||||
|
|
||||||
export type DocMetadataBase = LastUpdateData & {
|
export type DocMetadataBase = LastUpdateData & {
|
||||||
|
@ -209,7 +211,6 @@ export type DocMetadataBase = LastUpdateData & {
|
||||||
sourceDirName: string; // relative to the docs folder (can be ".")
|
sourceDirName: string; // relative to the docs folder (can be ".")
|
||||||
slug: string;
|
slug: string;
|
||||||
permalink: string;
|
permalink: string;
|
||||||
// eslint-disable-next-line camelcase
|
|
||||||
sidebarPosition?: number;
|
sidebarPosition?: number;
|
||||||
editUrl?: string | null;
|
editUrl?: string | null;
|
||||||
frontMatter: DocFrontMatter & Record<string, unknown>;
|
frontMatter: DocFrontMatter & Record<string, unknown>;
|
||||||
|
|
Loading…
Add table
Reference in a new issue