Skip to content

Commit 38c85b6

Browse files
authored
Provide JavaScript port of TokenStreamRewriter (#3560)
undefined
1 parent b0bfff5 commit 38c85b6

18 files changed

+1885
-10
lines changed

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ nbactions*.xml
8383
/gen4/
8484
/tool/playground/
8585
tmp/
86+
**/generatedCode/*.interp
87+
**/generatedCode/*.tokens
88+
**/generatedCode/*.bak
8689

8790
# Configurable build files
8891
bilder.py
@@ -107,6 +110,9 @@ runtime/PHP
107110
# Swift binaries
108111
.build/
109112

113+
# Code coverage reports
114+
coverage/
115+
110116
# Cpp generated build files
111117
runtime/Cpp/CMakeCache.txt
112118
runtime/Cpp/CMakeFiles/

runtime/JavaScript/.c8rc.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"all": true,
3+
"include": [
4+
"src/antlr4/**/*.js"
5+
],
6+
"reporter": [
7+
"text",
8+
"lcov"
9+
]
10+
}

runtime/JavaScript/.eslintrc.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ parser: "@babel/eslint-parser"
1414
parserOptions:
1515
sourceType: module
1616
project: ['./tsconfig.json']
17+
ecmaVersion: 2022
1718
rules:
18-
no-unused-vars: ["error", {vars: "all", args: "none"}]
19-
no-prototype-builtins: [ "off" ]
19+
no-unused-vars: ["error", { vars: "all", args: "none" }]
20+
no-prototype-builtins: ["off"]
2021
no-fallthrough: ["error", { "commentPattern": "no-break" }]

0 commit comments

Comments
 (0)