Skip to content

Commit

Permalink
chore: update TypeScript etc.
Browse files Browse the repository at this point in the history
  • Loading branch information
awlayton committed Feb 12, 2024
1 parent 0833545 commit ff6fc69
Show file tree
Hide file tree
Showing 18 changed files with 4,855 additions and 4,162 deletions.
26 changes: 20 additions & 6 deletions .eslintrc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ extends:
- plugin:github/recommended
- plugin:promise/recommended
- plugin:regexp/recommended
- plugin:array-func/recommended
#- plugin:array-func/recommended
- plugin:optimize-regex/recommended
- plugin:import/recommended
- plugin:unicorn/recommended
- plugin:security/recommended
#- plugin:security/recommended
- plugin:sonarjs/recommended
- plugin:ava/recommended
- xo
Expand All @@ -22,7 +22,7 @@ plugins:
- github
- promise
- regexp
- array-func
#- array-func
- optimize-regex
- no-constructor-bind
- import
Expand All @@ -40,7 +40,7 @@ parserOptions:
project: './tsconfig.*'

overrides:
- files: '*.ts'
- files: '*.{c,m,}ts'
extends:
- plugin:github/typescript
- plugin:import/typescript
Expand All @@ -55,6 +55,7 @@ overrides:
error,
{ selector: default, format: [camelCase] },
{ selector: default, modifiers: [static], format: [PascalCase] },
{ selector: import, modifiers: [default], format: null },
{ selector: objectLiteralProperty, format: null },
{ selector: enumMember, format: [PascalCase] },
{ selector: typeProperty, format: null },
Expand All @@ -64,6 +65,7 @@ overrides:
format: [camelCase, UPPER_CASE],
leadingUnderscore: allow,
},
{ selector: variable, modifiers: [destructured], format: null },
{
selector: parameter,
format: [camelCase],
Expand All @@ -78,6 +80,8 @@ overrides:
},

{ selector: typeLike, format: [PascalCase] },

{ selector: parameter, modifiers: [destructured], format: null },
]
'@typescript-eslint/restrict-template-expressions': off
'@typescript-eslint/no-shadow': warn
Expand All @@ -92,6 +96,7 @@ overrides:
},
]
'@typescript-eslint/consistent-type-definitions': [warn, interface]
'@typescript-eslint/switch-exhaustiveness-check': off

rules:
notice/notice:
Expand All @@ -115,7 +120,7 @@ rules:
*/
onNonMatchingHeader: append
nonMatchingTolerance: 0.7
sonarjs/no-duplicate-string: [warn, 5]
sonarjs/no-duplicate-string: [warn, { threshold: 5 }]
sonarjs/cognitive-complexity: warn
eslint-comments/no-unused-disable: off
import/extensions: off
Expand All @@ -127,14 +132,23 @@ rules:
eslint-comments/no-use: off
no-secrets/no-secrets: [error, { tolerance: 5 }]
no-empty-label: off
no-warning-comments: off
no-warning-comments: 0
node/no-missing-import: off
import/no-unresolved: off
unicorn/prefer-spread: off
unicorn/prevent-abbreviations:
- warn
- replacements:
db: false
req: false
res: false
err: false
doc: false
no-constructor-bind/no-constructor-bind: error
no-constructor-bind/no-constructor-state: error
sort-imports: [warn, { allowSeparatedGroups: true }]
ava/no-ignored-test-files: off
ava/no-import-test-files: off
ava/no-skip-test: warn
ava/no-skip-assert: warn
'@typescript-eslint/switch-exhaustiveness-check': off
10 changes: 2 additions & 8 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,8 @@
"**/.pnp.*": true
},
"typescript.enablePromptUseWorkspaceTsdk": true,
"cSpell.words": [
"codeql",
"ksuid",
"lcov",
"snyk",
"sonarjs"
],
"prettier.prettierPath": ".yarn/sdks/prettier/index.js",
"cSpell.words": ["codeql", "ksuid", "lcov", "snyk", "sonarjs", "xksuid"],
"prettier.prettierPath": ".yarn/sdks/prettier/index.cjs",
"typescript.tsdk": ".yarn/sdks/typescript/lib",
"eslint.nodePath": ".yarn/sdks",
"explorerExclude.backup": null,
Expand Down
541 changes: 0 additions & 541 deletions .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs

This file was deleted.

9 changes: 0 additions & 9 deletions .yarn/plugins/@yarnpkg/plugin-typescript.cjs

This file was deleted.

823 changes: 0 additions & 823 deletions .yarn/releases/yarn-3.3.1.cjs

This file was deleted.

893 changes: 893 additions & 0 deletions .yarn/releases/yarn-4.1.0.cjs

Large diffs are not rendered by default.

10 changes: 4 additions & 6 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
plugins:
- path: .yarn/plugins/@yarnpkg/plugin-typescript.cjs
spec: "@yarnpkg/plugin-typescript"
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
spec: "@yarnpkg/plugin-interactive-tools"
compressionLevel: mixed

yarnPath: .yarn/releases/yarn-3.3.1.cjs
enableGlobalCache: false

yarnPath: .yarn/releases/yarn-4.1.0.cjs
89 changes: 49 additions & 40 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "@oada/list-lib",
"version": "4.2.6",
"version": "4.3.0",
"description": "Library for processing items in an OADA list",
"main": "dist/index.js",
"type": "module",
"engines": {
"node": ">=14.0.0"
"node": ">=16.0.0"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -62,65 +62,74 @@
]
},
"devDependencies": {
"@ava/typescript": "^3.0.1",
"@oada/client": "^4.5.0",
"@tsconfig/node14": "^1.0.3",
"@types/debug": "^4.1.7",
"@types/node": "^16.18.11",
"@types/object-assign-deep": "^0.4.0",
"@types/sinon": "^10.0.13",
"@typescript-eslint/eslint-plugin": "^5.48.2",
"@typescript-eslint/parser": "^5.48.2",
"@yarnpkg/sdks": "^3.0.0-rc.36",
"ava": "5.1.1",
"c8": "^7.12.0",
"eslint": "^8.32.0",
"eslint-config-prettier": "^8.6.0",
"eslint-config-xo": "^0.43.1",
"eslint-config-xo-typescript": "^0.55.1",
"eslint-formatter-pretty": "^4.1.0",
"eslint-import-resolver-node": "^0.3.7",
"eslint-plugin-array-func": "^3.1.8",
"@ava/typescript": "^4.1.0",
"@oada/client": "^4.5.5",
"@tsconfig/node16": "^16.1.1",
"@types/debug": "^4.1.12",
"@types/node": "^16.18.80",
"@types/object-assign-deep": "^0.4.3",
"@types/sinon": "^17.0.3",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"@yarnpkg/sdks": "^3.1.0",
"ava": "6.1.1",
"c8": "^9.1.0",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"eslint-config-xo": "^0.44.0",
"eslint-config-xo-typescript": "^2.0.0",
"eslint-formatter-pretty": "^6.0.1",
"eslint-import-resolver-node": "^0.3.9",
"eslint-plugin-array-func": "^5.0.1",
"eslint-plugin-ava": "^14.0.0",
"eslint-plugin-escompat": "^3.3.4",
"eslint-plugin-escompat": "^3.4.0",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-filenames": "^1.3.2",
"eslint-plugin-github": "^4.6.0",
"eslint-plugin-github": "^4.10.1",
"eslint-plugin-i18n-text": "^1.0.1",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-no-constructor-bind": "^2.0.4",
"eslint-plugin-no-only-tests": "^3.1.0",
"eslint-plugin-no-secrets": "^0.8.9",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-notice": "^0.9.10",
"eslint-plugin-optimize-regex": "^1.2.1",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-regexp": "^1.12.0",
"eslint-plugin-security": "^1.6.0",
"eslint-plugin-sonarjs": "^0.18.0",
"eslint-plugin-unicorn": "^45.0.2",
"prettier": "^2.8.3",
"sinon": "^15.0.1",
"ts-node": "^10.9.1",
"typescript": "4.9.3"
"eslint-plugin-regexp": "^2.2.0",
"eslint-plugin-security": "^2.1.0",
"eslint-plugin-sonarjs": "^0.24.0",
"eslint-plugin-unicorn": "^51.0.1",
"prettier": "^3.2.5",
"sinon": "^17.0.1",
"ts-node": "^10.9.2",
"typescript": "5.3.3"
},
"dependencies": {
"@oada/types": "^3.3.0",
"@oada/types": "^3.5.3",
"abort-controller": "^3.0.0",
"debug": "^4.3.4",
"eventemitter3": "^5.0.0",
"eventemitter3": "^5.0.1",
"isomorphic-timers-promises": "^1.0.1",
"json-ptr": "^3.1.1",
"jsonpath-plus": "^7.2.0",
"jsonpath-plus": "^8.0.0",
"object-assign-deep": "^0.4.0",
"tslib": "^2.4.1"
"tslib": "^2.6.2",
"xksuid": "https://github.com/g12i/xksuid.git#fix-crypto-polyfill"
},
"peerDependencies": {
"@oada/client": "^4.3.2"
"@oada/client": "^4.5.5"
},
"packageManager": "[email protected]",
"peerDependenciesMeta": {
"@oada/client": {
"optional": true
}
},
"packageManager": "[email protected]",
"volta": {
"node": "16.16.0"
"node": "20.11.0"
},
"resolutions": {
"xksuid": "https://github.com/g12i/xksuid.git#fix-crypto-polyfill"
}
}
Loading

0 comments on commit ff6fc69

Please sign in to comment.