 # given), as either the package.json's 'coffeelintConfig' property, or a project
 # specific 'coffeelint.json' or a global 'coffeelint.json' in the home
 # directory.
-exports.getConfig = (filename = null) ->
-    if filename
-        dir = path.dirname(path.resolve(filename))
-    else
-        dir = process.cwd()
+getConfig = (dir) ->
 
     npmConfig = loadNpmConfig(dir)
     return npmConfig  if npmConfig

    home = path.normalize(path.join(envs, "coffeelint.json"))
    if fs.existsSync(home)
        return loadJSON(home)

fs = require 'fs'
path = require 'path'
stripComments = require 'strip-json-comments'
resolve = require('resolve').sync

# Cache for findFile
findFileResults = {}
