mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-24 12:07:58 +02:00
polish: remove unused eslint-disable (#5560)
* fix eslint * Add report unused disable to CI * Fix two anys
This commit is contained in:
parent
911d6b1087
commit
a839966cd2
22 changed files with 9 additions and 38 deletions
|
@ -7,8 +7,6 @@
|
|||
|
||||
/* Based on remark-slug (https://github.com/remarkjs/remark-slug) and gatsby-remark-autolink-headers (https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby-remark-autolink-headers) */
|
||||
|
||||
/* eslint-disable no-param-reassign */
|
||||
|
||||
import remark from 'remark';
|
||||
import u from 'unist-builder';
|
||||
import removePosition from 'unist-util-remove-position';
|
||||
|
|
|
@ -53,8 +53,6 @@ function toAssetRequireNode({
|
|||
filePath: string;
|
||||
requireAssetPath: string;
|
||||
}) {
|
||||
/* eslint-disable no-param-reassign */
|
||||
|
||||
let relativeRequireAssetPath = posixPath(
|
||||
path.relative(path.dirname(filePath), requireAssetPath),
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue