Skip to content

Commit

Permalink
add eslint config
Browse files Browse the repository at this point in the history
As of now we are planning not to enable all the rules but do it step by step.
  • Loading branch information
gaonkar18y committed Aug 9, 2019
1 parent 670c94f commit c726236
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 6 deletions.
36 changes: 35 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"extends": ["eslint:recommended","google"],
"parserOptions": {
"ecmaVersion": 6
},
Expand All @@ -9,7 +10,40 @@
"exampleGlobalVariable": true
},
"rules": {
"eqeqeq": 1
"eqeqeq": 1,
"indent": 0,
"no-tabs": 0,
"max-len": [2, 200],
"semi":0,
"valid-jsdoc":0,
"comma-spacing":0,
"quotes":0,
"no-multi-spaces":0,
"no-trailing-spaces":0,
"space-before-function-paren":0,
"spaced-comment":0,
"padded-blocks":0,
"comma-dangle":0,
"keyword-spacing":0,
"key-spacing":0,
"object-curly-spacing":0,
"require-jsdoc":0,
"no-var":0,
"block-spacing":0,
"brace-style":0,
"quote-props":0,
"no-mixed-spaces-and-tabs":0,
"space-before-blocks":0,
"func-call-spacing":0,
"eol-last":0,
"camelcase":0,
"guard-for-in":0,
"no-prototype-builtins":0,
"arrow-parens":0,
"one-var":0,
"semi-spacing":0,
"no-multiple-empty-lines":0,
"no-unused-vars":0
},
"plugins": [
]
Expand Down
8 changes: 3 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@
"xml2js": "^0.4.16"
},
"devDependencies": {
"eslint": "^6.1.0",
"eslint-config-google": "^0.13.0",
"gulp": "^4.0.2",
"gulp-shell": "^0.6.5",
"gulp-sourcemaps": "^1.5.2",
Expand All @@ -53,14 +55,10 @@
"run-sequence": "^1.1.0",
"test-until": "^1.1.1"
},
"eslintConfig": {
"env": {
"es6": true
}
},
"scripts": {
"start": "node app.js",
"stop": "node stop.js",
"lint": "eslint ./cli ./lib app.js forever.js",
"package": "node cli/package.js",
"test": "mocha tests/*.*.integ.test.js --timeout 90000 && nyc mocha tests/*.*.unit.test.js"
},
Expand Down

0 comments on commit c726236

Please sign in to comment.