Update ESLint, Prettier, TypeScript, and Ava

This commit is contained in:
Zaid Abdulla committed 2020-09-01 02:59:27 -07:00
1 parent 04b19eb05f
commit 2780e3970e
4 files changed
+1053 -2004

No files matched your search

-1
View File
@@ -1,5 +1,4 @@
export default {
"compileEnhancements": false,
"extensions": ["ts"],
"require": ["esm", "ts-node/register/transpile-only"]
};
+1045 -1995
View File
File diff suppressed because it is too large. Load diff
+7 -7
View File
@@ -51,12 +51,12 @@
"@types/parsimmon": "^1.10.2",
"@types/seedrandom": "^2.4.28",
"@types/svgo": "^1.2.1",
"@typescript-eslint/eslint-plugin": "^3.7.0",
"@typescript-eslint/parser": "^3.7.0",
"ava": "^2.2.0",
"@typescript-eslint/eslint-plugin": "^3.10.1",
"@typescript-eslint/parser": "^3.10.1",
"ava": "^3.12.1",
"codemirror": "^5.48.2",
"cssnano": "^4.1.10",
"eslint": "^7.5.0",
"eslint": "^7.8.0",
"eslint-config-prettier": "^6.11.0",
"esm": "^3.2.25",
"jsbi": "^3.1.3",
@@ -64,13 +64,13 @@
"postcss": "^7.0.17",
"postcss-import": "^12.0.1",
"postcss-preset-env": "^6.7.0",
"prettier": "^2.0.5",
"prettier": "^2.1.1",
"rollup": "^2.23.0",
"rollup-plugin-terser": "^6.1.0",
"source-map-loader": "^1.0.1",
"svgo": "^1.3.0",
"ts-node": "^8.10.2",
"typescript": "^3.9.7",
"ts-node": "^9.0.0",
"typescript": "^4.0.2",
"webpack": "^4.44.0"
},
"engines": {
+1 -1
View File
@@ -56,7 +56,7 @@ ava("mongoQueryToFilter", (t) => {
const func = (): void => {
mongodbFunctions.mongoQueryToFilter(test[0] as Record<string, unknown>);
};
const error = t.throws(func, Error);
const error = t.throws(func, { instanceOf: Error });
t.is(error.message, test[1]);
}
});