Skip to content

Commit aeef63e

Browse files
update Readme and add eslint config
1 parent ad2b2a4 commit aeef63e

File tree

3 files changed

+106
-2
lines changed

3 files changed

+106
-2
lines changed

.eslintrc

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
{
2+
"parser": "espree",
3+
"extends": "eslint:recommended",
4+
"env": {
5+
"node": true,
6+
"mocha": true
7+
},
8+
"rules": {
9+
"array-bracket-spacing": [2, "never"],
10+
"block-scoped-var": [2],
11+
"block-spacing": [2, "always"],
12+
"brace-style": [2, "1tbs"],
13+
"callback-return": [2, ["callback", "cb", "next", "done"]],
14+
"camelcase": [2, {"properties": "always"}],
15+
"comma-spacing": [2, {"before": false, "after": true}],
16+
"comma-style": [2, "last"],
17+
"computed-property-spacing": [2, "never"],
18+
"consistent-this": [2, "self"],
19+
"curly": [2],
20+
"dot-notation": [2],
21+
"eol-last": [2],
22+
"eqeqeq": [1, "smart"],
23+
"func-names": [2],
24+
"func-style": [2, "expression"],
25+
"handle-callback-err": [2],
26+
"indent": [2, 2, {"SwitchCase": 1}],
27+
"key-spacing": [2, {"beforeColon": false, "afterColon": true}],
28+
"keyword-spacing": [2, {"before": true, "after": true}],
29+
"linebreak-style": [2, "unix"],
30+
"lines-around-comment": [2, { "beforeBlockComment": true, "afterBlockComment": true, "beforeLineComment": false, "afterLineComment": false }],
31+
"max-depth": [2, 4],
32+
"no-else-return": [2],
33+
"no-loop-func": [2],
34+
"no-mixed-requires": [2],
35+
"no-mixed-spaces-and-tabs": [2, "smart-tabs"],
36+
"no-multiple-empty-lines": [1, {"max": 2}],
37+
"no-return-assign": [2, "always"],
38+
"no-spaced-func": [2],
39+
"no-trailing-spaces": [2],
40+
"no-unexpected-multiline": [1],
41+
"object-curly-spacing": [2, "always"],
42+
"one-var": [2, "never"],
43+
"padded-blocks": [2, "never"],
44+
"semi": [1, "always"],
45+
"sort-vars": [2, { "ignoreCase": true }],
46+
"space-before-blocks": [2],
47+
"space-before-function-paren": [1, "never"],
48+
"space-in-parens": [2, "never"],
49+
"space-infix-ops": [2],
50+
"space-unary-ops": [1, { "words": true, "nonwords": false }],
51+
"spaced-comment": [1, "always"],
52+
}
53+
}

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
Structured Node.js bindings for MySql.
99

1010

11-
## 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)
11+
## 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)
1212

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

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

test/.eslintrc

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
"parser": "espree",
3+
"extends": "eslint:recommended",
4+
"env": {
5+
"node": true,
6+
"mocha": true
7+
},
8+
"rules": {
9+
"array-bracket-spacing": [2, "never"],
10+
"block-scoped-var": [2],
11+
"block-spacing": [2, "always"],
12+
"brace-style": [2, "1tbs"],
13+
"callback-return": [2, ["callback", "cb", "next", "done"]],
14+
"camelcase": [2, {"properties": "always"}],
15+
"comma-spacing": [2, {"before": false, "after": true}],
16+
"comma-style": [2, "last"],
17+
"computed-property-spacing": [2, "never"],
18+
"consistent-this": [2, "self"],
19+
"curly": [2],
20+
"dot-notation": [2],
21+
"eol-last": [2],
22+
"eqeqeq": [1, "smart"],
23+
"func-style": [2, "expression"],
24+
"handle-callback-err": [2],
25+
"indent": [2, 2, {"SwitchCase": 1}],
26+
"key-spacing": [2, {"beforeColon": false, "afterColon": true}],
27+
"keyword-spacing": [2, {"before": true, "after": true}],
28+
"linebreak-style": [2, "unix"],
29+
"lines-around-comment": [2, { "beforeBlockComment": true, "afterBlockComment": true, "beforeLineComment": false, "afterLineComment": false }],
30+
"max-depth": [2, 4],
31+
"no-else-return": [2],
32+
"no-loop-func": [2],
33+
"no-mixed-requires": [2],
34+
"no-mixed-spaces-and-tabs": [2, "smart-tabs"],
35+
"no-multiple-empty-lines": [1, {"max": 2}],
36+
"no-return-assign": [2, "always"],
37+
"no-spaced-func": [2],
38+
"no-trailing-spaces": [2],
39+
"no-unexpected-multiline": [1],
40+
"object-curly-spacing": [2, "always"],
41+
"one-var": [2, "never"],
42+
"padded-blocks": [2, "never"],
43+
"semi": [1, "always"],
44+
"sort-vars": [2, { "ignoreCase": true }],
45+
"space-before-blocks": [2],
46+
"space-before-function-paren": [1, "never"],
47+
"space-in-parens": [2, "never"],
48+
"space-infix-ops": [2],
49+
"space-unary-ops": [1, { "words": true, "nonwords": false }],
50+
"spaced-comment": [1, "always"],
51+
}
52+
}

0 commit comments

Comments
 (0)