add optional undeclared variable check transformer
This commit is contained in:
5
test/fixtures/transformation/optional-undeclared-variable-check/declared/exec.js
vendored
Normal file
5
test/fixtures/transformation/optional-undeclared-variable-check/declared/exec.js
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
function foo() {
|
||||
|
||||
}
|
||||
|
||||
foo();
|
||||
3
test/fixtures/transformation/optional-undeclared-variable-check/options.json
vendored
Normal file
3
test/fixtures/transformation/optional-undeclared-variable-check/options.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"optional": ["undeclaredVariableCheck"]
|
||||
}
|
||||
1
test/fixtures/transformation/optional-undeclared-variable-check/undeclared/exec.js
vendored
Normal file
1
test/fixtures/transformation/optional-undeclared-variable-check/undeclared/exec.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
foo();
|
||||
3
test/fixtures/transformation/optional-undeclared-variable-check/undeclared/options.json
vendored
Normal file
3
test/fixtures/transformation/optional-undeclared-variable-check/undeclared/options.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"throws": "Reference to undeclared variable"
|
||||
}
|
||||
Reference in New Issue
Block a user