summaryrefslogtreecommitdiff
path: root/tools/node_modules/eslint/lib/config/config-file.js
diff options
context:
space:
mode:
authorcjihrig <cjihrig@gmail.com>2019-03-01 21:47:17 -0500
committercjihrig <cjihrig@gmail.com>2019-03-03 22:04:24 -0500
commit17b7fa75c345ec2ef59c489a33aa14f346d60dc5 (patch)
treed16f47fc4bdafa0db5a450b44e65a64dbbc3756c /tools/node_modules/eslint/lib/config/config-file.js
parent8c597df3502c26fba74c966168376c818b61b73b (diff)
downloadnode-new-17b7fa75c345ec2ef59c489a33aa14f346d60dc5.tar.gz
tools: update ESLint to 5.15.0
Update ESLint to 5.15.0 PR-URL: https://github.com/nodejs/node/pull/26391 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Masashi Hirano <shisama07@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'tools/node_modules/eslint/lib/config/config-file.js')
-rw-r--r--tools/node_modules/eslint/lib/config/config-file.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/node_modules/eslint/lib/config/config-file.js b/tools/node_modules/eslint/lib/config/config-file.js
index f76b92830c..492800b7a3 100644
--- a/tools/node_modules/eslint/lib/config/config-file.js
+++ b/tools/node_modules/eslint/lib/config/config-file.js
@@ -61,7 +61,7 @@ const resolver = new ModuleResolver();
* @private
*/
function readFile(filePath) {
- return fs.readFileSync(filePath, "utf8").replace(/^\ufeff/, "");
+ return fs.readFileSync(filePath, "utf8").replace(/^\ufeff/u, "");
}
/**
@@ -73,7 +73,7 @@ function readFile(filePath) {
* @private
*/
function isFilePath(filePath) {
- return path.isAbsolute(filePath) || !/\w|@/.test(filePath.charAt(0));
+ return path.isAbsolute(filePath) || !/\w|@/u.test(filePath.charAt(0));
}
/**