Skip to content
This repository was archived by the owner on Jan 9, 2023. It is now read-only.

Commit 9a69f7a

Browse files
committed
Move to Eslint
1 parent cb60d41 commit 9a69f7a

File tree

3 files changed

+33
-10
lines changed

3 files changed

+33
-10
lines changed

.eslintrc

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"env": {
3+
"node": true
4+
},
5+
"parserOptions": {
6+
"ecmaVersion": 6
7+
},
8+
"rules": {
9+
"array-bracket-spacing": [2, "never"],
10+
"block-scoped-var": 2,
11+
"brace-style": [2, "1tbs"],
12+
"camelcase": 0,
13+
"computed-property-spacing": [2, "never"],
14+
"curly": 2,
15+
"eol-last": 2,
16+
"eqeqeq": [2, "smart"],
17+
"new-cap": 1,
18+
"no-extend-native": 2,
19+
"no-mixed-spaces-and-tabs": 2,
20+
"no-trailing-spaces": 2,
21+
"no-unused-vars": 1,
22+
"no-use-before-define": [2, "nofunc"],
23+
"object-curly-spacing": [2, "never"],
24+
"quotes": [2, "single", "avoid-escape"],
25+
"semi": [2, "always"],
26+
"keyword-spacing": [2, {"before": true, "after": true}],
27+
"space-unary-ops": 2,
28+
"no-console": 0
29+
}
30+
}

.jscsrc

Lines changed: 0 additions & 6 deletions
This file was deleted.

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"homepage": "http://hospitalrun.io",
77
"scripts": {
88
"start": "node app.js",
9-
"test": "snyk test && jscs *.js dblisteners/*.js"
9+
"test": "snyk test && eslint *.js utils/*.js"
1010
},
1111
"repository": {
1212
"type": "git",
@@ -15,14 +15,13 @@
1515
"author": "John Kleinschmidt",
1616
"contributors": [
1717
"Joel Worrall",
18-
"Joel Glovier",
19-
"Mofesola Babalola",
20-
"Adeola Badmus"
18+
"Joel Glovier"
2119
],
2220
"license": "GPL-3.0",
2321
"dependencies": {
2422
"colors": "^1.1.2",
2523
"csv-parse": "1.1.7",
24+
"csv-stringify": "^1.0.4",
2625
"express": "^4.13.4",
2726
"hospitalrun": "0.9.18",
2827
"hospitalrun-dblisteners": "0.9.6",

0 commit comments

Comments
 (0)