Skip to content
This repository was archived by the owner on Aug 18, 2021. It is now read-only.

Commit ec14787

Browse files
committed
Enable strict mode in all of babylon-to-espree
1 parent 6c5beec commit ec14787

File tree

7 files changed

+14
-0
lines changed

7 files changed

+14
-0
lines changed

babylon-to-espree/attachComments.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"use strict";
2+
13
// comment fixes
24
module.exports = function (ast, comments, tokens) {
35
if (comments.length) {

babylon-to-espree/convertComments.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"use strict";
2+
13
module.exports = function (comments) {
24
for (var i = 0; i < comments.length; i++) {
35
var comment = comments[i];

babylon-to-espree/convertTemplateType.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"use strict";
2+
13
module.exports = function (tokens, tt) {
24
var startingToken = 0;
35
var currentToken = 0;

babylon-to-espree/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"use strict";
2+
13
var attachComments = require("./attachComments");
24
var convertComments = require("./convertComments");
35
var toTokens = require("./toTokens");

babylon-to-espree/toAST.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"use strict";
2+
13
var convertComments = require("./convertComments");
24

35
module.exports = function (ast, traverse, code) {

babylon-to-espree/toToken.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"use strict";
2+
13
module.exports = function (token, tt, source) {
24
var type = token.type;
35
token.range = [token.start, token.end];

babylon-to-espree/toTokens.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"use strict";
2+
13
var convertTemplateType = require("./convertTemplateType");
24
var toToken = require("./toToken");
35

0 commit comments

Comments
 (0)