mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-11 16:17:25 +02:00
chore: clean up ESLint config, enable a few rules (#6514)
* chore: clean up ESLint config, enable a few rules * enable max-len for comments * fix build
This commit is contained in:
parent
b8ccb869f1
commit
aa446b7a9c
167 changed files with 1157 additions and 960 deletions
|
@ -45,8 +45,8 @@ export default function applyTrailingSlash(
|
|||
|
||||
// Never transform '/' to ''
|
||||
// Never remove the baseUrl trailing slash!
|
||||
// If baseUrl = /myBase/, we want to emit /myBase/index.html and not /myBase.html !
|
||||
// See https://github.com/facebook/docusaurus/issues/5077
|
||||
// If baseUrl = /myBase/, we want to emit /myBase/index.html and not
|
||||
// /myBase.html! See https://github.com/facebook/docusaurus/issues/5077
|
||||
const shouldNotApply = pathname === '/' || pathname === baseUrl;
|
||||
|
||||
const newPathname = shouldNotApply
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue