Skip to content

Commit

Permalink
feat(fetch)!: use native fetch/undici
Browse files Browse the repository at this point in the history
  • Loading branch information
awlayton committed Mar 1, 2024
1 parent e3267f9 commit b0cf1de
Show file tree
Hide file tree
Showing 29 changed files with 4,975 additions and 4,854 deletions.
43 changes: 29 additions & 14 deletions .eslintrc.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
root: true

extends:
- 'eslint:recommended'
- 'plugin:@typescript-eslint/recommended'
- plugin:node/recommended
- 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 +23,7 @@ plugins:
- github
- promise
- regexp
- array-func
#- array-func
- optimize-regex
- no-constructor-bind
- import
Expand All @@ -37,23 +38,24 @@ parser: '@typescript-eslint/parser'

parserOptions:
ecmaVersion: 2020
project: './tsconfig*.json'
project: './tsconfig.*'

overrides:
- files: '*.ts'
- files: '*.{c,m,}ts'
extends:
- plugin:github/typescript
- plugin:import/typescript
- xo-typescript
- prettier
parserOptions:
ecmaVersion: 2020
project: './tsconfig*.json'
project: './tsconfig.*'
rules:
'@typescript-eslint/naming-convention':
[
error,
{ selector: default, format: [camelCase] },
{ selector: import, modifiers: [default], format: null },
{ selector: objectLiteralProperty, format: null },
{ selector: enumMember, format: [PascalCase] },
{ selector: typeProperty, format: null },
Expand All @@ -63,6 +65,7 @@ overrides:
format: [camelCase, UPPER_CASE],
leadingUnderscore: allow,
},
{ selector: variable, modifiers: [destructured], format: null },
{
selector: parameter,
format: [camelCase],
Expand All @@ -77,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 @@ -91,6 +96,7 @@ overrides:
},
]
'@typescript-eslint/consistent-type-definitions': [warn, interface]
'@typescript-eslint/switch-exhaustiveness-check': off

rules:
notice/notice:
Expand All @@ -114,30 +120,39 @@ rules:
*/
onNonMatchingHeader: append
nonMatchingTolerance: 0.7
unicorn/prevent-abbreviations:
[warn, { replacements: { db: false, req: false, doc: false, docs: false } }]
'@typescript-eslint/no-shadow': [warn, { allow: [_] }]
sonarjs/no-duplicate-string: [warn, 5]
#'@typescript-eslint/no-shadow': [warn, { allow: [_] }]
sonarjs/no-duplicate-string: [warn, { threshold: 5 }]
sonarjs/cognitive-complexity: warn
eslint-comments/no-unused-disable: off
import/extensions: off
node/no-unpublished-import: off
spaced-comment: [error, always, markers: [/, //]]
filenames/match-regex: off
unicorn/filename-case: off
i18n-text/no-en: off
eslint-comments/no-use: off
no-secrets/no-secrets: error
no-secrets/no-secrets: [error, { tolerance: 5 }]
no-empty-label: off
no-return-await: off
no-warning-comments: off
no-return-await: 0
no-warning-comments: 0
node/no-missing-import: off
import/no-unresolved: off
import/extensions: off
unicorn/prefer-spread: off
unicorn/prevent-abbreviations:
- warn
- replacements:
db: false
req: false
res: false
err: false
doc: false
docs: 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
ava/use-test: off
'@typescript-eslint/switch-exhaustiveness-check': off
9 changes: 7 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,12 @@
"ksuid",
"lcov",
"sonarjs",
"undici",
"unwatch",
"xksuid"
],
"eslint.nodePath": ".yarn/sdks",
"prettier.prettierPath": ".yarn/sdks/prettier/index.js",
"prettier.prettierPath": ".yarn/sdks/prettier/index.cjs",
"typescript.tsdk": ".yarn/sdks/typescript/lib",
"explorerExclude.backup": null,
"npm.packageManager": "yarn",
Expand All @@ -57,5 +58,9 @@
"**/$KNOWN_TOOLS$/**",
"!**/yarn-*",
"!**/ava-*/**/cli.mjs"
]
],
"testify.testRunnerPath": "yarn test",
"testify.envVars": {
"NODE_ENV": "test"
}
}
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.

28 changes: 0 additions & 28 deletions .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs

This file was deleted.

874 changes: 0 additions & 874 deletions .yarn/releases/yarn-3.6.0.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.

12 changes: 4 additions & 8 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,9 +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"
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs
spec: "@yarnpkg/plugin-workspace-tools"
compressionLevel: mixed

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

yarnPath: .yarn/releases/yarn-4.1.0.cjs
Loading

0 comments on commit b0cf1de

Please sign in to comment.