Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

Is it OK that tslint doesn't work without tslint.json? #137

Closed
thorn0 opened this issue May 8, 2014 · 1 comment
Closed

Is it OK that tslint doesn't work without tslint.json? #137

thorn0 opened this issue May 8, 2014 · 1 comment

Comments

@thorn0
Copy link

thorn0 commented May 8, 2014

To give this tool a try, I've just installed it globally and am trying to check a file with it. Here's what I'm getting. Not the most friendly first impression.

d:\dev\tsfoo\tsfoo\src>tslint -f app.ts

fs.js:427
  return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
                 ^
Error: ENOENT, no such file or directory 'C:\Users\thorn\tslint.json'
    at Object.fs.openSync (fs.js:427:18)
    at Object.fs.readFileSync (fs.js:284:15)
    at Object.findConfiguration (C:\Users\thorn\AppData\Roaming\npm\node_modules\tslint\bin\tslint-cli.js:2758
5:47)
    at Object.<anonymous> (C:\Users\thorn\AppData\Roaming\npm\node_modules\tslint\bin\tslint-cli.js:68199:40)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (C:\Users\thorn\AppData\Roaming\npm\node_modules\tslint\bin\tslint:3:1)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)
    at startup (node.js:119:16)
    at node.js:902:3
@ashwinr
Copy link
Contributor

ashwinr commented May 10, 2014

We can make this better.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants