Dependencies are updated

This commit is contained in:
Aaron Jensen 2021-08-10 10:39:24 -04:00
parent 21d3c51404
commit 8745fbbe0f
No known key found for this signature in database
GPG Key ID: C7481C94F4CA86A7
5 changed files with 683 additions and 382 deletions

View File

@ -5,22 +5,20 @@ const config = {
env: {
node: true,
},
"extends": [
"eslint:recommended",
"prettier"
extends: ['eslint:recommended', 'prettier'],
plugins: ['prettier'],
rules: {
'no-confusing-arrow': 'off',
'comma-dangle': [
'error',
{
arrays: 'always-multiline',
objects: 'always-multiline',
imports: 'always-multiline',
exports: 'always-multiline',
functions: 'never',
},
],
"plugins": [
"prettier"
],
"rules": {
"no-confusing-arrow": "off",
"comma-dangle": ["error", {
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "never"
}]
},
overrides: [
{
@ -35,14 +33,14 @@ const config = {
{
files: ['test/**/*'],
env: {
mocha: true
mocha: true,
},
parserOptions: {
sourceType: 'module',
},
rules: {
"no-unused-expressions": 'off'
}
'no-unused-expressions': 'off',
},
},
{
files: ['**/*.@(ts|tsx)'],
@ -52,10 +50,10 @@ const config = {
sourceType: 'module',
},
rules: {
'@typescript-eslint/class-name-casing': 'error',
'@typescript-eslint/consistent-type-assertions': 'error',
'@typescript-eslint/no-empty-interface': 'error',
'@typescript-eslint/no-non-null-assertion': 'error',
'@typescript-eslint/no-redeclare': 'error',
'@typescript-eslint/type-annotation-spacing': 'error',
'@typescript-eslint/no-unused-vars': [
'error',
@ -64,6 +62,7 @@ const config = {
ignoreRestSiblings: true,
},
],
'no-redeclare': 'off',
},
},
{
@ -72,10 +71,11 @@ const config = {
'@typescript-eslint/no-useless-constructor': 'error',
'no-var': 'off',
'no-useless-constructor': 'off',
'no-redeclare': 'off',
strict: 'off',
},
},
]
],
}
module.exports = config

View File

@ -39,32 +39,32 @@
"lodash": "^4.2.0"
},
"devDependencies": {
"@babel/core": "^7.7.0",
"@babel/core": "^7.15.0",
"@babel/plugin-proposal-object-rest-spread": "^7.6.2",
"@babel/preset-env": "^7.7.1",
"@babel/preset-typescript": "^7.9.0",
"@babel/preset-env": "^7.15.0",
"@babel/preset-typescript": "^7.15.0",
"@babel/register": "^7.7.0",
"@types/chai": "^4.1.7",
"@types/lodash": "^4.14.119",
"@types/mocha": "^9.0.0",
"@types/node": "^16.0.0",
"@typescript-eslint/eslint-plugin": "^2.26.0",
"@typescript-eslint/parser": "^2.26.0",
"@types/node": "^16.4.13",
"@typescript-eslint/eslint-plugin": "^4.29.1",
"@typescript-eslint/parser": "^4.29.1",
"benchmark": "^2.1.4",
"chai": "^4.2.0",
"chalk": "^4.0.0",
"dtslint": "^4.0.0",
"eslint": "^6.8.0",
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.2.0",
"eslint-plugin-expect-type": "^0.0.5",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-import": "^2.24.0",
"eslint-plugin-prettier": "^3.1.2",
"husky": "^7.0.0",
"lint-staged": "^11.0.0",
"lint-staged": "^11.1.2",
"microbundle": "^0.13.0",
"mocha": "^9.0.0",
"prettier": "^2.0.2",
"table": "^6.2.0",
"typescript": "^3.6.3"
"typescript": "^4.3.5"
}
}

View File

@ -1,5 +1,5 @@
module.exports = {
extends: require.resolve("../.eslintrc.js"),
extends: require.resolve('../.eslintrc.js'),
env: {
node: true,
es6: true,
@ -9,6 +9,6 @@ module.exports = {
},
rules: {
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': 'off'
}
'@typescript-eslint/no-unused-vars': 'off',
},
}

View File

@ -34,9 +34,9 @@ u({ this: 2 })({ that: 3 }); // $ExpectType object
u.ifElse(false as boolean, { a: 1 }, { a: 2 }, { a: 3 }); // $ExpectType object
u.ifElse(false as boolean, "foo", 3, { a: 3 }); // $ExpectType 3 | "foo"
u.ifElse(false, "foo", 3, { a: 3 }); // $ExpectType 3
u.ifElse(true, "foo", 3, { a: 3 }); // $ExpectType "foo"
u.ifElse(false as boolean, "foo" as const, 3 as const, { a: 3 }); // $ExpectType 3 | "foo"
u.ifElse(false, "foo" as const, 3 as const, { a: 3 }); // $ExpectType 3
u.ifElse(true, "foo" as const, 3 as const, { a: 3 }); // $ExpectType "foo"
// *** map ***
const inc = (i: number) => i+1;

989
yarn.lock

File diff suppressed because it is too large Load Diff