Skip to content

Commit

Permalink
style(standalone): ignore require-atomic-updates errors, remove unn…
Browse files Browse the repository at this point in the history
…eeded ignore
  • Loading branch information
Jimmy Andrade committed Sep 29, 2020
1 parent 33d8701 commit 0c76994
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/standalone.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ function getGlyphsData(files, options) {
const glyph = fs.createReadStream(srcPath);
let glyphContents = "";

// eslint-disable-next-line no-promise-executor-return
return glyph
.on("error", glyphError => reject(glyphError))
.on("data", data => {
Expand Down Expand Up @@ -215,9 +216,11 @@ export default async function(initialOptions) {
});

if (Object.keys(config).length > 0) {
// eslint-disable-next-line require-atomic-updates
options = deepmerge(options, config.config, {
arrayMerge: (_destinationArray, sourceArray, _opts) => sourceArray
});
// eslint-disable-next-line require-atomic-updates
options.filePath = config.filepath;
}

Expand Down Expand Up @@ -262,7 +265,6 @@ export default async function(initialOptions) {
styl: { path: path.join(templateDirectory, "template.styl.njk") }
};

// eslint-disable-next-line init-declarations
let templateFilePath;

if (Object.keys(buildInTemplates).includes(options.template)) {
Expand Down

0 comments on commit 0c76994

Please sign in to comment.