Update ESLint, Prettier, TypeScript, and Ava
This commit is contained in:
1 parent
04b19eb05f
commit
2780e3970e
4 files changed
+1046
-1997
No files matched your search
@@ -1,5 +1,4 @@
|
|||||||
export default {
|
export default {
|
||||||
"compileEnhancements": false,
|
|
||||||
"extensions": ["ts"],
|
"extensions": ["ts"],
|
||||||
"require": ["esm", "ts-node/register/transpile-only"]
|
"require": ["esm", "ts-node/register/transpile-only"]
|
||||||
};
|
};
|
||||||
|
|||||||
Generated
+1038
-1988
File diff suppressed because it is too large.
Load diff
+7
-7
@@ -51,12 +51,12 @@
|
|||||||
"@types/parsimmon": "^1.10.2",
|
"@types/parsimmon": "^1.10.2",
|
||||||
"@types/seedrandom": "^2.4.28",
|
"@types/seedrandom": "^2.4.28",
|
||||||
"@types/svgo": "^1.2.1",
|
"@types/svgo": "^1.2.1",
|
||||||
"@typescript-eslint/eslint-plugin": "^3.7.0",
|
"@typescript-eslint/eslint-plugin": "^3.10.1",
|
||||||
"@typescript-eslint/parser": "^3.7.0",
|
"@typescript-eslint/parser": "^3.10.1",
|
||||||
"ava": "^2.2.0",
|
"ava": "^3.12.1",
|
||||||
"codemirror": "^5.48.2",
|
"codemirror": "^5.48.2",
|
||||||
"cssnano": "^4.1.10",
|
"cssnano": "^4.1.10",
|
||||||
"eslint": "^7.5.0",
|
"eslint": "^7.8.0",
|
||||||
"eslint-config-prettier": "^6.11.0",
|
"eslint-config-prettier": "^6.11.0",
|
||||||
"esm": "^3.2.25",
|
"esm": "^3.2.25",
|
||||||
"jsbi": "^3.1.3",
|
"jsbi": "^3.1.3",
|
||||||
@@ -64,13 +64,13 @@
|
|||||||
"postcss": "^7.0.17",
|
"postcss": "^7.0.17",
|
||||||
"postcss-import": "^12.0.1",
|
"postcss-import": "^12.0.1",
|
||||||
"postcss-preset-env": "^6.7.0",
|
"postcss-preset-env": "^6.7.0",
|
||||||
"prettier": "^2.0.5",
|
"prettier": "^2.1.1",
|
||||||
"rollup": "^2.23.0",
|
"rollup": "^2.23.0",
|
||||||
"rollup-plugin-terser": "^6.1.0",
|
"rollup-plugin-terser": "^6.1.0",
|
||||||
"source-map-loader": "^1.0.1",
|
"source-map-loader": "^1.0.1",
|
||||||
"svgo": "^1.3.0",
|
"svgo": "^1.3.0",
|
||||||
"ts-node": "^8.10.2",
|
"ts-node": "^9.0.0",
|
||||||
"typescript": "^3.9.7",
|
"typescript": "^4.0.2",
|
||||||
"webpack": "^4.44.0"
|
"webpack": "^4.44.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ ava("mongoQueryToFilter", (t) => {
|
|||||||
const func = (): void => {
|
const func = (): void => {
|
||||||
mongodbFunctions.mongoQueryToFilter(test[0] as Record<string, unknown>);
|
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]);
|
t.is(error.message, test[1]);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
Reference in new issue
Block a user