Skip to content

Commit 25bfaf0

Browse files
authored
chore(deps): update ESLint and Prettier (#75)
1 parent de0dd07 commit 25bfaf0

File tree

4 files changed

+1947
-1110
lines changed

4 files changed

+1947
-1110
lines changed

.eslintrc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
{
2-
"extends": ["teppeis/node-v8", "teppeis/+prettier", "teppeis/+mocha"]
2+
"root": true,
3+
"extends": ["teppeis/node-v10", "teppeis/+prettier", "teppeis/+mocha"]
34
}

index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ function espowerTypeScript(options, tsNodeOptions) {
1515
// install source-map-support again to correct the source-map
1616
sourceMapSupport.install({
1717
environment: "node",
18-
retrieveFile: path => sourceCache[path],
18+
retrieveFile: (path) => sourceCache[path],
1919
});
2020

2121
const { extensions = ["ts", "tsx"] } = options;
22-
extensions.forEach(ext => {
22+
extensions.forEach((ext) => {
2323
espowerTsRegister(`.${ext}`, options);
2424
});
2525
}
@@ -34,7 +34,7 @@ function espowerTsRegister(ext, options) {
3434
return originalExtension(module, filepath);
3535
}
3636
const originalCompile = module._compile;
37-
module._compile = function(code, filepath) {
37+
module._compile = function (code, filepath) {
3838
const newSource = espowerSource(code, filepath, options);
3939
sourceCache[filepath] = newSource;
4040
return originalCompile.call(this, newSource, filepath);

0 commit comments

Comments
 (0)