Skip to content

Commit c951c4c

Browse files
committed
feat: due to variable detection, now default target variables are empty
1 parent f7ac3c9 commit c951c4c

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/index.mjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import { ast as esutilsAst } from 'esutils';
1414
function defaultOptions () {
1515
return {
1616
variables: [
17-
'assert'
1817
],
1918
modules: [
2019
'assert',

test/fixtures/various_assertion_methods/fixture.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
'use strict';
22

3+
const assert = require('node:assert');
4+
35
function add (a, b) {
46
console.assert(typeof a === 'number');
57

0 commit comments

Comments
 (0)