-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sharing #229
Sharing #229
Changes from all commits
41b99fd
f986cb7
bee3b09
839ced8
af75f1e
723c642
1b8dd7b
1e7ab4c
fb0c506
82796e6
c827bbb
24f6ce3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/usr/bin/env node | ||
|
||
var path = require('path'); | ||
var eslint = require('eslint'); | ||
|
||
var configFilePath = path.resolve(__dirname, '..', '.eslintrc.js') | ||
var cli, report; | ||
|
||
cli = new eslint.CLIEngine({ configFile: configFilePath }); | ||
report = cli.executeOnFiles(process.argv.slice(2)); | ||
|
||
console.log(cli.getFormatter()(report.results)); // eslint-disable-line |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,11 +2,23 @@ | |
"name": "goodparts", | ||
"description": "An ESLint Style that only allows JavaScript the Good Parts (and \"Better Parts\") in your codebase.", | ||
"version": "0.0.1", | ||
"main": ".eslintrc.js", | ||
"scripts": { | ||
"test": "tape test/" | ||
}, | ||
"devDependencies": { | ||
"eslint": "^3.5.0", | ||
"tape": "^4.6.0" | ||
} | ||
}, | ||
"dependencies": { | ||
"eslint": "^3.5.0" | ||
}, | ||
"bin": "./bin/cmd.js", | ||
"contributors": [ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. gitter handle may be better! hehe There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @nelsonic included too! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. changed to github handles and added @nelsonic |
||
"nelsonic", | ||
"eliascodes", | ||
"jrans", | ||
"shouston3", | ||
"SimonLab" | ||
] | ||
|
||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@eliasCodes could we specify a
bin
script inpackage.json
?see: https://docs.npmjs.com/files/package.json#bin
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have 82796e6
Or do you mean changing the script to
"lint": "goodparts path/to/files/for/linting"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like a good start. thanks!