Skip to content

Commit

Permalink
use eslint and prettier to apply consistent, modern formatting (#155)
Browse files Browse the repository at this point in the history
* use eslint and prettier to apply consistent formatting
* convert var to let,const
* prefer template literal over string concatenation
* prefer arrow function callbacks
* remove string.prototype.repeat
* bump async and nyc to latest
* use Date.prototype.toUTCString to format date
* reformat async task arrangement to be more compact
* condense json serialization test with arrow functions
* require punycode unconditionally
* update remove cookies test to no assume synchronous store
* npm test should not run eslint
  • Loading branch information
jstewmon authored and awaterma committed Aug 21, 2019
1 parent 4350705 commit 88618e2
Show file tree
Hide file tree
Showing 23 changed files with 2,185 additions and 1,798 deletions.
12 changes: 12 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"parserOptions": {
"ecmaVersion": 6
},
"rules": {
"no-var": "error",
"prefer-arrow-callback": "error",
"prefer-const": "error",
"prefer-template": "error"
},
"extends": ["plugin:prettier/recommended"]
}
70 changes: 0 additions & 70 deletions .jshintrc

This file was deleted.

1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lib/version.js
Loading

0 comments on commit 88618e2

Please sign in to comment.