Skip to content

Commit a988f0a

Browse files
committed
Bump dependencies
1 parent 85ecd41 commit a988f0a

File tree

7 files changed

+2463
-2352
lines changed

7 files changed

+2463
-2352
lines changed

.eslintrc.js

+29-29
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ module.exports = {
1515
'airbnb-base',
1616
],
1717
rules: {
18-
'import/no-extraneous-dependencies': [ 'error' ],
18+
'import/no-extraneous-dependencies': ['error'],
1919
'import/prefer-default-export': 'off',
2020
'filenames/match-regex': ['error', /^[0-9a-z.-]+$/, true],
2121
'consistent-return': 0,
2222
'no-unused-expressions': 0,
23-
'indent': ['warn', 2, {
23+
indent: ['warn', 2, {
2424
ObjectExpression: 'first',
2525
CallExpression: { arguments: 'first' },
2626
FunctionDeclaration: { parameters: 'first' },
@@ -29,39 +29,39 @@ module.exports = {
2929
SwitchCase: 1,
3030
ignoredNodes: ['ConditionalExpression'],
3131
}],
32-
'no-console': 'error',
32+
'no-console': ['error', { allow: ['warn', 'error'] }],
3333
'no-return-await': 'error',
3434
'promise/catch-or-return': 'error',
3535
'unicorn/no-abusive-eslint-disable': 'error',
3636
'max-params': [1, 5],
3737
'max-depth': ['error', 4],
3838
'max-len': ['error', 120, 2, {
39-
'ignoreUrls': true,
40-
'ignoreComments': true,
41-
'ignoreRegExpLiterals': true,
42-
'ignoreStrings': true,
43-
'ignoreTemplateLiterals': true
39+
ignoreUrls: true,
40+
ignoreComments: true,
41+
ignoreRegExpLiterals: true,
42+
ignoreStrings: true,
43+
ignoreTemplateLiterals: true,
4444
}],
4545
'class-methods-use-this': 'off',
4646
'no-floating-decimal': 'off',
4747
'key-spacing': ['error', {
4848
beforeColon: false,
4949
afterColon: true,
50-
mode: 'minimum'
50+
mode: 'minimum',
5151
}],
5252
'padded-blocks': ['error', {
5353
switches: 'never',
5454
}, {
55-
allowSingleLineBlocks: true
55+
allowSingleLineBlocks: true,
5656
}],
5757
'arrow-parens': ['error', 'as-needed', { requireForBlockBody: true }],
5858
'lines-between-class-members': ['error', 'always', { exceptAfterSingleLine: true }],
5959
'no-plusplus': 'off',
6060
'for-direction': 'off',
6161
'no-nested-ternary': 'off',
62-
"object-curly-newline": ["error", {
63-
"ImportDeclaration": { "multiline": true },
64-
"ExportDeclaration": { "multiline": true }
62+
'object-curly-newline': ['error', {
63+
ImportDeclaration: { multiline: true },
64+
ExportDeclaration: { multiline: true },
6565
}],
6666
'operator-linebreak': ['error', 'before', {
6767
overrides: { ':': 'ignore' },
@@ -71,11 +71,11 @@ module.exports = {
7171
allowAllPropertiesOnSameLine: true,
7272
}],
7373
'no-mixed-operators': 'off',
74-
'strict': 'off',
74+
strict: 'off',
7575
'template-curly-spacing': ['error', 'always'],
7676
'semi-style': 'off',
7777
'no-multi-spaces': 'off',
78-
'import/extensions': ['error', 'never', { 'json': 'always' }]
78+
'import/extensions': ['error', 'never', { json: 'always' }],
7979
},
8080
overrides: [
8181
{
@@ -85,15 +85,15 @@ module.exports = {
8585
project: './tsconfig.json',
8686
ecmaVersion: 2020,
8787
},
88-
"settings": {
89-
"import/parsers": {
90-
"@typescript-eslint/parser": [".ts"]
88+
settings: {
89+
'import/parsers': {
90+
'@typescript-eslint/parser': ['.ts'],
9191
},
92-
"import/resolver": {
93-
"typescript": {
92+
'import/resolver': {
93+
typescript: {
9494
// use <root>/path/to/folder/tsconfig.json
9595
// More examples: https://www.npmjs.com/package/eslint-import-resolver-typescript#configuration
96-
"directory": "./tsconfig.json"
96+
directory: './tsconfig.json',
9797
},
9898
},
9999
},
@@ -117,21 +117,21 @@ module.exports = {
117117
'@typescript-eslint/no-explicit-any': 'off',
118118
'@typescript-eslint/no-non-null-assertion': 'off',
119119
'@typescript-eslint/member-delimiter-style': ['error', { // Prevents us from using any delimiter for interface properties.
120-
'multiline': {
121-
'delimiter': 'semi',
122-
'requireLast': true
120+
multiline: {
121+
delimiter: 'semi',
122+
requireLast: true,
123+
},
124+
singleline: {
125+
delimiter: 'semi',
126+
requireLast: false,
123127
},
124-
'singleline': {
125-
'delimiter': 'semi',
126-
'requireLast': false
127-
}
128128
}],
129129
'@typescript-eslint/indent': 'off', // This is the job of StandardJS, they are competing rules so we turn off the Typescript one.
130130
'@typescript-eslint/no-use-before-define': ['error', {
131131
functions: false,
132132
classes: false,
133133
}],
134-
"@typescript-eslint/explicit-member-accessibility": ["error"],
134+
'@typescript-eslint/explicit-member-accessibility': ['error'],
135135
'function-paren-newline': 'off',
136136
'implicit-arrow-linebreak': 'off',
137137
'@typescript-eslint/explicit-function-return-type': 'off',

.idea/jsLinters/eslint.xml

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/runConfigurations/WallabyJS____Automatic.xml

-5
This file was deleted.

.nvmrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
14
1+
16.4

package.json

+22-20
Original file line numberDiff line numberDiff line change
@@ -13,42 +13,44 @@
1313
"url": "git+https://github.com/korniychuk/wallaby-ts-webpack-starter.git"
1414
},
1515
"engines": {
16-
"node": "^14.4.0",
17-
"npm": "^6.14.0",
18-
"yarn": "^1.22.0"
16+
"node": "^16.4.2",
17+
"yarn": "^1.22.1"
1918
},
2019
"scripts": {
2120
"build": "rimraf dist && tsc -p tsconfig.build.json",
2221
"build:prod": "npm run build",
2322
"lint": "eslint --ext .js,.ts src/**",
24-
"lint:fix": "npm run lint -- --fix",
23+
"lint:fix": "yarn run lint -- --fix",
2524
"pre-push": "npm run lint && npm run test && npm run build:prod && npm run tpl-repo:check",
2625
"preinstall": "node ./tools/check-yarn.js",
2726
"test": "jest -c jest.config.js",
2827
"test:watch": "npm run test -- --watch",
2928
"tpl-repo": "tools/merge-with-repository-template.sh",
3029
"tpl-repo:check": "npm run tpl-repo -- check",
31-
"tpl-repo:merge": "npm run tpl-repo -- merge"
30+
"tpl-repo:merge": "npm run tpl-repo -- merge",
31+
"ts": "ts-node"
3232
},
3333
"devDependencies": {
34-
"@babel/core": "~7.10.2",
35-
"@babel/preset-env": "~7.10.2",
36-
"@babel/preset-typescript": "~7.10.1",
37-
"@types/jest": "~26.0.0",
38-
"@typescript-eslint/eslint-plugin": "~3.3.0",
39-
"@typescript-eslint/parser": "~3.3.0",
40-
"eslint": "~7.2.0",
41-
"eslint-config-airbnb-base": "~14.2.0",
42-
"eslint-import-resolver-typescript": "~2.0.0",
34+
"@babel/core": "~7.14.6",
35+
"@babel/preset-env": "~7.14.7",
36+
"@babel/preset-typescript": "~7.14.5",
37+
"@types/jest": "~26.0.24",
38+
"@types/node": "~16.3.1",
39+
"@typescript-eslint/eslint-plugin": "~4.28.2",
40+
"@typescript-eslint/parser": "~4.28.2",
41+
"eslint": "~7.30.0",
42+
"eslint-config-airbnb-base": "~14.2.1",
43+
"eslint-import-resolver-typescript": "~2.4.0",
4344
"eslint-plugin-filenames": "~1.3.2",
44-
"eslint-plugin-import": "~2.21.2",
45-
"eslint-plugin-promise": "~4.2.1",
46-
"eslint-plugin-unicorn": "~20.1.0",
47-
"husky": "~4.2.5",
48-
"jest": "~26.0.1",
45+
"eslint-plugin-import": "~2.23.4",
46+
"eslint-plugin-promise": "~5.1.0",
47+
"eslint-plugin-unicorn": "~34.0.1",
48+
"husky": "~7.0.1",
49+
"jest": "~27.0.6",
4950
"jest-extended": "~0.11.5",
5051
"rimraf": "~3.0.2",
51-
"typescript": "~3.9.5"
52+
"ts-node": "~10.1.0",
53+
"typescript": "~4.3.5"
5254
},
5355
"husky": {
5456
"hooks": {

tsconfig.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
"importHelpers": true,
77
"incremental": true,
88
"lib": [
9-
"dom",
109
"es2019"
1110
],
1211
"module": "commonjs",
@@ -21,7 +20,8 @@
2120
],
2221
"types": [
2322
"jest",
24-
"jest-extended"
23+
"jest-extended",
24+
"node"
2525
],
2626
"outDir": "./dist",
2727
"baseUrl": "./src",

0 commit comments

Comments
 (0)