Skip to content

Commit

Permalink
Updated code quality configs
Browse files Browse the repository at this point in the history
  • Loading branch information
renyard committed May 25, 2017
1 parent 87fbc78 commit b9c5e47
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
engines:
eslint:
enabled: true
complexity:
enabled: true
duplication:
enabled: true
config:
languages:
javascript:
ratings:
paths:
- src/**/*.js
17 changes: 16 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,21 @@
"es6": true
},
"globals": {
"chrome": true
"chrome": true,
"validity": true
},
"rules": {
"brace-style": [2, "stroustrup", { "allowSingleLine": true }],
"complexity": [2, 6],
"curly": 2,
"eqeqeq": [2, "allow-null"],
"max-statements": [2, 30],
"no-shadow-restricted-names": 2,
"no-undef": 2,
"no-use-before-define": 0,
"radix": 2,
"semi": [2, "always"],
"space-infix-ops": 2,
"strict": 0
}
}

0 comments on commit b9c5e47

Please sign in to comment.