File tree Expand file tree Collapse file tree 3 files changed +28
-7
lines changed Expand file tree Collapse file tree 3 files changed +28
-7
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "rules": {
3
+ "strict": 0,
4
+ "no-underscore-dangle": 0,
5
+ "curly": 0,
6
+ "no-multi-spaces": 0,
7
+ "key-spacing": 0,
8
+ "no-return-assign": 0,
9
+ "consistent-return": 0,
10
+ "no-shadow": 0,
11
+ "comma-dangle": 0,
12
+ "no-use-before-define": 0,
13
+ "no-empty": 0,
14
+ "new-parens": 0,
15
+ "no-cond-assign": 0,
16
+ "no-fallthrough": 0,
17
+ "new-cap": 0,
18
+ "no-loop-func": 0,
19
+ "no-unreachable": 0,
20
+ "no-process-exit": 0
21
+ },
22
+ "env": {
23
+ "node": true,
24
+ "mocha": true
25
+ }
26
+ }
Original file line number Diff line number Diff line change @@ -73,10 +73,6 @@ exports.toTokens = function (tokens) {
73
73
return tokens . map ( exports . toToken ) ;
74
74
} ;
75
75
76
- function isCompatTag ( tagName ) {
77
- return tagName && / ^ [ a - z ] | \- / . test ( tagName ) ;
78
- }
79
-
80
76
function convertTemplateType ( tokens ) {
81
77
var startingToken = 0 ;
82
78
var currentToken = 0 ;
@@ -124,7 +120,7 @@ function convertTemplateType(tokens) {
124
120
start : tokens [ start ] . loc . start ,
125
121
end : tokens [ end ] . loc . end
126
122
}
127
- }
123
+ } ;
128
124
129
125
// put new token in place of old tokens
130
126
tokens . splice ( start , end - start + 1 , templateToken ) ;
@@ -174,7 +170,7 @@ function convertTemplateType(tokens) {
174
170
175
171
var astTransformVisitor = {
176
172
noScope : true ,
177
- exit : function ( node , parent ) {
173
+ exit : function ( node /* , parent */ ) {
178
174
if ( this . isSpreadProperty ( ) ) {
179
175
node . type = "Property" ;
180
176
node . kind = "init" ;
Original file line number Diff line number Diff line change 1
1
var acornToEsprima = require ( "./acorn-to-esprima" ) ;
2
- var traverse = require ( "babel-core" ) . traverse ;
3
2
var assign = require ( "lodash.assign" ) ;
4
3
var Module = require ( "module" ) ;
5
4
var parse = require ( "babel-core" ) . parse ;
You can’t perform that action at this time.
0 commit comments