Skip to content

Commit

Permalink
Added in ESLint
Browse files Browse the repository at this point in the history
  • Loading branch information
sazzer committed Feb 2, 2016
1 parent 595972f commit 65f14f4
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 2 deletions.
42 changes: 42 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"parser": "babel-eslint",
"rules": {
"valid-jsdoc": [2, {
"requireReturn": false,
"requireParamDescription": true,
"requireReturnDescription": true
}],
"default-case": 2,
"dot-location": [2, "property"],
"no-else-return": 2,
"no-floating-decimal": 2,
"no-param-reassign": 2,
"no-process-env": 2,
"no-undefined": 2,
"comma-style": [2, "last"],
"linebreak-style": [2, "unix"],
"no-lonely-if": 2,
"no-multiple-empty-lines": [2, {
"max": 2
}],
"no-nested-ternary": 2,
"no-var": 2,
"quotes": [2, "single", "avoid-escape"],
"no-console": 0,
"no-trailing-spaces": [2, {"skipBlankLines": true}],
"new-cap": [2, {
"newIsCap": true,
"capIsNew": false
}]
},
"env": {
"es6": true,
"node": true
},
"ecmaFeatures": {
"jsx": true,
"modules": true
},
"plugins": [
]
}
9 changes: 8 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,17 @@
"main": "lib/main/index.js",
"scripts": {
"clean": "rm -rf lib",

"compile": "babel src/main -d lib/main",

"test-compile": "babel src/test -d lib/test",
"pretest-compile": "npm run compile",
"preunittest": "npm run test-compile",
"unittest": "mocha lib/test",
"test": "npm run unittest"

"lint": "eslint src",

"test": "npm run lint && npm run unittest"
},
"repository": {
"type": "git",
Expand All @@ -28,7 +33,9 @@
"homepage": "https://github.com/sazzer/graphql-tester#readme",
"devDependencies": {
"babel-cli": "^6.4.5",
"babel-eslint": "^4.1.8",
"babel-preset-es2015-node5": "^1.1.2",
"eslint": "^1.10.3",
"mocha": "^2.4.5"
}
}
2 changes: 1 addition & 1 deletion src/main/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export function tester({
url,
url,
method = 'POST',
contentType = 'application/graphql'
}) {
Expand Down

0 comments on commit 65f14f4

Please sign in to comment.