File tree Expand file tree Collapse file tree 6 files changed +9
-7
lines changed Expand file tree Collapse file tree 6 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 7
7
class-methods-use-this : off
8
8
complexity : off
9
9
mysticatea/arrow-parens : off
10
+ mysticatea/prefer-for-of : off
10
11
prettier/prettier :
11
12
- error
12
13
- tabWidth : 4
Original file line number Diff line number Diff line change 22
22
"mocha" : " ^5.0.1" ,
23
23
"npm-run-all" : " ^4.1.2" ,
24
24
"prettier" : " ^1.9.2" ,
25
+ "rimraf" : " ^2.6.2" ,
25
26
"rollup" : " ^0.56.1" ,
26
27
"rollup-plugin-node-resolve" : " ^3.0.3" ,
27
28
"rollup-plugin-sourcemaps" : " ^0.4.2" ,
Original file line number Diff line number Diff line change @@ -908,11 +908,11 @@ export class RegExpValidator {
908
908
const c = String . fromCodePoint ( cp )
909
909
this . raise ( `Unexpected character '${ c } '` )
910
910
}
911
- for ( const name of this . _backreferenceNames ) {
911
+ this . _backreferenceNames . forEach ( name => {
912
912
if ( ! this . _groupNames . has ( name ) ) {
913
913
this . raise ( "Invalid named capture referenced" )
914
914
}
915
- }
915
+ } )
916
916
this . onPatternLeave ( start , this . index )
917
917
}
918
918
Original file line number Diff line number Diff line change 1
1
import assert from "assert"
2
- import { parseRegExpLiteral , ParserOptions } from "../src/index"
2
+ import { parseRegExpLiteral , RegExpParser } from "../src/index"
3
3
import { cloneWithoutCircular } from "../tools/clone-without-circular"
4
4
import { Fixtures } from "./fixtures/parser/literal"
5
5
6
- function generateAST ( source : string , options : ParserOptions ) : object {
6
+ function generateAST ( source : string , options : RegExpParser . Options ) : object {
7
7
return JSON . parse (
8
8
Buffer . from (
9
9
JSON . stringify (
Original file line number Diff line number Diff line change 13
13
"esModuleInterop" : true ,
14
14
"forceConsistentCasingInFileNames" : true ,
15
15
"lib" : [
16
- " es2017 "
16
+ " es2015 "
17
17
],
18
18
"module" : " commonjs" ,
19
19
"moduleResolution" : " node" ,
31
31
"sourceMap" : true ,
32
32
"sourceRoot" : " src" ,
33
33
"strictNullChecks" : true ,
34
- "target" : " es2015 "
34
+ "target" : " es5 "
35
35
},
36
36
"include" : [
37
37
" src/**/*.ts"
Original file line number Diff line number Diff line change 31
31
"sourceMap" : true ,
32
32
"sourceRoot" : " src" ,
33
33
"strictNullChecks" : true ,
34
- "target" : " es2015 "
34
+ "target" : " es5 "
35
35
},
36
36
"include" : [
37
37
" src/**/*.ts"
You can’t perform that action at this time.
0 commit comments