mirror of
https://github.com/benjaminion/upgrading-ethereum-book.git
synced 2026-01-09 22:47:55 -05:00
Use eslint
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { visit } from 'unist-util-visit';
|
||||
import fs from 'fs';
|
||||
|
||||
// Add a tooltip to constant values in the text according to the mapping in the
|
||||
// supplied file.
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
import fs from 'fs';
|
||||
|
||||
// Write a .htaccess file to set the correct 404 page
|
||||
|
||||
function writeHtaccess(base, dir, logger) {
|
||||
|
||||
@@ -8,7 +8,7 @@ const searchIndex = [];
|
||||
function isExcludedFrontmatter(frontmatter, exclude) {
|
||||
for (let i = 0; i < exclude.frontmatter.length; i++) {
|
||||
const test = exclude.frontmatter[i];
|
||||
const [key, ...rest] = Object.keys(test);
|
||||
const key = Object.keys(test)[0];
|
||||
if (
|
||||
Object.prototype.hasOwnProperty.call(frontmatter, key) &&
|
||||
frontmatter[key] == test[key]
|
||||
|
||||
@@ -2,6 +2,7 @@ import { visit } from 'unist-util-visit';
|
||||
import { optimize } from 'svgo';
|
||||
import { getHashDigest } from 'loader-utils';
|
||||
import path from 'path';
|
||||
import fs from 'fs';
|
||||
|
||||
// Inline SVG files into the Markdown AST
|
||||
|
||||
|
||||
Reference in New Issue
Block a user