chore: update and lint everything

This commit is contained in:
2023-07-08 23:12:56 +03:00
parent d80c63c791
commit 5f703918d6
10 changed files with 11742 additions and 11517 deletions

View File

@@ -6,7 +6,7 @@ end_of_line = lf
indent_size = 2 indent_size = 2
indent_style = space indent_style = space
insert_final_newline = true insert_final_newline = true
max_line_length = 160 max_line_length = 300
tab_width = 2 tab_width = 2
trim_trailing_whitespace = true trim_trailing_whitespace = true

View File

@@ -1,27 +1,23 @@
--- ---
name: Bug report name: Bug report
about: Create a report to help us improve about: Create a report to help us improve
title: "" title: ''
labels: "" labels: ''
assignees: "" assignees: ''
--- ---
**Describe the bug** **Describe the bug** A clear and concise description of what the bug is.
A clear and concise description of what the bug is.
**To Reproduce** **To Reproduce** Steps to reproduce the behavior:
Steps to reproduce the behavior:
1. Go to '...' 1. Go to '...'
2. Click on '....' 2. Click on '....'
3. Scroll down to '....' 3. Scroll down to '....'
4. See error 4. See error
**Expected behavior** **Expected behavior** A clear and concise description of what you expected to happen.
A clear and concise description of what you expected to happen.
**Screenshots** **Screenshots** If applicable, add screenshots to help explain your problem.
If applicable, add screenshots to help explain your problem.
**Desktop (please complete the following information):** **Desktop (please complete the following information):**
@@ -36,5 +32,4 @@ If applicable, add screenshots to help explain your problem.
- Browser [e.g. stock browser, safari] - Browser [e.g. stock browser, safari]
- Version [e.g. 22] - Version [e.g. 22]
**Additional context** **Additional context** Add any other context about the problem here.
Add any other context about the problem here.

View File

@@ -1,19 +1,15 @@
--- ---
name: Feature request name: Feature request
about: Suggest an idea for this project about: Suggest an idea for this project
title: "" title: ''
labels: "" labels: ''
assignees: "" assignees: ''
--- ---
**Is your feature request related to a problem? Please describe.** **Is your feature request related to a problem? Please describe.** A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
**Describe the solution you'd like** **Describe the solution you'd like** A clear and concise description of what you want to happen.
A clear and concise description of what you want to happen.
**Describe alternatives you've considered** **Describe alternatives you've considered** A clear and concise description of any alternative solutions or features you've considered.
A clear and concise description of any alternative solutions or features you've considered.
**Additional context** **Additional context** Add any other context or screenshots about the feature request here.
Add any other context or screenshots about the feature request here.

View File

@@ -4,7 +4,7 @@ name: Stale
# yamllint disable-line rule:truthy # yamllint disable-line rule:truthy
on: on:
schedule: schedule:
- cron: "0 8 * * *" - cron: '0 8 * * *'
workflow_call: workflow_call:
workflow_dispatch: workflow_dispatch:

View File

@@ -9,7 +9,7 @@ on:
paths: paths:
- .github/labels.yml - .github/labels.yml
schedule: schedule:
- cron: "34 5 * * *" - cron: '34 5 * * *'
workflow_call: workflow_call:
workflow_dispatch: workflow_dispatch:

View File

@@ -1 +1 @@
{} "@ivuorinen/prettier-config"

View File

@@ -10,3 +10,6 @@ npx openapi-typescript \
--export-type \ --export-type \
--path-params-as-type \ --path-params-as-type \
--output "$DEST" --output "$DEST"
npm run prettier

104
package-lock.json generated
View File

@@ -14,10 +14,25 @@
"openapi-fetch": "^0.6.0" "openapi-fetch": "^0.6.0"
}, },
"devDependencies": { "devDependencies": {
"@ivuorinen/prettier-config": "^0.1.1",
"husky": "^8.0.3", "husky": "^8.0.3",
"lint-staged": "^13.2.2", "lint-staged": "^13.2.2",
"openapi-typescript": "^6.2.4", "openapi-typescript": "^6.2.4"
}
},
"node_modules/@ivuorinen/prettier-config": {
"version": "0.1.1",
"resolved": "https://registry.npmjs.org/@ivuorinen/prettier-config/-/prettier-config-0.1.1.tgz",
"integrity": "sha512-XwJWUIen+Fozynb0xNOvvUH5NFFaAnKpIT/U9iCDj9Oo3WoOcr58dNync6Yu3Algu6X3p6VzZrrMwJAo1dWiaQ==",
"dev": true,
"hasInstallScript": true,
"dependencies": {
"prettier": "2.8.8" "prettier": "2.8.8"
},
"engines": {
"node": ">= 12",
"npm": ">= 6",
"yarn": ">=1.20.0"
} }
}, },
"node_modules/@nodelib/fs.scandir": { "node_modules/@nodelib/fs.scandir": {
@@ -369,11 +384,14 @@
} }
}, },
"node_modules/dotenv": { "node_modules/dotenv": {
"version": "16.0.3", "version": "16.3.1",
"resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.0.3.tgz", "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.3.1.tgz",
"integrity": "sha512-7GO6HghkA5fYG9TYnNxi14/7K9f5occMlp3zXAuSxn7CKCxt9xbNWG7yF8hTCSUchlfWSe3uLmlPfigevRItzQ==", "integrity": "sha512-IPzF4w4/Rd94bA9imS68tZBaYyBWSCE47V1RGuMrB94iyTOIEwRmVL2x/4An+6mETpLrKJ5hQkB8W4kFAadeIQ==",
"engines": { "engines": {
"node": ">=12" "node": ">=12"
},
"funding": {
"url": "https://github.com/motdotla/dotenv?sponsor=1"
} }
}, },
"node_modules/eastasianwidth": { "node_modules/eastasianwidth": {
@@ -479,9 +497,9 @@
} }
}, },
"node_modules/fast-glob": { "node_modules/fast-glob": {
"version": "3.2.12", "version": "3.3.0",
"resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.12.tgz", "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.0.tgz",
"integrity": "sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w==", "integrity": "sha512-ChDuvbOypPuNjO8yIDf36x7BlZX1smcUMTTcyoIjycexOxd6DFsKsg21qVBzEmr3G7fUKIRy2/psii+CIUt7FA==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"@nodelib/fs.stat": "^2.0.2", "@nodelib/fs.stat": "^2.0.2",
@@ -554,12 +572,13 @@
"integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==" "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A=="
}, },
"node_modules/get-intrinsic": { "node_modules/get-intrinsic": {
"version": "1.2.0", "version": "1.2.1",
"resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.0.tgz", "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.1.tgz",
"integrity": "sha512-L049y6nFOuom5wGyRc3/gdTLO94dySVKRACj1RmJZBQXlbTMhtNIgkWkUHq+jYmZvKf14EW1EoJnnjbmoHij0Q==", "integrity": "sha512-2DcsyfABl+gVHEfCOaTrWgyt+tb6MSEGmKq+kI5HwLbIYgjgmMcV8KQ41uaKz1xxUcn9tJtgFbQUEVcEbd0FYw==",
"dependencies": { "dependencies": {
"function-bind": "^1.1.1", "function-bind": "^1.1.1",
"has": "^1.0.3", "has": "^1.0.3",
"has-proto": "^1.0.1",
"has-symbols": "^1.0.3" "has-symbols": "^1.0.3"
}, },
"funding": { "funding": {
@@ -601,6 +620,17 @@
"node": ">= 0.4.0" "node": ">= 0.4.0"
} }
}, },
"node_modules/has-proto": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.1.tgz",
"integrity": "sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==",
"engines": {
"node": ">= 0.4"
},
"funding": {
"url": "https://github.com/sponsors/ljharb"
}
},
"node_modules/has-symbols": { "node_modules/has-symbols": {
"version": "1.0.3", "version": "1.0.3",
"resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz",
@@ -766,9 +796,9 @@
} }
}, },
"node_modules/lint-staged": { "node_modules/lint-staged": {
"version": "13.2.2", "version": "13.2.3",
"resolved": "https://registry.npmjs.org/lint-staged/-/lint-staged-13.2.2.tgz", "resolved": "https://registry.npmjs.org/lint-staged/-/lint-staged-13.2.3.tgz",
"integrity": "sha512-71gSwXKy649VrSU09s10uAT0rWCcY3aewhMaHyl2N84oBk4Xs9HgxvUp3AYu+bNsK4NrOYYxvSgg7FyGJ+jGcA==", "integrity": "sha512-zVVEXLuQIhr1Y7R7YAWx4TZLdvuzk7DnmrsTNL0fax6Z3jrpFcas+vKbzxhhvp6TA55m1SQuWkpzI1qbfDZbAg==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"chalk": "5.2.0", "chalk": "5.2.0",
@@ -1229,21 +1259,21 @@
} }
}, },
"node_modules/openapi-fetch": { "node_modules/openapi-fetch": {
"version": "0.6.0", "version": "0.6.1",
"resolved": "https://registry.npmjs.org/openapi-fetch/-/openapi-fetch-0.6.0.tgz", "resolved": "https://registry.npmjs.org/openapi-fetch/-/openapi-fetch-0.6.1.tgz",
"integrity": "sha512-EA9Ic4CvaPXPOXWkQl/S5ZVxD9YeKgIQsYsYhvTZgeXnrN/sllN2jF/xgzXYFqXvB7Jec8XUWv4dT1NQNiiAeg==" "integrity": "sha512-CGWPqqtL31uC2e4eEU9NHoqYMXnJ7Jk4H/4Yguil4tO22MIZi91hlQJ/51E8CiaKdSTODh03yF4ndjIOABVHUw=="
}, },
"node_modules/openapi-typescript": { "node_modules/openapi-typescript": {
"version": "6.2.4", "version": "6.3.2",
"resolved": "https://registry.npmjs.org/openapi-typescript/-/openapi-typescript-6.2.4.tgz", "resolved": "https://registry.npmjs.org/openapi-typescript/-/openapi-typescript-6.3.2.tgz",
"integrity": "sha512-P/VK7oJ3TnIS67o1UzuS1pMnry4mzNzeQG0ZjLdPGT04mN9FeeTgHw1bN6MiANFN0tO6BcRavSL5tUFAh6iiwg==", "integrity": "sha512-cvMRbO8vBQo+mdkY3vWtH3iCWw8D5MBvkZ3Mnpgk8AEqabhDMV6gu0TE2BrvG4RmEeajFRo1iornhOPxLm7PMg==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"ansi-colors": "^4.1.3", "ansi-colors": "^4.1.3",
"fast-glob": "^3.2.12", "fast-glob": "^3.3.0",
"js-yaml": "^4.1.0", "js-yaml": "^4.1.0",
"supports-color": "^9.3.1", "supports-color": "^9.4.0",
"undici": "^5.22.0", "undici": "^5.22.1",
"yargs-parser": "^21.1.1" "yargs-parser": "^21.1.1"
}, },
"bin": { "bin": {
@@ -1650,9 +1680,9 @@
} }
}, },
"node_modules/strip-ansi": { "node_modules/strip-ansi": {
"version": "7.0.1", "version": "7.1.0",
"resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.0.1.tgz", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz",
"integrity": "sha512-cXNxvT8dFNRVfhVME3JAe98mkXDYN2O1l7jmcwMnOslDeESg1rF/OZMtK0nRAhiari1unG5cD4jG3rapUAkLbw==", "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"ansi-regex": "^6.0.1" "ansi-regex": "^6.0.1"
@@ -1677,9 +1707,9 @@
} }
}, },
"node_modules/supports-color": { "node_modules/supports-color": {
"version": "9.3.1", "version": "9.4.0",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-9.3.1.tgz", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-9.4.0.tgz",
"integrity": "sha512-knBY82pjmnIzK3NifMo3RxEIRD9E0kIzV4BKcyTZ9+9kWgLMxd4PrsTSMoFQUabgRBbF8KOLRDCyKgNV+iK44Q==", "integrity": "sha512-VL+lNrEoIXww1coLPOmiEmK/0sGigko5COxI09KzHc2VJXJsQ37UaQ+8quuxjDeA7+KnLGTWRyOXSLLR2Wb4jw==",
"dev": true, "dev": true,
"engines": { "engines": {
"node": ">=12" "node": ">=12"
@@ -1715,9 +1745,9 @@
} }
}, },
"node_modules/tslib": { "node_modules/tslib": {
"version": "2.5.0", "version": "2.6.0",
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.0.tgz",
"integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==", "integrity": "sha512-7At1WUettjcSRHXCyYtTselblcHl9PJFFVKiCAy/bY97+BPZXSQ2wbq0P9s8tK2G7dFQfNnlJnPAiArVBVBsfA==",
"dev": true "dev": true
}, },
"node_modules/type-fest": { "node_modules/type-fest": {
@@ -1745,9 +1775,9 @@
} }
}, },
"node_modules/undici": { "node_modules/undici": {
"version": "5.22.0", "version": "5.22.1",
"resolved": "https://registry.npmjs.org/undici/-/undici-5.22.0.tgz", "resolved": "https://registry.npmjs.org/undici/-/undici-5.22.1.tgz",
"integrity": "sha512-fR9RXCc+6Dxav4P9VV/sp5w3eFiSdOjJYsbtWfd4s5L5C4ogyuVpdKIVHeW0vV1MloM65/f7W45nR9ZxwVdyiA==", "integrity": "sha512-Ji2IJhFXZY0x/0tVBXeQwgPlLWw13GVzpsWPQ3rV50IFMMof2I55PZZxtm4P6iNq+L5znYN9nSTAq0ZyE6lSJw==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"busboy": "^1.6.0" "busboy": "^1.6.0"
@@ -1878,9 +1908,9 @@
} }
}, },
"node_modules/yaml": { "node_modules/yaml": {
"version": "2.2.2", "version": "2.3.1",
"resolved": "https://registry.npmjs.org/yaml/-/yaml-2.2.2.tgz", "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.3.1.tgz",
"integrity": "sha512-CBKFWExMn46Foo4cldiChEzn7S7SRV+wqiluAb6xmueD/fGyRHIhX8m14vVGgeFWjN540nKCNVj6P21eQjgTuA==", "integrity": "sha512-2eHWfjaoXgTBC2jNM1LRef62VQa0umtvRiDSk6HSzW7RvS5YtkabJrwYLLEKWBc8a5U2PTSCs+dJjUTJdlHsWQ==",
"dev": true, "dev": true,
"engines": { "engines": {
"node": ">= 14" "node": ">= 14"

View File

@@ -16,10 +16,10 @@
"openapi-fetch": "^0.6.0" "openapi-fetch": "^0.6.0"
}, },
"devDependencies": { "devDependencies": {
"@ivuorinen/prettier-config": "^0.1.1",
"husky": "^8.0.3", "husky": "^8.0.3",
"lint-staged": "^13.2.2", "lint-staged": "^13.2.2",
"openapi-typescript": "^6.2.4", "openapi-typescript": "^6.2.4"
"prettier": "2.8.8"
}, },
"lint-staged": { "lint-staged": {
"**/*": "prettier --write --ignore-unknown" "**/*": "prettier --write --ignore-unknown"

23101
src/cinode.d.ts vendored

File diff suppressed because it is too large Load Diff