From cb9e9c4a2a18660f6f36f05ca6393c5fe0cf5506 Mon Sep 17 00:00:00 2001 From: jamesgeorge007 Date: Tue, 26 Nov 2019 14:00:51 +0530 Subject: [PATCH 1/2] refactor: use Array.includes --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index bf0d69d1..db078789 100644 --- a/src/index.js +++ b/src/index.js @@ -85,7 +85,7 @@ function loader(content) { // we know that this path is relative to process.cwd(). This is how node-sass works. // eslint-disable-next-line no-param-reassign const stdinIndex = result.map.sources.findIndex( - (source) => source.indexOf('stdin') !== -1 + (source) => source.includes('stdin') ); if (stdinIndex !== -1) { From d490dc8bda7668ee3bded3ccb60a9b82b8dd1512 Mon Sep 17 00:00:00 2001 From: jamesgeorge007 Date: Fri, 10 Jan 2020 17:19:45 +0530 Subject: [PATCH 2/2] fix: lint --- src/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index db078789..55fa4825 100644 --- a/src/index.js +++ b/src/index.js @@ -84,8 +84,8 @@ function loader(content) { // Since we specified options.sourceMap = path.join(process.cwd(), "/sass.map"); in getSassOptions, // we know that this path is relative to process.cwd(). This is how node-sass works. // eslint-disable-next-line no-param-reassign - const stdinIndex = result.map.sources.findIndex( - (source) => source.includes('stdin') + const stdinIndex = result.map.sources.findIndex((source) => + source.includes('stdin') ); if (stdinIndex !== -1) {