Created
April 25, 2015 20:08
-
-
Save also/d66be9fedd7a63a273fe to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var eslint = require('eslint'); | |
var CLIEngine = eslint.CLIEngine; | |
var linter = eslint.linter; | |
var baseConfig = {format: 'stylish'}; | |
console.log(baseConfig.format); | |
new CLIEngine({baseConfig: baseConfig}).getConfigForFile('.'); | |
console.log(baseConfig.format); | |
console.log(); | |
console.log(linter.defaults().format); | |
new CLIEngine({format: 'compact'}).getConfigForFile('.'); | |
console.log(linter.defaults().format); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment