Skip to content

Commit

Permalink
switched to exlint
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Maurer committed Apr 18, 2016
1 parent dd6f6a4 commit 7875dad
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 16 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Node.js Crypto-Extra

[![Build Status](https://travis-ci.org/jsonmaur/node-crypto-extra.svg?branch=master)](https://travis-ci.org/jsonmaur/node-crypto-extra)
[![Coverage Status](https://coveralls.io/repos/github/jsonmaur/node-crypto-extra/badge.svg?branch=master)](https://coveralls.io/github/jsonmaur/node-crypto-extra?branch=master)

Expand All @@ -16,7 +17,7 @@ Adds convenience methods to the native Node.js [crypto module](https://nodejs.or
- [randomString](#api-random-string)
- [randomNumber](#api-random-number)
- [native crypto methods](https://nodejs.org/api/crypto.html)
- [Contributing](#contributing)
- [License](#license)

## Why?

Expand Down Expand Up @@ -173,7 +174,7 @@ Returns a random string within a defined range.
> Type: `integer`
> Default: `9007199254740991`
<a name="contributing"></a>
## Contributing
<a name="license"></a>
## License

Have an idea for a useful method? Come across an issue? Submit a pull request!
[MIT](LICENSE) © [Jason Maurer](http://maur.co)
14 changes: 3 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
],
"main": "lib/index.js",
"scripts": {
"lint": "eslint src test",
"lint": "exlint src test",
"pretest": "rm -rf .nyc_output coverage && npm run lint",
"test": "cross-env NODE_ENV=testing nyc ava -a",
"posttest": "nyc report -r=lcov",
Expand All @@ -43,13 +43,13 @@
"devDependencies": {
"ava": "0.14.0",
"babel-cli": "6.7.5",
"babel-eslint": "6.0.2",
"babel-plugin-transform-runtime": "6.7.5",
"babel-preset-es2015": "6.6.0",
"babel-preset-stage-0": "6.5.0",
"coveralls": "2.11.9",
"cross-env": "1.0.7",
"eslint": "2.7.0",
"eslint-config-zab": "0.2.0",
"exlint": "0.1.0",
"nyc": "6.4.0",
"sinon": "1.17.3"
},
Expand All @@ -73,14 +73,6 @@
]
]
},
"eslintConfig": {
"extends": "zab",
"rules": {
"arrow-parens": [
0
]
}
},
"ava": {
"require": [
"babel-register"
Expand Down
2 changes: 1 addition & 1 deletion test/encryption.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ test('encrypt()', (t) => {
t.is(decrypt(encrypt('hey', secretKey), secretKey), 'hey')
t.is(typeof encrypt('hey', secretKey), 'string')
t.is(typeof encrypt(100, secretKey), 'string')
t.is(typeof encrypt({hello: 'hey'}, secretKey), 'string')
t.is(typeof encrypt({ hello: 'hey' }, secretKey), 'string')
t.is(typeof encrypt(true, secretKey), 'string')
t.throws(() => encrypt('hey'), Error)
t.throws(() => encrypt('hey', 'short-secret-key'), Error)
Expand Down

0 comments on commit 7875dad

Please sign in to comment.