Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
16 changes: 10 additions & 6 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,20 @@
"es6": true
},
"parserOptions": {
"ecmaVersion": 2017
"ecmaVersion": "latest"
},
"globals": {
"Promise": false,
"BigInt": false
},
"extends": "eslint:recommended",
"rules": {
// Possible Errors
"no-empty": ["error", {
"allowEmptyCatch": true
}],
"no-use-before-define": ["error", {
"functions": false
}],
// Stylistic Issues
"indent": ["warn", 2, {
"SwitchCase": 1,
"ignoredNodes": ["TemplateLiteral"]
Expand All @@ -44,7 +42,9 @@
"operator-linebreak": ["warn", "before"],
"brace-style": ["warn"],
"keyword-spacing": ["warn"],
"object-curly-spacing": ["warn", "always"],
"object-curly-spacing": ["warn", "never"],
"array-bracket-spacing": ["warn", "never"],
"computed-property-spacing": ["warn", "never"],
"space-before-blocks": ["warn", "always"],
"spaced-comment": ["warn", "always"],
"space-before-function-paren": ["warn", {
Expand All @@ -53,7 +53,6 @@
"asyncArrow": "always"
}],
"padded-blocks": ["warn", "never"],
// Best Practices
"curly": ["warn"],
"eqeqeq": ["error", "always", {
"null": "ignore"
Expand All @@ -63,6 +62,11 @@
"exceptions": {
"Property": false
}
}]
}],
"prefer-rest-params": ["warn"],
"prefer-const": ["warn"],
"no-var": ["warn"],
"no-extra-parens": ["warn", "all"],
"space-in-parens": ["warn", "never"]
}
}
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

strategy:
matrix:
node-version: [12.x, 14.x]
node-version: [18.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
Expand Down
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
18
70 changes: 18 additions & 52 deletions README.md

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
module.exports = {
'testEnvironment': 'jsdom',
coverageReporters: ['json', 'lcov', 'text', 'clover', 'html']
};
};
Loading