mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-16 18:46:57 +02:00
refactor: remove a few Lodash usages & ESLint enforcement (#5807)
* refactor: remove some lodash usage Signed-off-by: Josh-Cena <sidachen2003@gmail.com> * Enforce ESLint Signed-off-by: Josh-Cena <sidachen2003@gmail.com> * More forbids * Fixup * Fix * Fix website
This commit is contained in:
parent
4b2152a964
commit
7a6607cfa1
12 changed files with 60 additions and 49 deletions
|
@ -42,7 +42,7 @@ import {
|
|||
import {RuleSetRule} from 'webpack';
|
||||
import {cliDocsVersionCommand} from './cli';
|
||||
import {VERSIONS_JSON_FILE} from './constants';
|
||||
import {keyBy, compact, mapValues} from 'lodash';
|
||||
import {keyBy, mapValues} from 'lodash';
|
||||
import {toGlobalDataVersion} from './globalData';
|
||||
import {toTagDocListProp, toVersionMetadataProp} from './props';
|
||||
import {
|
||||
|
@ -388,7 +388,7 @@ export default function pluginContentDocs(
|
|||
include: contentDirs
|
||||
// Trailing slash is important, see https://github.com/facebook/docusaurus/pull/3970
|
||||
.map(addTrailingPathSeparator),
|
||||
use: compact([
|
||||
use: [
|
||||
getJSLoader({isServer}),
|
||||
{
|
||||
loader: require.resolve('@docusaurus/mdx-loader'),
|
||||
|
@ -414,7 +414,7 @@ export default function pluginContentDocs(
|
|||
loader: path.resolve(__dirname, './markdown/index.js'),
|
||||
options: docsMarkdownOptions,
|
||||
},
|
||||
]),
|
||||
].filter(Boolean),
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue