diff --git a/index.js b/index.js index e492914..d2ca580 100644 --- a/index.js +++ b/index.js @@ -148,12 +148,12 @@ function list(cwd = process.cwd()) { return output; } -function remove({name, glob} = {}, cwd = process.cwd()) { +function remove({name, filter} = {}, cwd = process.cwd()) { if (!name) { throw new Error('No rulename was passed to `remove()` in lint-to-the-future-eslint plugin'); } - const files = getFiles(cwd, glob); + const files = getFiles(cwd, filter); files.forEach((relativeFilePath) => { removeIgnore(join(cwd, relativeFilePath), name); diff --git a/test/remove.mjs b/test/remove.mjs index dbd861f..b12b427 100644 --- a/test/remove.mjs +++ b/test/remove.mjs @@ -72,7 +72,7 @@ console.log('hello bananananana!');`, console.log('hello world');`, }); - remove({ name: 'face-lint', glob: 't*.js' }, project.baseDir); + remove({ name: 'face-lint', filter: 't*.js' }, project.baseDir); expect(readFileSync(join(project.baseDir, 'test.js'), 'utf-8')).to .equal(`/* eslint-disable other-lint */