forked from Rob--W/cors-anywhere
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enforce a consistent coding style using eslint
- Loading branch information
Showing
9 changed files
with
96 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"env": { | ||
"node": true | ||
}, | ||
"rules": { | ||
"array-bracket-spacing": [2, "never"], | ||
"block-scoped-var": 2, | ||
"brace-style": [2, "1tbs", {"allowSingleLine": true}], | ||
"comma-dangle": [2, "always-multiline"], | ||
"computed-property-spacing": [2, "never"], | ||
"curly": 2, | ||
"eol-last": 2, | ||
"eqeqeq": [2, "smart"], | ||
"max-len": [1, 125], | ||
"new-cap": 1, | ||
"no-extend-native": 2, | ||
"no-mixed-spaces-and-tabs": 2, | ||
"no-trailing-spaces": 2, | ||
"no-undef": 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, | ||
"space-unary-ops": 2 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
{ | ||
"name": "cors-anywhere", | ||
"version": "0.3.0", | ||
"description": "CORS Anywhere is a reverse proxy which adds CORS headers to the proxied request. Request URL is taken from the path", | ||
"description": "CORS Anywhere is a reverse proxy which adds CORS headers to the proxied request. Request URL is taken from the path", | ||
"license": "MIT", | ||
"author": "Rob Wu <[email protected]>", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/Rob--W/cors-anywhere.git" | ||
"type": "git", | ||
"url": "https://github.com/Rob--W/cors-anywhere.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/Rob--W/cors-anywhere/issues/", | ||
"email": "[email protected]" | ||
"url": "https://github.com/Rob--W/cors-anywhere/issues/", | ||
"email": "[email protected]" | ||
}, | ||
"keywords": [ | ||
"cors", | ||
"cross-domain", | ||
"http-proxy", | ||
"proxy", | ||
"heroku" | ||
"cors", | ||
"cross-domain", | ||
"http-proxy", | ||
"proxy", | ||
"heroku" | ||
], | ||
"main": "./lib/cors-anywhere.js", | ||
"dependencies": { | ||
|
@@ -26,11 +26,13 @@ | |
"requires-port": "1.0.0" | ||
}, | ||
"devDependencies": { | ||
"eslint": "^2.2.0", | ||
"mocha": "~2.2.4", | ||
"nock": "~1.9.0", | ||
"supertest": "~0.15.0" | ||
}, | ||
"scripts": { | ||
"lint": "eslint .", | ||
"test": "./node_modules/.bin/mocha ./test/test*.js --reporter spec" | ||
}, | ||
"engines": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
/* eslint-env mocha */ | ||
// Run this specific test using: | ||
// npm test -- -f memory | ||
var http = require('http'); | ||
|
Oops, something went wrong.