Skip to content

Commit 034c183

Browse files
committed
chore: update and fix tests etc.
1 parent 297d3d3 commit 034c183

File tree

23 files changed

+5194
-2345
lines changed

23 files changed

+5194
-2345
lines changed

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
**/.coverage
55
**/.test
66
**/tests
7+
**/bundle.*
8+
79
.yarn
810
.pnp.*
911
**/node_modules

.eslintrc.yaml

Lines changed: 16 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
root: true
22

33
extends:
4+
- 'plugin:@typescript-eslint/recommended'
45
- plugin:node/recommended
56
- plugin:github/recommended
67
- plugin:promise/recommended
@@ -11,10 +12,12 @@ extends:
1112
- plugin:unicorn/recommended
1213
- plugin:security/recommended
1314
- plugin:sonarjs/recommended
15+
- plugin:ava/recommended
1416
- xo
1517
- prettier
1618

1719
plugins:
20+
- '@typescript-eslint'
1821
- node
1922
- github
2023
- promise
@@ -27,33 +30,35 @@ plugins:
2730
- security
2831
- no-secrets
2932
- sonarjs
33+
- ava
3034
- notice
3135

3236
parser: '@typescript-eslint/parser'
3337

3438
parserOptions:
3539
ecmaVersion: 2020
36-
project:
37-
- '**/tsconfig*.json'
40+
project: './**/tsconfig*.json'
3841

3942
overrides:
40-
- files: '*.{m,c,}ts'
43+
- files: '*.schema.{c,m,}ts'
44+
rules:
45+
sonarjs/no-duplicate-string: off
46+
- files: '*.{c,m,}ts'
4147
extends:
4248
- plugin:github/typescript
4349
- plugin:import/typescript
4450
- xo-typescript
4551
- prettier
4652
parserOptions:
4753
ecmaVersion: 2020
48-
project:
49-
- '**/tsconfig*.json'
54+
project: './**/tsconfig*.json'
5055
rules:
5156
'@typescript-eslint/naming-convention':
5257
[
5358
error,
5459
{ selector: default, format: [camelCase] },
55-
{ selector: enumMember, format: [PascalCase] },
5660
{ selector: objectLiteralProperty, format: null },
61+
{ selector: enumMember, format: [PascalCase] },
5762
{ selector: typeProperty, format: null },
5863

5964
{
@@ -89,20 +94,6 @@ overrides:
8994
},
9095
]
9196
'@typescript-eslint/consistent-type-definitions': [warn, interface]
92-
- files: '*.schema.{m,c,}ts'
93-
extends:
94-
- plugin:github/typescript
95-
- plugin:import/typescript
96-
- xo-typescript
97-
- prettier
98-
parserOptions:
99-
ecmaVersion: 2020
100-
project:
101-
- '**/tsconfig*.json'
102-
rules:
103-
'sonarjs/no-duplicate-string': off
104-
'no-secrets/no-secrets': off
105-
'@typescript-eslint/naming-convention': off
10697

10798
rules:
10899
notice/notice:
@@ -128,7 +119,7 @@ rules:
128119
unicorn/filename-case: off
129120
i18n-text/no-en: off
130121
eslint-comments/no-use: off
131-
no-secrets/no-secrets: error
122+
no-secrets/no-secrets: [error, { tolerance: 5 }]
132123
no-empty-label: off
133124
no-warning-comments: off
134125
node/no-missing-import: off
@@ -137,3 +128,7 @@ rules:
137128
no-constructor-bind/no-constructor-bind: error
138129
no-constructor-bind/no-constructor-state: error
139130
sort-imports: [warn, { allowSeparatedGroups: true }]
131+
ava/no-ignored-test-files: off
132+
ava/no-import-test-files: off
133+
ava/no-skip-test: warn
134+
ava/no-skip-assert: warn

.yarn/plugins/@ojkelly/plugin-build.cjs

Lines changed: 117 additions & 82 deletions
Large diffs are not rendered by default.

.yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs

Lines changed: 103 additions & 108 deletions
Large diffs are not rendered by default.

.yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs

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

.yarn/releases/yarn-3.2.3.cjs

Lines changed: 0 additions & 783 deletions
This file was deleted.

.yarn/releases/yarn-3.4.1.cjs

Lines changed: 873 additions & 0 deletions
Large diffs are not rendered by default.

.yarnrc.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
packageExtensions:
2-
2+
'@apidevtools/[email protected]':
33
dependencies:
4-
"#ansi-styles": "npm:[email protected]"
5-
"#supports-color": "npm:[email protected]"
4+
node-fetch: 'npm:node-fetch@^2.6.2'
65

76
plugins:
87
- path: .yarn/plugins/@yarnpkg/plugin-typescript.cjs
9-
spec: "@yarnpkg/plugin-typescript"
8+
spec: '@yarnpkg/plugin-typescript'
109
- path: .yarn/plugins/@ojkelly/plugin-build.cjs
11-
spec: "https://yarn.build/latest/build"
10+
spec: 'https://yarn.build/latest/build'
1211
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
13-
spec: "@yarnpkg/plugin-interactive-tools"
12+
spec: '@yarnpkg/plugin-interactive-tools'
1413
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs
15-
spec: "@yarnpkg/plugin-workspace-tools"
14+
spec: '@yarnpkg/plugin-workspace-tools'
1615

17-
yarnPath: .yarn/releases/yarn-3.2.3.cjs
16+
yarnPath: .yarn/releases/yarn-3.4.1.cjs

formats.code-workspace

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@
102102
"FMIS",
103103
"jwks",
104104
"lcov",
105+
"ojkelly",
105106
"sonarjs",
106107
"unversioned"
107108
],

package.json

Lines changed: 21 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -17,40 +17,39 @@
1717
},
1818
"devDependencies": {
1919
"@tsconfig/node16": "^1.0.3",
20-
"@typescript-eslint/eslint-plugin": "^5.38.1",
21-
"@typescript-eslint/parser": "^5.38.1",
22-
"@yarnpkg/sdks": "^3.0.0-rc.22",
20+
"@typescript-eslint/eslint-plugin": "^5.50.0",
21+
"@typescript-eslint/parser": "^5.50.0",
22+
"@yarnpkg/sdks": "^3.0.0-rc.37",
2323
"coveralls": "^3.1.1",
24-
"eslint": "^8.24.0",
25-
"eslint-config-prettier": "^8.5.0",
26-
"eslint-config-xo": "^0.42.0",
27-
"eslint-config-xo-typescript": "^0.53.0",
28-
"eslint-formatter-pretty": "^4.1.0",
29-
"eslint-import-resolver-node": "^0.3.6",
30-
"eslint-plugin-array-func": "^3.1.7",
31-
"eslint-plugin-ava": "^13.2.0",
24+
"eslint": "^8.33.0",
25+
"eslint-config-prettier": "^8.6.0",
26+
"eslint-config-xo": "^0.43.1",
27+
"eslint-config-xo-typescript": "^0.55.1",
28+
"eslint-plugin-array-func": "^3.1.8",
29+
"eslint-plugin-ava": "^14.0.0",
30+
"eslint-plugin-escompat": "^3.3.4",
3231
"eslint-plugin-eslint-comments": "^3.2.0",
3332
"eslint-plugin-filenames": "^1.3.2",
34-
"eslint-plugin-github": "^4.3.7",
33+
"eslint-plugin-github": "^4.6.0",
3534
"eslint-plugin-i18n-text": "^1.0.1",
36-
"eslint-plugin-import": "^2.26.0",
35+
"eslint-plugin-import": "^2.27.5",
3736
"eslint-plugin-no-constructor-bind": "^2.0.4",
38-
"eslint-plugin-no-only-tests": "^3.0.0",
37+
"eslint-plugin-no-only-tests": "^3.1.0",
3938
"eslint-plugin-no-secrets": "^0.8.9",
4039
"eslint-plugin-node": "^11.1.0",
4140
"eslint-plugin-notice": "^0.9.10",
4241
"eslint-plugin-optimize-regex": "^1.2.1",
4342
"eslint-plugin-prettier": "^4.2.1",
44-
"eslint-plugin-promise": "^6.0.1",
45-
"eslint-plugin-regexp": "^1.9.0",
46-
"eslint-plugin-security": "^1.5.0",
47-
"eslint-plugin-sonarjs": "^0.15.0",
48-
"eslint-plugin-unicorn": "^43.0.2",
49-
"lerna": "^5.5.4",
50-
"prettier": "^2.7.1",
43+
"eslint-plugin-promise": "^6.1.1",
44+
"eslint-plugin-regexp": "^1.12.0",
45+
"eslint-plugin-security": "^1.7.1",
46+
"eslint-plugin-sonarjs": "^0.18.0",
47+
"eslint-plugin-unicorn": "^45.0.2",
48+
"lerna": "^6.4.1",
49+
"prettier": "^2.8.3",
5150
"typescript": "4.8.2"
5251
},
53-
"packageManager": "yarn@3.2.3",
52+
"packageManager": "yarn@3.4.1",
5453
"volta": {
5554
"node": "16.15.1"
5655
}

0 commit comments

Comments
 (0)