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

Commit

Permalink
Enable strict mode in all of babylon-to-espree
Browse files Browse the repository at this point in the history
  • Loading branch information
zertosh committed Mar 25, 2017
1 parent 6c5beec commit ec14787
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions babylon-to-espree/attachComments.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"use strict";

// comment fixes
module.exports = function (ast, comments, tokens) {
if (comments.length) {
Expand Down
2 changes: 2 additions & 0 deletions babylon-to-espree/convertComments.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"use strict";

module.exports = function (comments) {
for (var i = 0; i < comments.length; i++) {
var comment = comments[i];
Expand Down
2 changes: 2 additions & 0 deletions babylon-to-espree/convertTemplateType.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"use strict";

module.exports = function (tokens, tt) {
var startingToken = 0;
var currentToken = 0;
Expand Down
2 changes: 2 additions & 0 deletions babylon-to-espree/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"use strict";

var attachComments = require("./attachComments");
var convertComments = require("./convertComments");
var toTokens = require("./toTokens");
Expand Down
2 changes: 2 additions & 0 deletions babylon-to-espree/toAST.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"use strict";

var convertComments = require("./convertComments");

module.exports = function (ast, traverse, code) {
Expand Down
2 changes: 2 additions & 0 deletions babylon-to-espree/toToken.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"use strict";

module.exports = function (token, tt, source) {
var type = token.type;
token.range = [token.start, token.end];
Expand Down
2 changes: 2 additions & 0 deletions babylon-to-espree/toTokens.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"use strict";

var convertTemplateType = require("./convertTemplateType");
var toToken = require("./toToken");

Expand Down

0 comments on commit ec14787

Please sign in to comment.