Repository: eslint/eslint
Pull request #10695 (2018-07-29 02:36:38)

Chore: Move lib/file-finder.js to lib/util/ (refs #10559)
<!--
    ESLint adheres to the [JS Foundation Code of Conduct](https://js.foundation/community/code-of-conduct).
-->

**What is the purpose of this pull request? (put an "X" next to item)**

[ ] Documentation update
[ ] Bug fix ([template](https://raw.githubusercontent.com/eslint/eslint/master/templates/bug-report.md))
[ ] New rule ([template](https://raw.githubusercontent.com/eslint/eslint/master/templates/rule-proposal.md))
[ ] Changes an existing rule ([template](https://raw.githubusercontent.com/eslint/eslint/master/templates/rule-change-proposal.md))
[ ] Add autofixing to a rule
[ ] Add a CLI option
[ ] Add something to the core
[x] Other, please explain: Move lib/file-finder.js to lib/util/file-finder.js.

<!--
    If the item you've checked above has a template, please paste the template questions below and answer them. (If this pull request is addressing an issue, you can just paste a link to the issue here instead.)
-->

<!--
    Please ensure your pull request is ready:

    - Read the pull request guide (https://eslint.org/docs/developer-guide/contributing/pull-requests)
    - Include tests for this change
    - Update documentation for this change (if appropriate)
-->

<!--
    The following is required for all pull requests:
-->

**What changes did you make? (Give an overview)**

Renamed lib/file-finder.js to lib/util/file-finder.js along with its associated test file.

**Is there anything you'd like reviewers to focus on?**

Not really.


Patch:
diff --git a/lib/config.js b/lib/config.js
index 2eeaad181..8ea9aeb6f 100644
--- a/lib/config.js
+++ b/lib/config.js
@@ -15,7 +15,7 @@ const path = require("path"),
     ConfigFile = require("./config/config-file"),
     ConfigCache = require("./config/config-cache"),
     Plugins = require("./config/plugins"),
-    FileFinder = require("./file-finder"),
+    FileFinder = require("./util/file-finder"),
     isResolvable = require("is-resolvable");
 
 const debug = require("debug")("eslint:config");


Test patch:
diff --git a/lib/file-finder.js b/lib/util/file-finder.js
similarity index 100%
rename from lib/file-finder.js
rename to lib/util/file-finder.js
diff --git a/tests/lib/file-finder.js b/tests/lib/util/file-finder.js
similarity index 98%
rename from tests/lib/file-finder.js
rename to tests/lib/util/file-finder.js
index 5e9d7907a..e2a9e147f 100644
--- a/tests/lib/file-finder.js
+++ b/tests/lib/util/file-finder.js
@@ -11,14 +11,14 @@
 
 const assert = require("chai").assert,
     path = require("path"),
-    FileFinder = require("../../lib/file-finder.js");
+    FileFinder = require("../../../lib/util/file-finder.js");
 
 //------------------------------------------------------------------------------
 // Tests
 //------------------------------------------------------------------------------
 
 describe("FileFinder", () => {
-    const fixtureDir = path.resolve(__dirname, "..", "fixtures"),
+    const fixtureDir = path.resolve(__dirname, "../..", "fixtures"),
         fileFinderDir = path.join(fixtureDir, "file-finder"),
         subdir = path.join(fileFinderDir, "subdir"),
         subsubdir = path.join(subdir, "subsubdir"),