Skip to content

Commit 900b801

Browse files
authored
Merge pull request #19 from georapbox/esnext
Convert codebase to ES6
2 parents e4bd28a + 602f0c5 commit 900b801

File tree

468 files changed

+10056
-11025
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

468 files changed

+10056
-11025
lines changed

.eslintrc.json

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,20 @@
88
"es6": true
99
},
1010
"parserOptions": {
11-
"ecmaVersion": 2017
11+
"ecmaVersion": "latest"
1212
},
1313
"globals": {
1414
"Promise": false,
1515
"BigInt": false
1616
},
1717
"extends": "eslint:recommended",
1818
"rules": {
19-
// Possible Errors
2019
"no-empty": ["error", {
2120
"allowEmptyCatch": true
2221
}],
2322
"no-use-before-define": ["error", {
2423
"functions": false
2524
}],
26-
// Stylistic Issues
2725
"indent": ["warn", 2, {
2826
"SwitchCase": 1,
2927
"ignoredNodes": ["TemplateLiteral"]
@@ -44,7 +42,9 @@
4442
"operator-linebreak": ["warn", "before"],
4543
"brace-style": ["warn"],
4644
"keyword-spacing": ["warn"],
47-
"object-curly-spacing": ["warn", "always"],
45+
"object-curly-spacing": ["warn", "never"],
46+
"array-bracket-spacing": ["warn", "never"],
47+
"computed-property-spacing": ["warn", "never"],
4848
"space-before-blocks": ["warn", "always"],
4949
"spaced-comment": ["warn", "always"],
5050
"space-before-function-paren": ["warn", {
@@ -53,7 +53,6 @@
5353
"asyncArrow": "always"
5454
}],
5555
"padded-blocks": ["warn", "never"],
56-
// Best Practices
5756
"curly": ["warn"],
5857
"eqeqeq": ["error", "always", {
5958
"null": "ignore"
@@ -63,6 +62,11 @@
6362
"exceptions": {
6463
"Property": false
6564
}
66-
}]
65+
}],
66+
"prefer-rest-params": ["warn"],
67+
"prefer-const": ["warn"],
68+
"no-var": ["warn"],
69+
"no-extra-parens": ["warn", "all"],
70+
"space-in-parens": ["warn", "never"]
6771
}
6872
}

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616

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

2222
steps:

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
18

README.md

Lines changed: 18 additions & 52 deletions
Large diffs are not rendered by default.

jest.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
module.exports = {
2+
'testEnvironment': 'jsdom',
23
coverageReporters: ['json', 'lcov', 'text', 'clover', 'html']
3-
};
4+
};

0 commit comments

Comments
 (0)