Skip to content

Commit

Permalink
update Readme and add eslint config
Browse files Browse the repository at this point in the history
  • Loading branch information
particlebanana committed Sep 23, 2016
1 parent ad2b2a4 commit aeef63e
Show file tree
Hide file tree
Showing 3 changed files with 106 additions and 2 deletions.
53 changes: 53 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"parser": "espree",
"extends": "eslint:recommended",
"env": {
"node": true,
"mocha": true
},
"rules": {
"array-bracket-spacing": [2, "never"],
"block-scoped-var": [2],
"block-spacing": [2, "always"],
"brace-style": [2, "1tbs"],
"callback-return": [2, ["callback", "cb", "next", "done"]],
"camelcase": [2, {"properties": "always"}],
"comma-spacing": [2, {"before": false, "after": true}],
"comma-style": [2, "last"],
"computed-property-spacing": [2, "never"],
"consistent-this": [2, "self"],
"curly": [2],
"dot-notation": [2],
"eol-last": [2],
"eqeqeq": [1, "smart"],
"func-names": [2],
"func-style": [2, "expression"],
"handle-callback-err": [2],
"indent": [2, 2, {"SwitchCase": 1}],
"key-spacing": [2, {"beforeColon": false, "afterColon": true}],
"keyword-spacing": [2, {"before": true, "after": true}],
"linebreak-style": [2, "unix"],
"lines-around-comment": [2, { "beforeBlockComment": true, "afterBlockComment": true, "beforeLineComment": false, "afterLineComment": false }],
"max-depth": [2, 4],
"no-else-return": [2],
"no-loop-func": [2],
"no-mixed-requires": [2],
"no-mixed-spaces-and-tabs": [2, "smart-tabs"],
"no-multiple-empty-lines": [1, {"max": 2}],
"no-return-assign": [2, "always"],
"no-spaced-func": [2],
"no-trailing-spaces": [2],
"no-unexpected-multiline": [1],
"object-curly-spacing": [2, "always"],
"one-var": [2, "never"],
"padded-blocks": [2, "never"],
"semi": [1, "always"],
"sort-vars": [2, { "ignoreCase": true }],
"space-before-blocks": [2],
"space-before-function-paren": [1, "never"],
"space-in-parens": [2, "never"],
"space-infix-ops": [2],
"space-unary-ops": [1, { "words": true, "nonwords": false }],
"spaced-comment": [1, "always"],
}
}
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
Structured Node.js bindings for MySql.


## Installation   [![NPM version](https://badge.fury.io/js/machinepack-mysql.svg)](http://badge.fury.io/js/machinepack-mysql) [![Build Status](https://travis-ci.org/particlebanana/machinepack-mysql.png?branch=master)](https://travis-ci.org/particlebanana/machinepack-mysql)
## Installation   [![NPM version](https://badge.fury.io/js/machinepack-mysql.svg)](http://badge.fury.io/js/machinepack-mysql) [![Build Status](https://travis-ci.org/treelinehq/machinepack-mysql.png?branch=master)](https://travis-ci.org/treelinehq/machinepack-mysql)

```sh
$ npm install machinepack-mysql
Expand All @@ -27,4 +27,3 @@ Learn more at <a href="http://node-machine.org/implementing/FAQ" title="Machine
## License

MIT &copy; 2015 Cody Stoltman, Mike McNeil, Scott Gress

52 changes: 52 additions & 0 deletions test/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"parser": "espree",
"extends": "eslint:recommended",
"env": {
"node": true,
"mocha": true
},
"rules": {
"array-bracket-spacing": [2, "never"],
"block-scoped-var": [2],
"block-spacing": [2, "always"],
"brace-style": [2, "1tbs"],
"callback-return": [2, ["callback", "cb", "next", "done"]],
"camelcase": [2, {"properties": "always"}],
"comma-spacing": [2, {"before": false, "after": true}],
"comma-style": [2, "last"],
"computed-property-spacing": [2, "never"],
"consistent-this": [2, "self"],
"curly": [2],
"dot-notation": [2],
"eol-last": [2],
"eqeqeq": [1, "smart"],
"func-style": [2, "expression"],
"handle-callback-err": [2],
"indent": [2, 2, {"SwitchCase": 1}],
"key-spacing": [2, {"beforeColon": false, "afterColon": true}],
"keyword-spacing": [2, {"before": true, "after": true}],
"linebreak-style": [2, "unix"],
"lines-around-comment": [2, { "beforeBlockComment": true, "afterBlockComment": true, "beforeLineComment": false, "afterLineComment": false }],
"max-depth": [2, 4],
"no-else-return": [2],
"no-loop-func": [2],
"no-mixed-requires": [2],
"no-mixed-spaces-and-tabs": [2, "smart-tabs"],
"no-multiple-empty-lines": [1, {"max": 2}],
"no-return-assign": [2, "always"],
"no-spaced-func": [2],
"no-trailing-spaces": [2],
"no-unexpected-multiline": [1],
"object-curly-spacing": [2, "always"],
"one-var": [2, "never"],
"padded-blocks": [2, "never"],
"semi": [1, "always"],
"sort-vars": [2, { "ignoreCase": true }],
"space-before-blocks": [2],
"space-before-function-paren": [1, "never"],
"space-in-parens": [2, "never"],
"space-infix-ops": [2],
"space-unary-ops": [1, { "words": true, "nonwords": false }],
"spaced-comment": [1, "always"],
}
}

0 comments on commit aeef63e

Please sign in to comment.