Tighten eslint disable range

Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
This commit is contained in:
Josh-Cena 2021-06-21 08:47:48 +08:00
parent 03e2174fe7
commit a36c287662
No known key found for this signature in database
GPG key ID: C37145B818BDB68F

View file

@ -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>;