Skip to content

Commit

Permalink
refactor and fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
typerandom committed Oct 3, 2016
1 parent 60cb403 commit 1563ec2
Show file tree
Hide file tree
Showing 21 changed files with 950 additions and 799 deletions.
84 changes: 84 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
{
"rules": {
"curly": [
2
],
"eqeqeq": [
2
],
"indent": [
2,
2,
{
"SwitchCase": 1
}
],
"linebreak-style": [
2,
"unix"
],
"new-cap": [
2,
{
"properties": false
}
],
"no-unused-vars": [
2,
{
"vars": "all",
"args": "after-used"
}
],
"no-use-before-define": [
2
],
"no-trailing-spaces": [
2
],
"quotes": [
2,
"single"
],
"semi": [
2,
"always"
],
"wrap-iife": [
2,
"outside"
],
"strict": [
2,
"global"
],
"brace-style": 2,
"block-spacing": [
2,
"always"
],
"keyword-spacing": [2, {"before": true, "after": true, "overrides": {}}],
"space-before-blocks": 2,
"space-before-function-paren": [2, {"anonymous": "always", "named": "never"}],
"comma-spacing": [2, {"before": false, "after": true}],
"comma-style": [2, "last"],
"no-lonely-if": 2,
"array-bracket-spacing": [2, "never"],
"no-spaced-func": [2],
"space-in-parens": [2, "never"],
"space-infix-ops": 2
},
"globals": {
"after": true,
"afterEach": true,
"before": true,
"beforeEach": true,
"describe": true,
"it": true
},
"env": {
"es6": true,
"node": true
},
"extends": "eslint:recommended"
}
4 changes: 4 additions & 0 deletions .jshintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
test/rsa.pub
test/rsa.priv
test/ecdsa.pub
test/ecdsa.priv
Loading

0 comments on commit 1563ec2

Please sign in to comment.