Skip to content
This repository has been archived by the owner on Sep 13, 2019. It is now read-only.

Commit

Permalink
Move from jscs to eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
jkleinsc committed Mar 23, 2017
1 parent e9fac1f commit d25af74
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 4 deletions.
26 changes: 26 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"env": {
"node": true
},
"rules": {
"array-bracket-spacing": [2, "never"],
"block-scoped-var": 2,
"brace-style": [2, "1tbs"],
"camelcase": 0,
"computed-property-spacing": [2, "never"],
"curly": 2,
"eol-last": 2,
"eqeqeq": [2, "smart"],
"new-cap": 1,
"no-extend-native": 2,
"no-mixed-spaces-and-tabs": 2,
"no-trailing-spaces": 2,
"no-unused-vars": 1,
"no-use-before-define": [2, "nofunc"],
"object-curly-spacing": [2, "never"],
"quotes": [2, "single", "avoid-escape"],
"semi": [2, "always"],
"keyword-spacing": [2, {"before": true, "after": true}],
"space-unary-ops": 2
}
}
11 changes: 9 additions & 2 deletions .snyk
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities.
# patches apply the minimum changes required to fix a vulnerability
patch:
'npm:request:20160119':
- nano > follow > request:
Expand All @@ -8,5 +10,10 @@ patch:
'npm:minimatch:20160620':
- snyk > recursive-readdir > minimatch:
patched: '2016-09-08T13:22:26.613Z'
version: v1.5.2
ignore: {}
version: v1.7.0
# ignores vulnerabilities until expiry date; change duration by modifying expiry date
ignore:
'npm:qs:20170213':
- nano > follow > request > qs:
reason: None given
expires: '2017-04-22T15:33:24.905Z'
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Express server routes for HospitalRun",
"main": "index.js",
"scripts": {
"test": "snyk test && jscs *.js routes/*.js",
"test": "snyk test && eslint *.js routes/*.js",
"snyk-protect": "snyk protect",
"prepublish": "npm run snyk-protect"
},
Expand Down Expand Up @@ -32,7 +32,7 @@
"on-headers": "^1.0.1",
"passport": "^0.3.2",
"passport-google-oauth": "^1.0.0",
"request": "^2.74.0",
"request": "^2.81.0",
"serializer": "0.0.3",
"snyk": "^1.13.2"
},
Expand Down

0 comments on commit d25af74

Please sign in to comment.