diff --git a/@commitlint/top-level/src/index.js b/@commitlint/top-level/src/index.js deleted file mode 100644 index a24e290f50..0000000000 --- a/@commitlint/top-level/src/index.js +++ /dev/null @@ -1,16 +0,0 @@ -import path from 'path'; -import up from 'find-up'; - -export default toplevel; - -// Find the next git root -// (start: string) => Promise -async function toplevel(cwd) { - const found = await up('.git', {cwd}); - - if (typeof found !== 'string') { - return found; - } - - return path.join(found, '..'); -}