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

Implement "preset" option #95

Merged
merged 3 commits into from
Dec 19, 2013
Merged

Implement "preset" option #95

merged 3 commits into from
Dec 19, 2013

Conversation

markelog
Copy link
Member

  • Add "setPreset" method to "string-checker" module, so you can use "preset"
    option in browser, right now, only "jquery" preset is supported
  • Add new "preset" option to cli module. Without testing right now, since this
    module is pretty hard to test. Will fix that in the next PR.

Fix #54

* Add "setPreset" method to "string-checker" module, so you can use "preset"
option in browser, right now, only "jquery" preset is supported

* Add new "preset" option to cli module. Without testing right now, since this
module is pretty hard to test

Fix jscs-dev#54
.parse(process.argv);

var Checker = require('./checker');
var checker = new Checker();

var configPath = path.resolve(process.cwd(), program.config || '.jscs.json');
var isConfigExist = fs.existsSync(configPath);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isConfigExist does not look like a good name. Try doesConfigExist or configExists.

@markelog
Copy link
Member Author

@mdevils done

mdevils added a commit that referenced this pull request Dec 19, 2013
Implement "preset" option
@mdevils mdevils merged commit 12ae708 into jscs-dev:master Dec 19, 2013
@SBoudrias
Copy link

Awesome!

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

Successfully merging this pull request may close these issues.

Add common style guide pre-made rules
3 participants