mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-01 11:18:24 +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.
|
||||
*/
|
||||
|
||||
/* eslint-disable camelcase */
|
||||
// eslint-disable-next-line spaced-comment
|
||||
/// <reference types="@docusaurus/module-type-aliases" />
|
||||
|
||||
|
@ -183,6 +182,8 @@ export type LastUpdateData = {
|
|||
};
|
||||
|
||||
export type DocFrontMatter = {
|
||||
// Front matter uses snake case
|
||||
/* eslint-disable camelcase */
|
||||
id?: string;
|
||||
title?: string;
|
||||
hide_title?: boolean;
|
||||
|
@ -196,6 +197,7 @@ export type DocFrontMatter = {
|
|||
pagination_label?: string;
|
||||
custom_edit_url?: string | null;
|
||||
parse_number_prefixes?: boolean;
|
||||
/* eslint-enable camelcase */
|
||||
};
|
||||
|
||||
export type DocMetadataBase = LastUpdateData & {
|
||||
|
@ -209,7 +211,6 @@ export type DocMetadataBase = LastUpdateData & {
|
|||
sourceDirName: string; // relative to the docs folder (can be ".")
|
||||
slug: string;
|
||||
permalink: string;
|
||||
// eslint-disable-next-line camelcase
|
||||
sidebarPosition?: number;
|
||||
editUrl?: string | null;
|
||||
frontMatter: DocFrontMatter & Record<string, unknown>;
|
||||
|
|
Loading…
Add table
Reference in a new issue