Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- novas/novacore-zephyr/groq-code-cli/node_modules/.bin/acorn +3 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/.bin/ava +3 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/.bin/browserslist +3 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/.bin/eslint +3 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/.bin/esparse +3 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/.bin/esvalidate +3 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/.bin/is-docker +3 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/.bin/is-in-ci +3 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/.bin/is-inside-container +3 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/.bin/js-yaml +3 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/.bin/jsesc +3 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/.bin/json5 +3 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/.bin/loose-envify +3 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/.bin/node-which +3 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/.bin/prettier +3 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/.bin/regexp-tree +3 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/.bin/regjsparser +3 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/.bin/resolve +3 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/.bin/rimraf +3 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/.bin/semver +3 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/.bin/terser +3 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/.bin/ts-node +3 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/.bin/ts-node-cwd +3 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/.bin/ts-node-esm +3 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/.bin/ts-node-script +3 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/.bin/ts-node-transpile-only +3 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/.bin/ts-script +3 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/.bin/tsc +3 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/.bin/tsserver +3 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/.bin/update-browserslist-db +3 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/.bin/webpack +3 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/.bin/xo +3 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/camelcase-keys/index.d.ts +204 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/camelcase-keys/index.js +77 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/camelcase-keys/license +9 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/camelcase-keys/package.json +77 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/camelcase-keys/readme.md +126 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/clean-regexp/index.js +35 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/clean-regexp/license +9 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/clean-regexp/package.json +39 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/clean-regexp/readme.md +67 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/clean-stack/index.d.ts +50 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/clean-stack/index.js +50 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/clean-stack/license +9 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/clean-stack/package.json +44 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/clean-stack/readme.md +79 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/eslint-config-xo-typescript/index.js +771 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/eslint-config-xo-typescript/license +9 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/eslint-config-xo-typescript/package.json +60 -0
- novas/novacore-zephyr/groq-code-cli/node_modules/eslint-config-xo-typescript/readme.md +67 -0
novas/novacore-zephyr/groq-code-cli/node_modules/.bin/acorn
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4c3eb6f1d8932790dbff043839f8ee7686bc614a59ef577e96fed618a4a4b1b8
|
| 3 |
+
size 60
|
novas/novacore-zephyr/groq-code-cli/node_modules/.bin/ava
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6a61f9211b65a9a099ca919ea23662528e1d8b4dad6b3109f6e3d3febbcb7c68
|
| 3 |
+
size 61
|
novas/novacore-zephyr/groq-code-cli/node_modules/.bin/browserslist
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0529540ec3f1805330afdb3b826fc5b006f7f9b946155fbb7e5932cbcf876015
|
| 3 |
+
size 4347
|
novas/novacore-zephyr/groq-code-cli/node_modules/.bin/eslint
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:64736610331446b4310516aa5cadc69ab8c791a70388467c19dd711465046647
|
| 3 |
+
size 5458
|
novas/novacore-zephyr/groq-code-cli/node_modules/.bin/esparse
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:503d1d9067c1c662a036dc378a0cbe7dbb99c332cd4b7e4bd4b2ba09a30d69c0
|
| 3 |
+
size 4948
|
novas/novacore-zephyr/groq-code-cli/node_modules/.bin/esvalidate
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1c38a63e723365b57dcc71ca327d0d2ebb7d3deeaccbb22b2468e8faf80a28ee
|
| 3 |
+
size 7744
|
novas/novacore-zephyr/groq-code-cli/node_modules/.bin/is-docker
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f08aa00b111ebaa3cf221db6883771d0048b3d5085ed160eafe5ddc2dd57f63b
|
| 3 |
+
size 131
|
novas/novacore-zephyr/groq-code-cli/node_modules/.bin/is-in-ci
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ac39a6e103a2031902e90bbfa071fca233335aa12721051f7e87fab75234cc88
|
| 3 |
+
size 120
|
novas/novacore-zephyr/groq-code-cli/node_modules/.bin/is-inside-container
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fe0e60553d21c59af1280e8d76aa028bacde298b362645639b35d7c802491b8e
|
| 3 |
+
size 149
|
novas/novacore-zephyr/groq-code-cli/node_modules/.bin/js-yaml
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6d7749dfd8019095970f4366cd09ec3abef9deaa3f870709dffecb027e58902d
|
| 3 |
+
size 2736
|
novas/novacore-zephyr/groq-code-cli/node_modules/.bin/jsesc
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:775eddbcc7769fa4d7d4d7b29c155a1bcd4221190462789545410f82e8328892
|
| 3 |
+
size 3833
|
novas/novacore-zephyr/groq-code-cli/node_modules/.bin/json5
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:225e45689fb05021f8ae645f2ef28a8d8786c99c69bcf33349f1c16095eafb91
|
| 3 |
+
size 2220
|
novas/novacore-zephyr/groq-code-cli/node_modules/.bin/loose-envify
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6c656109d637b5b3488d6c7ec911fb773b6f97e3ad44355aa0e143f56a596e89
|
| 3 |
+
size 356
|
novas/novacore-zephyr/groq-code-cli/node_modules/.bin/node-which
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:055f0ac4eed1a1591d033d59462972968bf3483b4cc07e163589569c0fb999f0
|
| 3 |
+
size 985
|
novas/novacore-zephyr/groq-code-cli/node_modules/.bin/prettier
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0fdc366a12644592bd9bc739b4a5a3d5acefd6ab3b35bd4e6b7901dfc22e00eb
|
| 3 |
+
size 2008
|
novas/novacore-zephyr/groq-code-cli/node_modules/.bin/regexp-tree
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ce4186def30b7f640e804419eb1565dbbbcbe13866ca59c1b47c563139bf96c5
|
| 3 |
+
size 73
|
novas/novacore-zephyr/groq-code-cli/node_modules/.bin/regjsparser
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cabce294cc6eb7bb1da3ad88c69e563171ad1fa99902f7a1985bcfa7fc712713
|
| 3 |
+
size 1779
|
novas/novacore-zephyr/groq-code-cli/node_modules/.bin/resolve
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:38bfe8e320fb462083ff58d54aee6fc4cc2db9baef9ce9f88830652d55863e8b
|
| 3 |
+
size 1535
|
novas/novacore-zephyr/groq-code-cli/node_modules/.bin/rimraf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:31a25b2763aa83ea17f4191982c863681739bed548a910f547257fd495641495
|
| 3 |
+
size 1878
|
novas/novacore-zephyr/groq-code-cli/node_modules/.bin/semver
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ad25dc10977d5f51e783a48f8721fcc8f0f2284f1a99614d14eb1428b959ce47
|
| 3 |
+
size 4739
|
novas/novacore-zephyr/groq-code-cli/node_modules/.bin/terser
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:312a3f9b37d3f5316ee384bfdc347313dae6f0f9056c44b3cae56c8e4e9f4496
|
| 3 |
+
size 444
|
novas/novacore-zephyr/groq-code-cli/node_modules/.bin/ts-node
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:057d8365dc9029bd453d9a22c3643b69a657c94d597f7cadfa49dcb222f87ea3
|
| 3 |
+
size 26506
|
novas/novacore-zephyr/groq-code-cli/node_modules/.bin/ts-node-cwd
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:953b2d4fc9e4911b73dfd437e5a04d4e4d757f49a788ea90c6bd13182cbae7eb
|
| 3 |
+
size 215
|
novas/novacore-zephyr/groq-code-cli/node_modules/.bin/ts-node-esm
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d018d8cdad3d9e7e1fc3e3a5b392355f1ca4fc4e99fb8542e3ce8ecdd3351041
|
| 3 |
+
size 211
|
novas/novacore-zephyr/groq-code-cli/node_modules/.bin/ts-node-script
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:008e06f03c686c752b41957ad9ca83f21923fd16b3b9c1f92d4fc85a353df3a1
|
| 3 |
+
size 221
|
novas/novacore-zephyr/groq-code-cli/node_modules/.bin/ts-node-transpile-only
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4d5ce4895e1cbf97e98244b5a37903fc3e3aa39b383131c18c4a4d8abb38536a
|
| 3 |
+
size 227
|
novas/novacore-zephyr/groq-code-cli/node_modules/.bin/ts-script
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:291cf058de53bed8a88060e22b82b6ed6320d20c187f4df82a29d9293ee2c029
|
| 3 |
+
size 363
|
novas/novacore-zephyr/groq-code-cli/node_modules/.bin/tsc
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8d5fa5bd883fec0979fc2004f1fe1d99aef40570155d550eadc0b03b55513bf0
|
| 3 |
+
size 45
|
novas/novacore-zephyr/groq-code-cli/node_modules/.bin/tsserver
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a088f0c3419bcb2f7b860ad42e4c9f25ead067eda70af6a10d0a7d453954aada
|
| 3 |
+
size 50
|
novas/novacore-zephyr/groq-code-cli/node_modules/.bin/update-browserslist-db
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:047bd636b5ff5b27c7a85c6fe64da0d03dd60649e818869b939d4e7897ddb3fa
|
| 3 |
+
size 912
|
novas/novacore-zephyr/groq-code-cli/node_modules/.bin/webpack
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:69d13a674c43e5055f53a410946c8b19a33922f536a5197cc1d7f6dabbe92a4c
|
| 3 |
+
size 4474
|
novas/novacore-zephyr/groq-code-cli/node_modules/.bin/xo
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:41b7f6a6b77a37aae1179c69ce20f23d1fd10d622e5b6a08e08ba320cf855bae
|
| 3 |
+
size 5851
|
novas/novacore-zephyr/groq-code-cli/node_modules/camelcase-keys/index.d.ts
ADDED
|
@@ -0,0 +1,204 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import {CamelCase, PascalCase} from 'type-fest';
|
| 2 |
+
|
| 3 |
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
| 4 |
+
type EmptyTuple = [];
|
| 5 |
+
|
| 6 |
+
/**
|
| 7 |
+
Return a default type if input type is nil.
|
| 8 |
+
|
| 9 |
+
@template T - Input type.
|
| 10 |
+
@template U - Default type.
|
| 11 |
+
*/
|
| 12 |
+
type WithDefault<T, U extends T> = T extends undefined | void | null ? U : T; // eslint-disable-line @typescript-eslint/ban-types
|
| 13 |
+
|
| 14 |
+
// TODO: Replace this with https://github.com/sindresorhus/type-fest/blob/main/source/includes.d.ts
|
| 15 |
+
/**
|
| 16 |
+
Check if an element is included in a tuple.
|
| 17 |
+
*/
|
| 18 |
+
type IsInclude<List extends readonly unknown[], Target> = List extends undefined
|
| 19 |
+
? false
|
| 20 |
+
: List extends Readonly<EmptyTuple>
|
| 21 |
+
? false
|
| 22 |
+
: List extends readonly [infer First, ...infer Rest]
|
| 23 |
+
? First extends Target
|
| 24 |
+
? true
|
| 25 |
+
: IsInclude<Rest, Target>
|
| 26 |
+
: boolean;
|
| 27 |
+
|
| 28 |
+
/**
|
| 29 |
+
Append a segment to dot-notation path.
|
| 30 |
+
*/
|
| 31 |
+
type AppendPath<S extends string, Last extends string> = S extends ''
|
| 32 |
+
? Last
|
| 33 |
+
: `${S}.${Last}`;
|
| 34 |
+
|
| 35 |
+
/**
|
| 36 |
+
Convert keys of an object to camelcase strings.
|
| 37 |
+
*/
|
| 38 |
+
export type CamelCaseKeys<
|
| 39 |
+
T extends Record<string, any> | readonly any[],
|
| 40 |
+
Deep extends boolean = false,
|
| 41 |
+
IsPascalCase extends boolean = false,
|
| 42 |
+
Exclude extends readonly unknown[] = EmptyTuple,
|
| 43 |
+
StopPaths extends readonly string[] = EmptyTuple,
|
| 44 |
+
Path extends string = '',
|
| 45 |
+
> = T extends readonly any[]
|
| 46 |
+
// Handle arrays or tuples.
|
| 47 |
+
? {
|
| 48 |
+
[P in keyof T]: T[P] extends Record<string, any> | readonly any[]
|
| 49 |
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
| 50 |
+
? {} extends CamelCaseKeys<T[P]>
|
| 51 |
+
? T[P]
|
| 52 |
+
: CamelCaseKeys<
|
| 53 |
+
T[P],
|
| 54 |
+
Deep,
|
| 55 |
+
IsPascalCase,
|
| 56 |
+
Exclude,
|
| 57 |
+
StopPaths
|
| 58 |
+
>
|
| 59 |
+
: T[P];
|
| 60 |
+
}
|
| 61 |
+
: T extends Record<string, any>
|
| 62 |
+
// Handle objects.
|
| 63 |
+
? {
|
| 64 |
+
[P in keyof T as [IsInclude<Exclude, P>] extends [true]
|
| 65 |
+
? P
|
| 66 |
+
: [IsPascalCase] extends [true]
|
| 67 |
+
? PascalCase<P>
|
| 68 |
+
: CamelCase<P>]: [IsInclude<StopPaths, AppendPath<Path, P & string>>] extends [
|
| 69 |
+
true,
|
| 70 |
+
]
|
| 71 |
+
? T[P]
|
| 72 |
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
| 73 |
+
: {} extends CamelCaseKeys<T[P]>
|
| 74 |
+
? T[P]
|
| 75 |
+
: [Deep] extends [true]
|
| 76 |
+
? CamelCaseKeys<
|
| 77 |
+
T[P],
|
| 78 |
+
Deep,
|
| 79 |
+
IsPascalCase,
|
| 80 |
+
Exclude,
|
| 81 |
+
StopPaths,
|
| 82 |
+
AppendPath<Path, P & string>
|
| 83 |
+
>
|
| 84 |
+
: T[P];
|
| 85 |
+
}
|
| 86 |
+
// Return anything else as-is.
|
| 87 |
+
: T;
|
| 88 |
+
|
| 89 |
+
type Options = {
|
| 90 |
+
/**
|
| 91 |
+
Recurse nested objects and objects in arrays.
|
| 92 |
+
|
| 93 |
+
@default false
|
| 94 |
+
*/
|
| 95 |
+
readonly deep?: boolean;
|
| 96 |
+
|
| 97 |
+
/**
|
| 98 |
+
Exclude keys from being camel-cased.
|
| 99 |
+
|
| 100 |
+
If this option can be statically determined, it's recommended to add `as const` to it.
|
| 101 |
+
|
| 102 |
+
@default []
|
| 103 |
+
*/
|
| 104 |
+
readonly exclude?: ReadonlyArray<string | RegExp>;
|
| 105 |
+
|
| 106 |
+
/**
|
| 107 |
+
Exclude children at the given object paths in dot-notation from being camel-cased. For example, with an object like `{a: {b: '🦄'}}`, the object path to reach the unicorn is `'a.b'`.
|
| 108 |
+
|
| 109 |
+
If this option can be statically determined, it's recommended to add `as const` to it.
|
| 110 |
+
|
| 111 |
+
@default []
|
| 112 |
+
|
| 113 |
+
@example
|
| 114 |
+
```
|
| 115 |
+
import camelcaseKeys from 'camelcase-keys';
|
| 116 |
+
|
| 117 |
+
camelcaseKeys({
|
| 118 |
+
a_b: 1,
|
| 119 |
+
a_c: {
|
| 120 |
+
c_d: 1,
|
| 121 |
+
c_e: {
|
| 122 |
+
e_f: 1
|
| 123 |
+
}
|
| 124 |
+
}
|
| 125 |
+
}, {
|
| 126 |
+
deep: true,
|
| 127 |
+
stopPaths: [
|
| 128 |
+
'a_c.c_e'
|
| 129 |
+
]
|
| 130 |
+
}),
|
| 131 |
+
// {
|
| 132 |
+
// aB: 1,
|
| 133 |
+
// aC: {
|
| 134 |
+
// cD: 1,
|
| 135 |
+
// cE: {
|
| 136 |
+
// e_f: 1
|
| 137 |
+
// }
|
| 138 |
+
// }
|
| 139 |
+
// }
|
| 140 |
+
```
|
| 141 |
+
*/
|
| 142 |
+
readonly stopPaths?: readonly string[];
|
| 143 |
+
|
| 144 |
+
/**
|
| 145 |
+
Uppercase the first character as in `bye-bye` → `ByeBye`.
|
| 146 |
+
|
| 147 |
+
@default false
|
| 148 |
+
*/
|
| 149 |
+
readonly pascalCase?: boolean;
|
| 150 |
+
};
|
| 151 |
+
|
| 152 |
+
/**
|
| 153 |
+
Convert object keys to camel case using [`camelcase`](https://github.com/sindresorhus/camelcase).
|
| 154 |
+
|
| 155 |
+
@param input - Object or array of objects to camel-case.
|
| 156 |
+
|
| 157 |
+
@example
|
| 158 |
+
```
|
| 159 |
+
import camelcaseKeys from 'camelcase-keys';
|
| 160 |
+
|
| 161 |
+
// Convert an object
|
| 162 |
+
camelcaseKeys({'foo-bar': true});
|
| 163 |
+
//=> {fooBar: true}
|
| 164 |
+
|
| 165 |
+
// Convert an array of objects
|
| 166 |
+
camelcaseKeys([{'foo-bar': true}, {'bar-foo': false}]);
|
| 167 |
+
//=> [{fooBar: true}, {barFoo: false}]
|
| 168 |
+
|
| 169 |
+
camelcaseKeys({'foo-bar': true, nested: {unicorn_rainbow: true}}, {deep: true});
|
| 170 |
+
//=> {fooBar: true, nested: {unicornRainbow: true}}
|
| 171 |
+
|
| 172 |
+
camelcaseKeys({a_b: 1, a_c: {c_d: 1, c_e: {e_f: 1}}}, {deep: true, stopPaths: ['a_c.c_e']}),
|
| 173 |
+
//=> {aB: 1, aC: {cD: 1, cE: {e_f: 1}}}
|
| 174 |
+
|
| 175 |
+
// Convert object keys to pascal case
|
| 176 |
+
camelcaseKeys({'foo-bar': true, nested: {unicorn_rainbow: true}}, {deep: true, pascalCase: true});
|
| 177 |
+
//=> {FooBar: true, Nested: {UnicornRainbow: true}}
|
| 178 |
+
```
|
| 179 |
+
|
| 180 |
+
@example
|
| 181 |
+
```
|
| 182 |
+
import {parseArgs} from 'node:utils';
|
| 183 |
+
import camelcaseKeys from 'camelcase-keys';
|
| 184 |
+
|
| 185 |
+
const commandLineArguments = parseArgs();
|
| 186 |
+
//=> {_: [], 'foo-bar': true}
|
| 187 |
+
|
| 188 |
+
camelcaseKeys(commandLineArguments);
|
| 189 |
+
//=> {_: [], fooBar: true}
|
| 190 |
+
```
|
| 191 |
+
*/
|
| 192 |
+
export default function camelcaseKeys<
|
| 193 |
+
T extends Record<string, any> | readonly any[],
|
| 194 |
+
OptionsType extends Options = Options,
|
| 195 |
+
>(
|
| 196 |
+
input: T,
|
| 197 |
+
options?: OptionsType
|
| 198 |
+
): CamelCaseKeys<
|
| 199 |
+
T,
|
| 200 |
+
WithDefault<OptionsType['deep'], false>,
|
| 201 |
+
WithDefault<OptionsType['pascalCase'], false>,
|
| 202 |
+
WithDefault<OptionsType['exclude'], EmptyTuple>,
|
| 203 |
+
WithDefault<OptionsType['stopPaths'], EmptyTuple>
|
| 204 |
+
>;
|
novas/novacore-zephyr/groq-code-cli/node_modules/camelcase-keys/index.js
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import mapObject from 'map-obj';
|
| 2 |
+
import camelCase from 'camelcase';
|
| 3 |
+
import QuickLru from 'quick-lru';
|
| 4 |
+
|
| 5 |
+
const has = (array, key) => array.some(element => {
|
| 6 |
+
if (typeof element === 'string') {
|
| 7 |
+
return element === key;
|
| 8 |
+
}
|
| 9 |
+
|
| 10 |
+
element.lastIndex = 0;
|
| 11 |
+
|
| 12 |
+
return element.test(key);
|
| 13 |
+
});
|
| 14 |
+
|
| 15 |
+
const cache = new QuickLru({maxSize: 100_000});
|
| 16 |
+
|
| 17 |
+
// Reproduces behavior from `map-obj`.
|
| 18 |
+
const isObject = value =>
|
| 19 |
+
typeof value === 'object'
|
| 20 |
+
&& value !== null
|
| 21 |
+
&& !(value instanceof RegExp)
|
| 22 |
+
&& !(value instanceof Error)
|
| 23 |
+
&& !(value instanceof Date);
|
| 24 |
+
|
| 25 |
+
const camelCaseConvert = (input, options) => {
|
| 26 |
+
if (!isObject(input)) {
|
| 27 |
+
return input;
|
| 28 |
+
}
|
| 29 |
+
|
| 30 |
+
options = {
|
| 31 |
+
deep: false,
|
| 32 |
+
pascalCase: false,
|
| 33 |
+
...options,
|
| 34 |
+
};
|
| 35 |
+
|
| 36 |
+
const {exclude, pascalCase, stopPaths, deep} = options;
|
| 37 |
+
|
| 38 |
+
const stopPathsSet = new Set(stopPaths);
|
| 39 |
+
|
| 40 |
+
const makeMapper = parentPath => (key, value) => {
|
| 41 |
+
if (deep && isObject(value)) {
|
| 42 |
+
const path = parentPath === undefined ? key : `${parentPath}.${key}`;
|
| 43 |
+
|
| 44 |
+
if (!stopPathsSet.has(path)) {
|
| 45 |
+
value = mapObject(value, makeMapper(path));
|
| 46 |
+
}
|
| 47 |
+
}
|
| 48 |
+
|
| 49 |
+
if (!(exclude && has(exclude, key))) {
|
| 50 |
+
const cacheKey = pascalCase ? `${key}_` : key;
|
| 51 |
+
|
| 52 |
+
if (cache.has(cacheKey)) {
|
| 53 |
+
key = cache.get(cacheKey);
|
| 54 |
+
} else {
|
| 55 |
+
const returnValue = camelCase(key, {pascalCase, locale: false});
|
| 56 |
+
|
| 57 |
+
if (key.length < 100) { // Prevent abuse
|
| 58 |
+
cache.set(cacheKey, returnValue);
|
| 59 |
+
}
|
| 60 |
+
|
| 61 |
+
key = returnValue;
|
| 62 |
+
}
|
| 63 |
+
}
|
| 64 |
+
|
| 65 |
+
return [key, value];
|
| 66 |
+
};
|
| 67 |
+
|
| 68 |
+
return mapObject(input, makeMapper(undefined));
|
| 69 |
+
};
|
| 70 |
+
|
| 71 |
+
export default function camelcaseKeys(input, options) {
|
| 72 |
+
if (Array.isArray(input)) {
|
| 73 |
+
return Object.keys(input).map(key => camelCaseConvert(input[key], options));
|
| 74 |
+
}
|
| 75 |
+
|
| 76 |
+
return camelCaseConvert(input, options);
|
| 77 |
+
}
|
novas/novacore-zephyr/groq-code-cli/node_modules/camelcase-keys/license
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
MIT License
|
| 2 |
+
|
| 3 |
+
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
| 6 |
+
|
| 7 |
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
| 8 |
+
|
| 9 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
novas/novacore-zephyr/groq-code-cli/node_modules/camelcase-keys/package.json
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "camelcase-keys",
|
| 3 |
+
"version": "8.0.2",
|
| 4 |
+
"description": "Convert object keys to camel case",
|
| 5 |
+
"license": "MIT",
|
| 6 |
+
"repository": "sindresorhus/camelcase-keys",
|
| 7 |
+
"funding": "https://github.com/sponsors/sindresorhus",
|
| 8 |
+
"author": {
|
| 9 |
+
"name": "Sindre Sorhus",
|
| 10 |
+
"email": "sindresorhus@gmail.com",
|
| 11 |
+
"url": "https://sindresorhus.com"
|
| 12 |
+
},
|
| 13 |
+
"type": "module",
|
| 14 |
+
"exports": "./index.js",
|
| 15 |
+
"types": "./index.d.ts",
|
| 16 |
+
"engines": {
|
| 17 |
+
"node": ">=14.16"
|
| 18 |
+
},
|
| 19 |
+
"scripts": {
|
| 20 |
+
"test": "xo && ava && tsd",
|
| 21 |
+
"bench": "matcha bench/bench.js"
|
| 22 |
+
},
|
| 23 |
+
"files": [
|
| 24 |
+
"index.js",
|
| 25 |
+
"index.d.ts"
|
| 26 |
+
],
|
| 27 |
+
"keywords": [
|
| 28 |
+
"map",
|
| 29 |
+
"obj",
|
| 30 |
+
"object",
|
| 31 |
+
"key",
|
| 32 |
+
"keys",
|
| 33 |
+
"value",
|
| 34 |
+
"values",
|
| 35 |
+
"val",
|
| 36 |
+
"iterate",
|
| 37 |
+
"camelcase",
|
| 38 |
+
"camel-case",
|
| 39 |
+
"camel",
|
| 40 |
+
"case",
|
| 41 |
+
"dash",
|
| 42 |
+
"hyphen",
|
| 43 |
+
"dot",
|
| 44 |
+
"underscore",
|
| 45 |
+
"separator",
|
| 46 |
+
"string",
|
| 47 |
+
"text",
|
| 48 |
+
"convert",
|
| 49 |
+
"pascalcase",
|
| 50 |
+
"pascal-case",
|
| 51 |
+
"deep",
|
| 52 |
+
"recurse",
|
| 53 |
+
"recursive"
|
| 54 |
+
],
|
| 55 |
+
"dependencies": {
|
| 56 |
+
"camelcase": "^7.0.0",
|
| 57 |
+
"map-obj": "^4.3.0",
|
| 58 |
+
"quick-lru": "^6.1.1",
|
| 59 |
+
"type-fest": "^2.13.0"
|
| 60 |
+
},
|
| 61 |
+
"devDependencies": {
|
| 62 |
+
"ava": "^4.3.0",
|
| 63 |
+
"matcha": "^0.7.0",
|
| 64 |
+
"tsd": "^0.23.0",
|
| 65 |
+
"xo": "^0.49.0"
|
| 66 |
+
},
|
| 67 |
+
"xo": {
|
| 68 |
+
"overrides": [
|
| 69 |
+
{
|
| 70 |
+
"files": "bench/bench.js",
|
| 71 |
+
"rules": {
|
| 72 |
+
"import/no-unresolved": "off"
|
| 73 |
+
}
|
| 74 |
+
}
|
| 75 |
+
]
|
| 76 |
+
}
|
| 77 |
+
}
|
novas/novacore-zephyr/groq-code-cli/node_modules/camelcase-keys/readme.md
ADDED
|
@@ -0,0 +1,126 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# camelcase-keys
|
| 2 |
+
|
| 3 |
+
> Convert object keys to camel case using [`camelcase`](https://github.com/sindresorhus/camelcase)
|
| 4 |
+
|
| 5 |
+
## Install
|
| 6 |
+
|
| 7 |
+
```sh
|
| 8 |
+
npm install camelcase-keys
|
| 9 |
+
```
|
| 10 |
+
|
| 11 |
+
## Usage
|
| 12 |
+
|
| 13 |
+
```js
|
| 14 |
+
import camelcaseKeys from 'camelcase-keys';
|
| 15 |
+
|
| 16 |
+
// Convert an object
|
| 17 |
+
camelcaseKeys({'foo-bar': true});
|
| 18 |
+
//=> {fooBar: true}
|
| 19 |
+
|
| 20 |
+
// Convert an array of objects
|
| 21 |
+
camelcaseKeys([{'foo-bar': true}, {'bar-foo': false}]);
|
| 22 |
+
//=> [{fooBar: true}, {barFoo: false}]
|
| 23 |
+
|
| 24 |
+
camelcaseKeys({'foo-bar': true, nested: {unicorn_rainbow: true}}, {deep: true});
|
| 25 |
+
//=> {fooBar: true, nested: {unicornRainbow: true}}
|
| 26 |
+
|
| 27 |
+
camelcaseKeys({a_b: 1, a_c: {c_d: 1, c_e: {e_f: 1}}}, {deep: true, stopPaths: ['a_c.c_e']}),
|
| 28 |
+
//=> {aB: 1, aC: {cD: 1, cE: {e_f: 1}}}
|
| 29 |
+
|
| 30 |
+
// Convert object keys to pascal case
|
| 31 |
+
camelcaseKeys({'foo-bar': true, nested: {unicorn_rainbow: true}}, {deep: true, pascalCase: true});
|
| 32 |
+
//=> {FooBar: true, Nested: {UnicornRainbow: true}}
|
| 33 |
+
```
|
| 34 |
+
|
| 35 |
+
```js
|
| 36 |
+
import {parseArgs} from 'node:utils';
|
| 37 |
+
import camelcaseKeys from 'camelcase-keys';
|
| 38 |
+
|
| 39 |
+
const commandLineArguments = parseArgs();
|
| 40 |
+
//=> {_: [], 'foo-bar': true}
|
| 41 |
+
|
| 42 |
+
camelcaseKeys(commandLineArguments);
|
| 43 |
+
//=> {_: [], fooBar: true}
|
| 44 |
+
```
|
| 45 |
+
|
| 46 |
+
## API
|
| 47 |
+
|
| 48 |
+
### camelcaseKeys(input, options?)
|
| 49 |
+
|
| 50 |
+
#### input
|
| 51 |
+
|
| 52 |
+
Type: `object | object[]`
|
| 53 |
+
|
| 54 |
+
An object or array of objects to camel-case.
|
| 55 |
+
|
| 56 |
+
#### options
|
| 57 |
+
|
| 58 |
+
Type: `object`
|
| 59 |
+
|
| 60 |
+
##### exclude
|
| 61 |
+
|
| 62 |
+
Type: `Array<string | RegExp>`\
|
| 63 |
+
Default: `[]`
|
| 64 |
+
|
| 65 |
+
Exclude keys from being camel-cased.
|
| 66 |
+
|
| 67 |
+
##### stopPaths
|
| 68 |
+
|
| 69 |
+
Type: `string[]`\
|
| 70 |
+
Default: `[]`
|
| 71 |
+
|
| 72 |
+
Exclude children at the given object paths in dot-notation from being camel-cased. For example, with an object like `{a: {b: '🦄'}}`, the object path to reach the unicorn is `'a.b'`.
|
| 73 |
+
|
| 74 |
+
```js
|
| 75 |
+
camelcaseKeys({
|
| 76 |
+
a_b: 1,
|
| 77 |
+
a_c: {
|
| 78 |
+
c_d: 1,
|
| 79 |
+
c_e: {
|
| 80 |
+
e_f: 1
|
| 81 |
+
}
|
| 82 |
+
}
|
| 83 |
+
}, {
|
| 84 |
+
deep: true,
|
| 85 |
+
stopPaths: [
|
| 86 |
+
'a_c.c_e'
|
| 87 |
+
]
|
| 88 |
+
}),
|
| 89 |
+
/*
|
| 90 |
+
{
|
| 91 |
+
aB: 1,
|
| 92 |
+
aC: {
|
| 93 |
+
cD: 1,
|
| 94 |
+
cE: {
|
| 95 |
+
e_f: 1
|
| 96 |
+
}
|
| 97 |
+
}
|
| 98 |
+
}
|
| 99 |
+
*/
|
| 100 |
+
```
|
| 101 |
+
|
| 102 |
+
##### deep
|
| 103 |
+
|
| 104 |
+
Type: `boolean`\
|
| 105 |
+
Default: `false`
|
| 106 |
+
|
| 107 |
+
Recurse nested objects and objects in arrays.
|
| 108 |
+
|
| 109 |
+
##### pascalCase
|
| 110 |
+
|
| 111 |
+
Type: `boolean`\
|
| 112 |
+
Default: `false`
|
| 113 |
+
|
| 114 |
+
Uppercase the first character as in `bye-bye` → `ByeBye`.
|
| 115 |
+
|
| 116 |
+
## camelcase-keys for enterprise
|
| 117 |
+
|
| 118 |
+
Available as part of the Tidelift Subscription.
|
| 119 |
+
|
| 120 |
+
The maintainers of camelcase-keys and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-camelcase-keys?utm_source=npm-camelcase-keys&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)
|
| 121 |
+
|
| 122 |
+
## Related
|
| 123 |
+
|
| 124 |
+
- [snakecase-keys](https://github.com/bendrucker/snakecase-keys)
|
| 125 |
+
- [kebabcase-keys](https://github.com/mattiloh/kebabcase-keys)
|
| 126 |
+
|
novas/novacore-zephyr/groq-code-cli/node_modules/clean-regexp/index.js
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
'use strict';
|
| 2 |
+
const escapeStringRegexp = require('escape-string-regexp');
|
| 3 |
+
const mapping = require('./lib/mappings');
|
| 4 |
+
|
| 5 |
+
const hasFlags = (regexFlags, replaceFlags) => {
|
| 6 |
+
if (!replaceFlags) {
|
| 7 |
+
return true;
|
| 8 |
+
}
|
| 9 |
+
|
| 10 |
+
// Check if every flag in the replace flags is part of the original regex flags
|
| 11 |
+
return replaceFlags.split('').every(flag => regexFlags.includes(flag));
|
| 12 |
+
};
|
| 13 |
+
|
| 14 |
+
module.exports = (regexp, flags) => {
|
| 15 |
+
flags = flags || '';
|
| 16 |
+
|
| 17 |
+
if (typeof regexp !== 'string') {
|
| 18 |
+
throw new TypeError(`Expected regexp to be of type \`string\`, got \`${typeof regexp}\``);
|
| 19 |
+
}
|
| 20 |
+
|
| 21 |
+
if (typeof flags !== 'string') {
|
| 22 |
+
throw new TypeError(`Expected flags to be of type \`string\`, got \`${typeof flags}\``);
|
| 23 |
+
}
|
| 24 |
+
|
| 25 |
+
for (const replace of mapping) {
|
| 26 |
+
const key = replace[0];
|
| 27 |
+
const replacement = replace[1];
|
| 28 |
+
|
| 29 |
+
if (hasFlags(flags, replacement.flags)) {
|
| 30 |
+
regexp = regexp.replace(new RegExp(escapeStringRegexp(key), 'g'), replacement.value);
|
| 31 |
+
}
|
| 32 |
+
}
|
| 33 |
+
|
| 34 |
+
return regexp;
|
| 35 |
+
};
|
novas/novacore-zephyr/groq-code-cli/node_modules/clean-regexp/license
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
MIT License
|
| 2 |
+
|
| 3 |
+
Copyright (c) Sam Verschueren <sam.verschueren@gmail.com> (github.com/SamVerschueren)
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
| 6 |
+
|
| 7 |
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
| 8 |
+
|
| 9 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
novas/novacore-zephyr/groq-code-cli/node_modules/clean-regexp/package.json
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "clean-regexp",
|
| 3 |
+
"version": "1.0.0",
|
| 4 |
+
"description": "Clean up regular expressions",
|
| 5 |
+
"license": "MIT",
|
| 6 |
+
"repository": "SamVerschueren/clean-regexp",
|
| 7 |
+
"author": {
|
| 8 |
+
"name": "Sam Verschueren",
|
| 9 |
+
"email": "sam.verschueren@gmail.com",
|
| 10 |
+
"url": "github.com/SamVerschueren"
|
| 11 |
+
},
|
| 12 |
+
"engines": {
|
| 13 |
+
"node": ">=4"
|
| 14 |
+
},
|
| 15 |
+
"scripts": {
|
| 16 |
+
"test": "xo && ava"
|
| 17 |
+
},
|
| 18 |
+
"files": [
|
| 19 |
+
"index.js",
|
| 20 |
+
"lib"
|
| 21 |
+
],
|
| 22 |
+
"keywords": [
|
| 23 |
+
"regex",
|
| 24 |
+
"regexp",
|
| 25 |
+
"regular",
|
| 26 |
+
"expression",
|
| 27 |
+
"clean",
|
| 28 |
+
"cleanup",
|
| 29 |
+
"digit",
|
| 30 |
+
"word"
|
| 31 |
+
],
|
| 32 |
+
"dependencies": {
|
| 33 |
+
"escape-string-regexp": "^1.0.5"
|
| 34 |
+
},
|
| 35 |
+
"devDependencies": {
|
| 36 |
+
"ava": "*",
|
| 37 |
+
"xo": "*"
|
| 38 |
+
}
|
| 39 |
+
}
|
novas/novacore-zephyr/groq-code-cli/node_modules/clean-regexp/readme.md
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# clean-regexp [](https://travis-ci.org/SamVerschueren/clean-regexp)
|
| 2 |
+
|
| 3 |
+
> Clean up regular expressions
|
| 4 |
+
|
| 5 |
+
|
| 6 |
+
## Install
|
| 7 |
+
|
| 8 |
+
```
|
| 9 |
+
$ npm install clean-regexp
|
| 10 |
+
```
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
## Usage
|
| 14 |
+
|
| 15 |
+
```js
|
| 16 |
+
const cleanRegexp = require('clean-regexp');
|
| 17 |
+
|
| 18 |
+
cleanRegexp('[0-9]');
|
| 19 |
+
//=> '\\d'
|
| 20 |
+
|
| 21 |
+
cleanRegexp('[^0-9]');
|
| 22 |
+
//=> '\\D'
|
| 23 |
+
|
| 24 |
+
cleanRegexp('[a-zA-Z0-9_]');
|
| 25 |
+
//=> '\\w'
|
| 26 |
+
|
| 27 |
+
cleanRegexp('[a-z0-9_]', 'i');
|
| 28 |
+
//=> '\\w'
|
| 29 |
+
|
| 30 |
+
cleanRegexp('[^a-zA-Z0-9_]');
|
| 31 |
+
//=> '\\W'
|
| 32 |
+
|
| 33 |
+
cleanRegexp('[^a-z0-9_]', 'i');
|
| 34 |
+
//=> '\\W'
|
| 35 |
+
|
| 36 |
+
cleanRegexp('[a-zA-Z\\d_]');
|
| 37 |
+
//=> '\\w'
|
| 38 |
+
|
| 39 |
+
cleanRegexp('[^a-zA-Z\\d_]');
|
| 40 |
+
//=> '\\W'
|
| 41 |
+
|
| 42 |
+
cleanRegexp('[0-9]+\\.[a-zA-Z0-9_]?');
|
| 43 |
+
//=> '\\d+\\.\\w'
|
| 44 |
+
```
|
| 45 |
+
|
| 46 |
+
|
| 47 |
+
## API
|
| 48 |
+
|
| 49 |
+
### cleanRegexp(regexp, [flags])
|
| 50 |
+
|
| 51 |
+
#### regexp
|
| 52 |
+
|
| 53 |
+
Type: `string`
|
| 54 |
+
|
| 55 |
+
Text of the regular expression.
|
| 56 |
+
|
| 57 |
+
#### flags
|
| 58 |
+
|
| 59 |
+
Type: `string`<br>
|
| 60 |
+
Default: `''`
|
| 61 |
+
|
| 62 |
+
Flags of the regular expression.
|
| 63 |
+
|
| 64 |
+
|
| 65 |
+
## License
|
| 66 |
+
|
| 67 |
+
MIT © [Sam Verschueren](https://github.com/SamVerschueren)
|
novas/novacore-zephyr/groq-code-cli/node_modules/clean-stack/index.d.ts
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
export interface Options {
|
| 2 |
+
/**
|
| 3 |
+
Prettify the file paths in the stack:
|
| 4 |
+
|
| 5 |
+
`/Users/sindresorhus/dev/clean-stack/unicorn.js:2:15` → `~/dev/clean-stack/unicorn.js:2:15`
|
| 6 |
+
|
| 7 |
+
@default false
|
| 8 |
+
*/
|
| 9 |
+
readonly pretty?: boolean;
|
| 10 |
+
|
| 11 |
+
/**
|
| 12 |
+
Remove the given base path from stack trace file paths, effectively turning absolute paths into relative ones.
|
| 13 |
+
|
| 14 |
+
Example with `'/Users/sindresorhus/dev/clean-stack/'` as `basePath`:
|
| 15 |
+
|
| 16 |
+
`/Users/sindresorhus/dev/clean-stack/unicorn.js:2:15` → `unicorn.js:2:15`
|
| 17 |
+
*/
|
| 18 |
+
readonly basePath?: string;
|
| 19 |
+
}
|
| 20 |
+
|
| 21 |
+
/**
|
| 22 |
+
Clean up error stack traces. Removes the mostly unhelpful internal Node.js entries.
|
| 23 |
+
|
| 24 |
+
@param stack - The `stack` property of an `Error`.
|
| 25 |
+
@returns The cleaned stack or `undefined` if the given `stack` is `undefined`.
|
| 26 |
+
|
| 27 |
+
@example
|
| 28 |
+
```
|
| 29 |
+
import cleanStack from 'clean-stack';
|
| 30 |
+
|
| 31 |
+
const error = new Error('Missing unicorn');
|
| 32 |
+
|
| 33 |
+
console.log(error.stack);
|
| 34 |
+
|
| 35 |
+
// Error: Missing unicorn
|
| 36 |
+
// at Object.<anonymous> (/Users/sindresorhus/dev/clean-stack/unicorn.js:2:15)
|
| 37 |
+
// at Module._compile (module.js:409:26)
|
| 38 |
+
// at Object.Module._extensions..js (module.js:416:10)
|
| 39 |
+
// at Module.load (module.js:343:32)
|
| 40 |
+
// at Function.Module._load (module.js:300:12)
|
| 41 |
+
// at Function.Module.runMain (module.js:441:10)
|
| 42 |
+
// at startup (node.js:139:18)
|
| 43 |
+
|
| 44 |
+
console.log(cleanStack(error.stack));
|
| 45 |
+
|
| 46 |
+
// Error: Missing unicorn
|
| 47 |
+
// at Object.<anonymous> (/Users/sindresorhus/dev/clean-stack/unicorn.js:2:15)
|
| 48 |
+
```
|
| 49 |
+
*/
|
| 50 |
+
export default function cleanStack<T extends string | undefined>(stack: T, options?: Options): T;
|
novas/novacore-zephyr/groq-code-cli/node_modules/clean-stack/index.js
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import os from 'os';
|
| 2 |
+
import escapeStringRegexp from 'escape-string-regexp';
|
| 3 |
+
|
| 4 |
+
const extractPathRegex = /\s+at.*[(\s](.*)\)?/;
|
| 5 |
+
const pathRegex = /^(?:(?:(?:node|node:[\w/]+|(?:(?:node:)?internal\/[\w/]*|.*node_modules\/(?:babel-polyfill|pirates)\/.*)?\w+)(?:\.js)?:\d+:\d+)|native)/;
|
| 6 |
+
const homeDir = typeof os.homedir === 'undefined' ? '' : os.homedir().replace(/\\/g, '/');
|
| 7 |
+
|
| 8 |
+
export default function cleanStack(stack, {pretty = false, basePath} = {}) {
|
| 9 |
+
const basePathRegex = basePath && new RegExp(`(at | \\()${escapeStringRegexp(basePath.replace(/\\/g, '/'))}`, 'g');
|
| 10 |
+
|
| 11 |
+
if (typeof stack !== 'string') {
|
| 12 |
+
return undefined;
|
| 13 |
+
}
|
| 14 |
+
|
| 15 |
+
return stack.replace(/\\/g, '/')
|
| 16 |
+
.split('\n')
|
| 17 |
+
.filter(line => {
|
| 18 |
+
const pathMatches = line.match(extractPathRegex);
|
| 19 |
+
if (pathMatches === null || !pathMatches[1]) {
|
| 20 |
+
return true;
|
| 21 |
+
}
|
| 22 |
+
|
| 23 |
+
const match = pathMatches[1];
|
| 24 |
+
|
| 25 |
+
// Electron
|
| 26 |
+
if (
|
| 27 |
+
match.includes('.app/Contents/Resources/electron.asar') ||
|
| 28 |
+
match.includes('.app/Contents/Resources/default_app.asar') ||
|
| 29 |
+
match.includes('node_modules/electron/dist/resources/electron.asar') ||
|
| 30 |
+
match.includes('node_modules/electron/dist/resources/default_app.asar')
|
| 31 |
+
) {
|
| 32 |
+
return false;
|
| 33 |
+
}
|
| 34 |
+
|
| 35 |
+
return !pathRegex.test(match);
|
| 36 |
+
})
|
| 37 |
+
.filter(line => line.trim() !== '')
|
| 38 |
+
.map(line => {
|
| 39 |
+
if (basePathRegex) {
|
| 40 |
+
line = line.replace(basePathRegex, '$1');
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
if (pretty) {
|
| 44 |
+
line = line.replace(extractPathRegex, (m, p1) => m.replace(p1, p1.replace(homeDir, '~')));
|
| 45 |
+
}
|
| 46 |
+
|
| 47 |
+
return line;
|
| 48 |
+
})
|
| 49 |
+
.join('\n');
|
| 50 |
+
}
|
novas/novacore-zephyr/groq-code-cli/node_modules/clean-stack/license
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
MIT License
|
| 2 |
+
|
| 3 |
+
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
| 6 |
+
|
| 7 |
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
| 8 |
+
|
| 9 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
novas/novacore-zephyr/groq-code-cli/node_modules/clean-stack/package.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "clean-stack",
|
| 3 |
+
"version": "4.2.0",
|
| 4 |
+
"description": "Clean up error stack traces",
|
| 5 |
+
"license": "MIT",
|
| 6 |
+
"repository": "sindresorhus/clean-stack",
|
| 7 |
+
"funding": "https://github.com/sponsors/sindresorhus",
|
| 8 |
+
"author": {
|
| 9 |
+
"name": "Sindre Sorhus",
|
| 10 |
+
"email": "sindresorhus@gmail.com",
|
| 11 |
+
"url": "https://sindresorhus.com"
|
| 12 |
+
},
|
| 13 |
+
"type": "module",
|
| 14 |
+
"exports": "./index.js",
|
| 15 |
+
"engines": {
|
| 16 |
+
"node": ">=12"
|
| 17 |
+
},
|
| 18 |
+
"scripts": {
|
| 19 |
+
"test": "xo && ava && tsd"
|
| 20 |
+
},
|
| 21 |
+
"files": [
|
| 22 |
+
"index.js",
|
| 23 |
+
"index.d.ts"
|
| 24 |
+
],
|
| 25 |
+
"keywords": [
|
| 26 |
+
"clean",
|
| 27 |
+
"stack",
|
| 28 |
+
"trace",
|
| 29 |
+
"traces",
|
| 30 |
+
"error",
|
| 31 |
+
"electron"
|
| 32 |
+
],
|
| 33 |
+
"dependencies": {
|
| 34 |
+
"escape-string-regexp": "5.0.0"
|
| 35 |
+
},
|
| 36 |
+
"devDependencies": {
|
| 37 |
+
"ava": "^3.15.0",
|
| 38 |
+
"tsd": "^0.14.0",
|
| 39 |
+
"xo": "^0.38.2"
|
| 40 |
+
},
|
| 41 |
+
"browser": {
|
| 42 |
+
"os": false
|
| 43 |
+
}
|
| 44 |
+
}
|
novas/novacore-zephyr/groq-code-cli/node_modules/clean-stack/readme.md
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# clean-stack
|
| 2 |
+
|
| 3 |
+
> Clean up error stack traces
|
| 4 |
+
|
| 5 |
+
Removes the mostly unhelpful internal Node.js entries.
|
| 6 |
+
|
| 7 |
+
Also works in Electron.
|
| 8 |
+
|
| 9 |
+
## Install
|
| 10 |
+
|
| 11 |
+
```
|
| 12 |
+
$ npm install clean-stack
|
| 13 |
+
```
|
| 14 |
+
|
| 15 |
+
## Usage
|
| 16 |
+
|
| 17 |
+
```js
|
| 18 |
+
import cleanStack from 'clean-stack';
|
| 19 |
+
|
| 20 |
+
const error = new Error('Missing unicorn');
|
| 21 |
+
|
| 22 |
+
console.log(error.stack);
|
| 23 |
+
/*
|
| 24 |
+
Error: Missing unicorn
|
| 25 |
+
at Object.<anonymous> (/Users/sindresorhus/dev/clean-stack/unicorn.js:2:15)
|
| 26 |
+
at Module._compile (module.js:409:26)
|
| 27 |
+
at Object.Module._extensions..js (module.js:416:10)
|
| 28 |
+
at Module.load (module.js:343:32)
|
| 29 |
+
at Function.Module._load (module.js:300:12)
|
| 30 |
+
at Function.Module.runMain (module.js:441:10)
|
| 31 |
+
at startup (node.js:139:18)
|
| 32 |
+
*/
|
| 33 |
+
|
| 34 |
+
console.log(cleanStack(error.stack));
|
| 35 |
+
/*
|
| 36 |
+
Error: Missing unicorn
|
| 37 |
+
at Object.<anonymous> (/Users/sindresorhus/dev/clean-stack/unicorn.js:2:15)
|
| 38 |
+
*/
|
| 39 |
+
```
|
| 40 |
+
|
| 41 |
+
## API
|
| 42 |
+
|
| 43 |
+
### cleanStack(stack, options?)
|
| 44 |
+
|
| 45 |
+
Returns the cleaned stack or `undefined` if the given `stack` is `undefined`.
|
| 46 |
+
|
| 47 |
+
#### stack
|
| 48 |
+
|
| 49 |
+
Type: `string | undefined`
|
| 50 |
+
|
| 51 |
+
The `stack` property of an [`Error`](https://github.com/microsoft/TypeScript/blob/eac073894b172ec719ca7f28b0b94fc6e6e7d4cf/lib/lib.es5.d.ts#L972-L976).
|
| 52 |
+
|
| 53 |
+
#### options
|
| 54 |
+
|
| 55 |
+
Type: `object`
|
| 56 |
+
|
| 57 |
+
##### pretty
|
| 58 |
+
|
| 59 |
+
Type: `boolean`\
|
| 60 |
+
Default: `false`
|
| 61 |
+
|
| 62 |
+
Prettify the file paths in the stack:
|
| 63 |
+
|
| 64 |
+
`/Users/sindresorhus/dev/clean-stack/unicorn.js:2:15` → `~/dev/clean-stack/unicorn.js:2:15`
|
| 65 |
+
|
| 66 |
+
##### basePath
|
| 67 |
+
|
| 68 |
+
Type: `string?`
|
| 69 |
+
|
| 70 |
+
Remove the given base path from stack trace file paths, effectively turning absolute paths into relative ones.
|
| 71 |
+
|
| 72 |
+
Example with `'/Users/sindresorhus/dev/clean-stack/'` as `basePath`:
|
| 73 |
+
|
| 74 |
+
`/Users/sindresorhus/dev/clean-stack/unicorn.js:2:15` → `unicorn.js:2:15`
|
| 75 |
+
|
| 76 |
+
## Related
|
| 77 |
+
|
| 78 |
+
- [extract-stack](https://github.com/sindresorhus/extract-stack) - Extract the actual stack of an error
|
| 79 |
+
- [stack-utils](https://github.com/tapjs/stack-utils) - Captures and cleans stack traces
|
novas/novacore-zephyr/groq-code-cli/node_modules/eslint-config-xo-typescript/index.js
ADDED
|
@@ -0,0 +1,771 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
'use strict';
|
| 2 |
+
|
| 3 |
+
const getNamingConventionRule = ({isTsx}) => ({
|
| 4 |
+
'@typescript-eslint/naming-convention': [
|
| 5 |
+
'error',
|
| 6 |
+
{
|
| 7 |
+
/// selector: ['variableLike', 'memberLike', 'property', 'method'],
|
| 8 |
+
// Note: Leaving out `parameter` and `typeProperty` because of the mentioned known issues.
|
| 9 |
+
// Note: We are intentionally leaving out `enumMember` as it's usually pascal-case or upper-snake-case.
|
| 10 |
+
selector: ['variable', 'function', 'classProperty', 'objectLiteralProperty', 'parameterProperty', 'classMethod', 'objectLiteralMethod', 'typeMethod', 'accessor'],
|
| 11 |
+
format: [
|
| 12 |
+
'strictCamelCase',
|
| 13 |
+
isTsx && 'StrictPascalCase',
|
| 14 |
+
].filter(Boolean),
|
| 15 |
+
// We allow double underscore because of GraphQL type names and some React names.
|
| 16 |
+
leadingUnderscore: 'allowSingleOrDouble',
|
| 17 |
+
trailingUnderscore: 'allow',
|
| 18 |
+
// Ignore `{'Retry-After': retryAfter}` type properties.
|
| 19 |
+
filter: {
|
| 20 |
+
regex: '[- ]',
|
| 21 |
+
match: false
|
| 22 |
+
}
|
| 23 |
+
},
|
| 24 |
+
{
|
| 25 |
+
selector: 'typeLike',
|
| 26 |
+
format: [
|
| 27 |
+
'StrictPascalCase'
|
| 28 |
+
]
|
| 29 |
+
},
|
| 30 |
+
{
|
| 31 |
+
selector: 'variable',
|
| 32 |
+
types: [
|
| 33 |
+
'boolean'
|
| 34 |
+
],
|
| 35 |
+
format: [
|
| 36 |
+
'StrictPascalCase'
|
| 37 |
+
],
|
| 38 |
+
prefix: [
|
| 39 |
+
'is',
|
| 40 |
+
'has',
|
| 41 |
+
'can',
|
| 42 |
+
'should',
|
| 43 |
+
'will',
|
| 44 |
+
'did'
|
| 45 |
+
]
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
// Interface name should not be prefixed with `I`.
|
| 49 |
+
selector: 'interface',
|
| 50 |
+
filter: /^(?!I)[A-Z]/.source,
|
| 51 |
+
format: [
|
| 52 |
+
'StrictPascalCase'
|
| 53 |
+
]
|
| 54 |
+
},
|
| 55 |
+
{
|
| 56 |
+
// Type parameter name should either be `T` or a descriptive name.
|
| 57 |
+
selector: 'typeParameter',
|
| 58 |
+
filter: /^T$|^[A-Z][a-zA-Z]+$/.source,
|
| 59 |
+
format: [
|
| 60 |
+
'StrictPascalCase'
|
| 61 |
+
]
|
| 62 |
+
},
|
| 63 |
+
// Allow these in non-camel-case when quoted.
|
| 64 |
+
{
|
| 65 |
+
selector: [
|
| 66 |
+
'classProperty',
|
| 67 |
+
'objectLiteralProperty'
|
| 68 |
+
],
|
| 69 |
+
format: null,
|
| 70 |
+
modifiers: [
|
| 71 |
+
'requiresQuotes'
|
| 72 |
+
]
|
| 73 |
+
}
|
| 74 |
+
]
|
| 75 |
+
});
|
| 76 |
+
|
| 77 |
+
module.exports = {
|
| 78 |
+
parser: require.resolve('@typescript-eslint/parser'),
|
| 79 |
+
parserOptions: {
|
| 80 |
+
warnOnUnsupportedTypeScriptVersion: false,
|
| 81 |
+
sourceType: 'module',
|
| 82 |
+
project: 'tsconfig.json',
|
| 83 |
+
ecmaFeatures: {
|
| 84 |
+
jsx: true
|
| 85 |
+
}
|
| 86 |
+
},
|
| 87 |
+
plugins: [
|
| 88 |
+
'@typescript-eslint'
|
| 89 |
+
],
|
| 90 |
+
settings: {
|
| 91 |
+
'import/resolver': {
|
| 92 |
+
node: {
|
| 93 |
+
extensions: [
|
| 94 |
+
'.js',
|
| 95 |
+
'.jsx',
|
| 96 |
+
'.ts',
|
| 97 |
+
'.tsx'
|
| 98 |
+
]
|
| 99 |
+
}
|
| 100 |
+
},
|
| 101 |
+
'import/parsers': {
|
| 102 |
+
[require.resolve('@typescript-eslint/parser')]: [
|
| 103 |
+
'.ts',
|
| 104 |
+
'.tsx'
|
| 105 |
+
]
|
| 106 |
+
}
|
| 107 |
+
},
|
| 108 |
+
rules: {
|
| 109 |
+
'@typescript-eslint/adjacent-overload-signatures': 'error',
|
| 110 |
+
'@typescript-eslint/array-type': [
|
| 111 |
+
'error',
|
| 112 |
+
{
|
| 113 |
+
default: 'array-simple'
|
| 114 |
+
}
|
| 115 |
+
],
|
| 116 |
+
'@typescript-eslint/await-thenable': 'error',
|
| 117 |
+
'@typescript-eslint/ban-ts-comment': [
|
| 118 |
+
'error',
|
| 119 |
+
{
|
| 120 |
+
'ts-expect-error': 'allow-with-description',
|
| 121 |
+
minimumDescriptionLength: 4
|
| 122 |
+
}
|
| 123 |
+
],
|
| 124 |
+
'@typescript-eslint/ban-tslint-comment': 'error',
|
| 125 |
+
'@typescript-eslint/ban-types': [
|
| 126 |
+
'error',
|
| 127 |
+
{
|
| 128 |
+
extendDefaults: false,
|
| 129 |
+
types: {
|
| 130 |
+
String: {
|
| 131 |
+
message: 'Use `string` instead.',
|
| 132 |
+
fixWith: 'string'
|
| 133 |
+
},
|
| 134 |
+
Number: {
|
| 135 |
+
message: 'Use `number` instead.',
|
| 136 |
+
fixWith: 'number'
|
| 137 |
+
},
|
| 138 |
+
Boolean: {
|
| 139 |
+
message: 'Use `boolean` instead.',
|
| 140 |
+
fixWith: 'boolean'
|
| 141 |
+
},
|
| 142 |
+
Symbol: {
|
| 143 |
+
message: 'Use `symbol` instead.',
|
| 144 |
+
fixWith: 'symbol'
|
| 145 |
+
},
|
| 146 |
+
BigInt: {
|
| 147 |
+
message: 'Use `bigint` instead.',
|
| 148 |
+
fixWith: 'bigint'
|
| 149 |
+
},
|
| 150 |
+
Object: {
|
| 151 |
+
message: 'The `Object` type is mostly the same as `unknown`. You probably want `Record<string, unknown>` instead. See https://github.com/typescript-eslint/typescript-eslint/pull/848',
|
| 152 |
+
fixWith: 'Record<string, unknown>'
|
| 153 |
+
},
|
| 154 |
+
'{}': {
|
| 155 |
+
message: 'The `{}` type is mostly the same as `unknown`. You probably want `Record<string, unknown>` instead.',
|
| 156 |
+
fixWith: 'Record<string, unknown>'
|
| 157 |
+
},
|
| 158 |
+
object: {
|
| 159 |
+
message: 'The `object` type is hard to use. Use `Record<string, unknown>` instead. See: https://github.com/typescript-eslint/typescript-eslint/pull/848',
|
| 160 |
+
fixWith: 'Record<string, unknown>'
|
| 161 |
+
},
|
| 162 |
+
Function: 'Use a specific function type instead, like `() => void`.',
|
| 163 |
+
null: {
|
| 164 |
+
message: 'Use `undefined` instead. See: https://github.com/sindresorhus/meta/issues/7',
|
| 165 |
+
fixWith: 'undefined'
|
| 166 |
+
},
|
| 167 |
+
Buffer: {
|
| 168 |
+
message: 'Use Uint8Array instead. See: https://sindresorhus.com/blog/goodbye-nodejs-buffer',
|
| 169 |
+
suggest: [
|
| 170 |
+
'Uint8Array'
|
| 171 |
+
]
|
| 172 |
+
},
|
| 173 |
+
'[]': 'Don\'t use the empty array type `[]`. It only allows empty arrays. Use `SomeType[]` instead.',
|
| 174 |
+
'[[]]': 'Don\'t use `[[]]`. It only allows an array with a single element which is an empty array. Use `SomeType[][]` instead.',
|
| 175 |
+
'[[[]]]': 'Don\'t use `[[[]]]`. Use `SomeType[][][]` instead.',
|
| 176 |
+
'[[[[]]]]': 'ur drunk 🤡',
|
| 177 |
+
'[[[[[]]]]]': '🦄💥'
|
| 178 |
+
}
|
| 179 |
+
}
|
| 180 |
+
],
|
| 181 |
+
'@typescript-eslint/class-literal-property-style': [
|
| 182 |
+
'error',
|
| 183 |
+
'getters'
|
| 184 |
+
],
|
| 185 |
+
'@typescript-eslint/consistent-generic-constructors': [
|
| 186 |
+
'error',
|
| 187 |
+
'constructor'
|
| 188 |
+
],
|
| 189 |
+
'@typescript-eslint/consistent-indexed-object-style': 'error',
|
| 190 |
+
'brace-style': 'off',
|
| 191 |
+
'@typescript-eslint/brace-style': [
|
| 192 |
+
'error',
|
| 193 |
+
'1tbs',
|
| 194 |
+
{
|
| 195 |
+
allowSingleLine: false
|
| 196 |
+
}
|
| 197 |
+
],
|
| 198 |
+
'comma-dangle': 'off',
|
| 199 |
+
'@typescript-eslint/comma-dangle': [
|
| 200 |
+
'error',
|
| 201 |
+
'always-multiline'
|
| 202 |
+
],
|
| 203 |
+
'comma-spacing': 'off',
|
| 204 |
+
'@typescript-eslint/comma-spacing': [
|
| 205 |
+
'error',
|
| 206 |
+
{
|
| 207 |
+
before: false,
|
| 208 |
+
after: true
|
| 209 |
+
}
|
| 210 |
+
],
|
| 211 |
+
'default-param-last': 'off',
|
| 212 |
+
'@typescript-eslint/default-param-last': 'error',
|
| 213 |
+
'dot-notation': 'off',
|
| 214 |
+
'@typescript-eslint/dot-notation': 'error',
|
| 215 |
+
'@typescript-eslint/consistent-type-assertions': [
|
| 216 |
+
'error',
|
| 217 |
+
{
|
| 218 |
+
assertionStyle: 'as',
|
| 219 |
+
objectLiteralTypeAssertions: 'allow-as-parameter'
|
| 220 |
+
}
|
| 221 |
+
],
|
| 222 |
+
'@typescript-eslint/consistent-type-definitions': [
|
| 223 |
+
'error',
|
| 224 |
+
'type'
|
| 225 |
+
],
|
| 226 |
+
'@typescript-eslint/consistent-type-exports': [
|
| 227 |
+
'error',
|
| 228 |
+
{
|
| 229 |
+
fixMixedExportsWithInlineTypeSpecifier: true
|
| 230 |
+
}
|
| 231 |
+
],
|
| 232 |
+
'@typescript-eslint/consistent-type-imports': [
|
| 233 |
+
'error',
|
| 234 |
+
{
|
| 235 |
+
fixStyle: 'inline-type-imports'
|
| 236 |
+
}
|
| 237 |
+
],
|
| 238 |
+
|
| 239 |
+
// Disabled because it's too annoying. Enable it when it's more mature, smarter, and more flexible.
|
| 240 |
+
// https://github.com/typescript-eslint/typescript-eslint/search?q=%22explicit-function-return-type%22&state=open&type=Issues
|
| 241 |
+
// '@typescript-eslint/explicit-function-return-type': [
|
| 242 |
+
// 'error',
|
| 243 |
+
// {
|
| 244 |
+
// allowExpressions: true,
|
| 245 |
+
// allowTypedFunctionExpressions: true,
|
| 246 |
+
// allowHigherOrderFunctions: true,
|
| 247 |
+
// allowConciseArrowFunctionExpressionsStartingWithVoid: false,
|
| 248 |
+
// allowIIFE: true
|
| 249 |
+
// }
|
| 250 |
+
// ],
|
| 251 |
+
|
| 252 |
+
// TODO: This rule should be removed if/when we enable `@typescript-eslint/explicit-function-return-type`.
|
| 253 |
+
// Disabled for now as it has too many false-positives.
|
| 254 |
+
// https://github.com/typescript-eslint/typescript-eslint/search?q=%22explicit-module-boundary-types%22&state=open&type=Issues
|
| 255 |
+
// '@typescript-eslint/explicit-module-boundary-types': [
|
| 256 |
+
// 'error',
|
| 257 |
+
// {
|
| 258 |
+
// allowTypedFunctionExpressions: true,
|
| 259 |
+
// allowHigherOrderFunctions: true,
|
| 260 |
+
// allowDirectConstAssertionInArrowFunctions: true,
|
| 261 |
+
// shouldTrackReferences: true
|
| 262 |
+
// }
|
| 263 |
+
// ],
|
| 264 |
+
|
| 265 |
+
'func-call-spacing': 'off',
|
| 266 |
+
'@typescript-eslint/func-call-spacing': [
|
| 267 |
+
'error',
|
| 268 |
+
'never'
|
| 269 |
+
],
|
| 270 |
+
indent: 'off',
|
| 271 |
+
'@typescript-eslint/indent': [
|
| 272 |
+
'error',
|
| 273 |
+
'tab',
|
| 274 |
+
{
|
| 275 |
+
SwitchCase: 1
|
| 276 |
+
}
|
| 277 |
+
],
|
| 278 |
+
'keyword-spacing': 'off',
|
| 279 |
+
'@typescript-eslint/keyword-spacing': 'error',
|
| 280 |
+
'lines-between-class-members': 'off',
|
| 281 |
+
'@typescript-eslint/lines-between-class-members': [
|
| 282 |
+
'error',
|
| 283 |
+
'always',
|
| 284 |
+
{
|
| 285 |
+
// Workaround to allow class fields to not have lines between them.
|
| 286 |
+
// TODO: Get ESLint to add an option to ignore class fields.
|
| 287 |
+
exceptAfterSingleLine: true
|
| 288 |
+
}
|
| 289 |
+
],
|
| 290 |
+
'@typescript-eslint/member-delimiter-style': [
|
| 291 |
+
'error',
|
| 292 |
+
{
|
| 293 |
+
multiline: {
|
| 294 |
+
delimiter: 'semi',
|
| 295 |
+
requireLast: true
|
| 296 |
+
},
|
| 297 |
+
singleline: {
|
| 298 |
+
delimiter: 'semi',
|
| 299 |
+
requireLast: false
|
| 300 |
+
}
|
| 301 |
+
}
|
| 302 |
+
],
|
| 303 |
+
'@typescript-eslint/member-ordering': [
|
| 304 |
+
'error',
|
| 305 |
+
{
|
| 306 |
+
default: [
|
| 307 |
+
'signature',
|
| 308 |
+
|
| 309 |
+
'public-static-field',
|
| 310 |
+
'public-static-method',
|
| 311 |
+
|
| 312 |
+
'protected-static-field',
|
| 313 |
+
'protected-static-method',
|
| 314 |
+
|
| 315 |
+
'private-static-field',
|
| 316 |
+
'private-static-method',
|
| 317 |
+
|
| 318 |
+
'static-field',
|
| 319 |
+
'static-method',
|
| 320 |
+
|
| 321 |
+
'public-decorated-field',
|
| 322 |
+
'public-instance-field',
|
| 323 |
+
'public-abstract-field',
|
| 324 |
+
'public-field',
|
| 325 |
+
|
| 326 |
+
'protected-decorated-field',
|
| 327 |
+
'protected-instance-field',
|
| 328 |
+
'protected-abstract-field',
|
| 329 |
+
'protected-field',
|
| 330 |
+
|
| 331 |
+
'private-decorated-field',
|
| 332 |
+
'private-instance-field',
|
| 333 |
+
'private-field',
|
| 334 |
+
|
| 335 |
+
'instance-field',
|
| 336 |
+
'abstract-field',
|
| 337 |
+
'decorated-field',
|
| 338 |
+
'field',
|
| 339 |
+
|
| 340 |
+
'public-constructor',
|
| 341 |
+
'protected-constructor',
|
| 342 |
+
'private-constructor',
|
| 343 |
+
'constructor',
|
| 344 |
+
|
| 345 |
+
'public-decorated-method',
|
| 346 |
+
'public-instance-method',
|
| 347 |
+
'public-abstract-method',
|
| 348 |
+
'public-method',
|
| 349 |
+
|
| 350 |
+
'protected-decorated-method',
|
| 351 |
+
'protected-instance-method',
|
| 352 |
+
'protected-abstract-method',
|
| 353 |
+
'protected-method',
|
| 354 |
+
|
| 355 |
+
'private-decorated-method',
|
| 356 |
+
'private-instance-method',
|
| 357 |
+
'private-method',
|
| 358 |
+
|
| 359 |
+
'instance-method',
|
| 360 |
+
'abstract-method',
|
| 361 |
+
'decorated-method',
|
| 362 |
+
'method'
|
| 363 |
+
]
|
| 364 |
+
}
|
| 365 |
+
],
|
| 366 |
+
|
| 367 |
+
// Disabled for now as it causes too many weird TypeScript issues. I'm not sure whether the problems are caused by bugs in TS or problems in my types.
|
| 368 |
+
// TODO: Try to re-enable this again in 2026.
|
| 369 |
+
// '@typescript-eslint/method-signature-style': 'error',
|
| 370 |
+
|
| 371 |
+
// We use `@typescript-eslint/naming-convention` in favor of `camelcase`.
|
| 372 |
+
camelcase: 'off',
|
| 373 |
+
// Known issues:
|
| 374 |
+
// - https://github.com/typescript-eslint/typescript-eslint/issues/1485
|
| 375 |
+
// - https://github.com/typescript-eslint/typescript-eslint/issues/1484
|
| 376 |
+
// TODO: Prevent `_` prefix on private fields when TypeScript 3.8 is out.
|
| 377 |
+
...getNamingConventionRule({isTsx: false}),
|
| 378 |
+
'@typescript-eslint/no-base-to-string': 'error',
|
| 379 |
+
'no-array-constructor': 'off',
|
| 380 |
+
'@typescript-eslint/no-array-constructor': 'error',
|
| 381 |
+
'@typescript-eslint/no-array-delete': 'error',
|
| 382 |
+
'no-dupe-class-members': 'off',
|
| 383 |
+
'@typescript-eslint/no-dupe-class-members': 'error',
|
| 384 |
+
'@typescript-eslint/no-confusing-void-expression': 'error',
|
| 385 |
+
'@typescript-eslint/no-duplicate-enum-values': 'error',
|
| 386 |
+
'@typescript-eslint/no-duplicate-type-constituents': 'error',
|
| 387 |
+
'@typescript-eslint/no-dynamic-delete': 'error',
|
| 388 |
+
'no-empty-function': 'off',
|
| 389 |
+
'@typescript-eslint/no-empty-function': 'error',
|
| 390 |
+
'@typescript-eslint/no-empty-interface': [
|
| 391 |
+
'error',
|
| 392 |
+
{
|
| 393 |
+
allowSingleExtends: true
|
| 394 |
+
}
|
| 395 |
+
],
|
| 396 |
+
|
| 397 |
+
// TODO: Try to enable this again in 2025.
|
| 398 |
+
// Disabled for now. This is a great rule. It's just that TypeScript is not good enough yet to not use `any` in many places.
|
| 399 |
+
// For example: https://github.com/sindresorhus/refined-github/pull/2391#discussion_r318995182
|
| 400 |
+
// '@typescript-eslint/no-explicit-any': [
|
| 401 |
+
// 'error',
|
| 402 |
+
// {
|
| 403 |
+
// fixToUnknown: true,
|
| 404 |
+
// ignoreRestArgs: true
|
| 405 |
+
// }
|
| 406 |
+
// ],
|
| 407 |
+
|
| 408 |
+
'@typescript-eslint/no-extra-non-null-assertion': 'error',
|
| 409 |
+
|
| 410 |
+
// Disabled because it's buggy. It transforms `...(personalToken ? {Authorization: `token ${personalToken}`} : {})` into `...personalToken ? {Authorization: `token ${personalToken}`} : {}` which is not valid.
|
| 411 |
+
// https://github.com/typescript-eslint/typescript-eslint/search?q=%22no-extra-parens%22&state=open&type=Issues
|
| 412 |
+
'no-extra-parens': 'off',
|
| 413 |
+
// '@typescript-eslint/no-extra-parens': [
|
| 414 |
+
// 'error',
|
| 415 |
+
// 'all',
|
| 416 |
+
// {
|
| 417 |
+
// conditionalAssign: false,
|
| 418 |
+
// nestedBinaryExpressions: false,
|
| 419 |
+
// ignoreJSX: 'multi-line'
|
| 420 |
+
// }
|
| 421 |
+
// ],
|
| 422 |
+
|
| 423 |
+
'no-extra-semi': 'off',
|
| 424 |
+
'@typescript-eslint/no-extra-semi': 'error',
|
| 425 |
+
'no-loop-func': 'off',
|
| 426 |
+
'@typescript-eslint/no-loop-func': 'error',
|
| 427 |
+
'no-loss-of-precision': 'off',
|
| 428 |
+
'@typescript-eslint/no-loss-of-precision': 'error',
|
| 429 |
+
'@typescript-eslint/no-extraneous-class': [
|
| 430 |
+
'error',
|
| 431 |
+
{
|
| 432 |
+
allowConstructorOnly: false,
|
| 433 |
+
allowEmpty: false,
|
| 434 |
+
allowStaticOnly: false,
|
| 435 |
+
allowWithDecorator: true
|
| 436 |
+
}
|
| 437 |
+
],
|
| 438 |
+
'no-void': [
|
| 439 |
+
'error',
|
| 440 |
+
{
|
| 441 |
+
allowAsStatement: true // To allow `ignoreVoid` in `@typescript-eslint/no-floating-promises`
|
| 442 |
+
}
|
| 443 |
+
],
|
| 444 |
+
'@typescript-eslint/no-floating-promises': [
|
| 445 |
+
'error',
|
| 446 |
+
{
|
| 447 |
+
checkThenables: true,
|
| 448 |
+
ignoreVoid: true, // Prepend a function call with `void` to mark it as not needing to be await'ed, which silences this rule.
|
| 449 |
+
ignoreIIFE: true
|
| 450 |
+
}
|
| 451 |
+
],
|
| 452 |
+
'@typescript-eslint/no-for-in-array': 'error',
|
| 453 |
+
'@typescript-eslint/no-inferrable-types': 'error',
|
| 454 |
+
|
| 455 |
+
// Disabled for now as it has too many false-positives.
|
| 456 |
+
// '@typescript-eslint/no-invalid-void-type': 'error',
|
| 457 |
+
|
| 458 |
+
'@typescript-eslint/no-meaningless-void-operator': 'error',
|
| 459 |
+
'@typescript-eslint/no-misused-new': 'error',
|
| 460 |
+
'@typescript-eslint/no-misused-promises': [
|
| 461 |
+
'error',
|
| 462 |
+
{
|
| 463 |
+
checksConditionals: true,
|
| 464 |
+
|
| 465 |
+
// TODO: I really want this to be `true`, but it makes it inconvenient to use
|
| 466 |
+
// async functions as event handlers... I need to find a good way to handle that.
|
| 467 |
+
// https://github.com/sindresorhus/refined-github/pull/2391#discussion_r318990466
|
| 468 |
+
checksVoidReturn: false
|
| 469 |
+
}
|
| 470 |
+
],
|
| 471 |
+
'@typescript-eslint/no-namespace': 'error',
|
| 472 |
+
'@typescript-eslint/no-non-null-asserted-nullish-coalescing': 'error',
|
| 473 |
+
'@typescript-eslint/no-non-null-asserted-optional-chain': 'error',
|
| 474 |
+
|
| 475 |
+
// Disabled for now. There are just too many places where you need to use it because of incorrect types, for example, the Node.js types.
|
| 476 |
+
// TODO: Try to enable this again in 2023.
|
| 477 |
+
// '@typescript-eslint/no-non-null-assertion': 'error',
|
| 478 |
+
|
| 479 |
+
'no-redeclare': 'off',
|
| 480 |
+
'@typescript-eslint/no-redeclare': 'error',
|
| 481 |
+
'no-restricted-imports': 'off',
|
| 482 |
+
'@typescript-eslint/no-restricted-imports': [
|
| 483 |
+
'error',
|
| 484 |
+
{
|
| 485 |
+
paths: [
|
| 486 |
+
'error',
|
| 487 |
+
'domain',
|
| 488 |
+
'freelist',
|
| 489 |
+
'smalloc',
|
| 490 |
+
'punycode',
|
| 491 |
+
'sys',
|
| 492 |
+
'querystring',
|
| 493 |
+
'colors'
|
| 494 |
+
],
|
| 495 |
+
},
|
| 496 |
+
],
|
| 497 |
+
|
| 498 |
+
// The rule is buggy and keeps inferring `any` for types that are not `any`. Just a lot of false-positives.
|
| 499 |
+
// '@typescript-eslint/no-redundant-type-constituents': 'error',
|
| 500 |
+
|
| 501 |
+
'@typescript-eslint/no-require-imports': 'error',
|
| 502 |
+
'@typescript-eslint/no-this-alias': [
|
| 503 |
+
'error',
|
| 504 |
+
{
|
| 505 |
+
allowDestructuring: true
|
| 506 |
+
}
|
| 507 |
+
],
|
| 508 |
+
'no-throw-literal': 'off',
|
| 509 |
+
'@typescript-eslint/only-throw-error': [
|
| 510 |
+
'error',
|
| 511 |
+
{
|
| 512 |
+
// This should ideally be `false`, but it makes rethrowing errors inconvenient. There should be a separate `allowRethrowingUnknown` option.
|
| 513 |
+
allowThrowingUnknown: true,
|
| 514 |
+
allowThrowingAny: false
|
| 515 |
+
}
|
| 516 |
+
],
|
| 517 |
+
'@typescript-eslint/no-unnecessary-boolean-literal-compare': 'error',
|
| 518 |
+
|
| 519 |
+
// `no-unnecessary-condition` is essentially a stricter version of `no-constant-condition`, but that isn't currently enabled
|
| 520 |
+
'no-constant-condition': 'error',
|
| 521 |
+
|
| 522 |
+
// TODO: Try to enable this again in 2025 *if* the following are resolved:
|
| 523 |
+
// - https://github.com/microsoft/TypeScript/issues/36393
|
| 524 |
+
// - The rule needs a way to ignore runtime type-checks: https://github.com/sindresorhus/refined-github/pull/3168
|
| 525 |
+
// - Run the rule on https://github.com/sindresorhus/refined-github and ensure there are no false-positives
|
| 526 |
+
//
|
| 527 |
+
// Also related: https://github.com/typescript-eslint/typescript-eslint/issues/1798
|
| 528 |
+
// Also disable `no-constant-condition` when this is enabled
|
| 529 |
+
// '@typescript-eslint/no-unnecessary-condition': 'error',
|
| 530 |
+
|
| 531 |
+
'@typescript-eslint/no-unnecessary-parameter-property-assignment': 'error',
|
| 532 |
+
'@typescript-eslint/no-unnecessary-qualifier': 'error',
|
| 533 |
+
'@typescript-eslint/no-unnecessary-type-arguments': 'error',
|
| 534 |
+
'@typescript-eslint/no-unnecessary-type-assertion': 'error',
|
| 535 |
+
'@typescript-eslint/no-unnecessary-type-constraint': 'error',
|
| 536 |
+
|
| 537 |
+
// TODO: Enable at some point. Currently disabled because it's marked as unstable.
|
| 538 |
+
// https://typescript-eslint.io/rules/no-unnecessary-type-parameters/
|
| 539 |
+
// '@typescript-eslint/no-unnecessary-type-parameters': 'error',
|
| 540 |
+
|
| 541 |
+
'@typescript-eslint/no-unsafe-argument': 'error',
|
| 542 |
+
'@typescript-eslint/no-unsafe-assignment': 'error',
|
| 543 |
+
'@typescript-eslint/no-unsafe-call': 'error',
|
| 544 |
+
'@typescript-eslint/no-unsafe-declaration-merging': 'error',
|
| 545 |
+
'@typescript-eslint/no-unsafe-enum-comparison': 'error',
|
| 546 |
+
|
| 547 |
+
// Disabled until TypeScrpt supports the `node:` protocol.
|
| 548 |
+
// '@typescript-eslint/no-unsafe-member-access': 'error',
|
| 549 |
+
|
| 550 |
+
'@typescript-eslint/no-unsafe-return': 'error',
|
| 551 |
+
'@typescript-eslint/no-useless-empty-export': 'error',
|
| 552 |
+
'no-unused-expressions': 'off',
|
| 553 |
+
'@typescript-eslint/no-unused-expressions': 'error',
|
| 554 |
+
'no-unused-vars': 'off',
|
| 555 |
+
// NOTE: TypeScript already catches unused variables. Let us know if there's something this rule catches that TypeScript does not.
|
| 556 |
+
// '@typescript-eslint/no-unused-vars': [
|
| 557 |
+
// 'error',
|
| 558 |
+
// {
|
| 559 |
+
// vars: 'all',
|
| 560 |
+
// args: 'after-used',
|
| 561 |
+
// ignoreRestSiblings: true,
|
| 562 |
+
// argsIgnorePattern: /^_/.source,
|
| 563 |
+
// caughtErrors: 'all',
|
| 564 |
+
// caughtErrorsIgnorePattern: /^_$/.source
|
| 565 |
+
// }
|
| 566 |
+
// ],
|
| 567 |
+
'no-useless-constructor': 'off',
|
| 568 |
+
'@typescript-eslint/no-useless-constructor': 'error',
|
| 569 |
+
'object-curly-spacing': 'off',
|
| 570 |
+
'@typescript-eslint/object-curly-spacing': [
|
| 571 |
+
'error',
|
| 572 |
+
'never'
|
| 573 |
+
],
|
| 574 |
+
'padding-line-between-statements': 'off',
|
| 575 |
+
'@typescript-eslint/padding-line-between-statements': [
|
| 576 |
+
'error',
|
| 577 |
+
{
|
| 578 |
+
blankLine: 'always',
|
| 579 |
+
prev: 'multiline-block-like',
|
| 580 |
+
next: '*'
|
| 581 |
+
}
|
| 582 |
+
],
|
| 583 |
+
'@typescript-eslint/no-var-requires': 'error',
|
| 584 |
+
'@typescript-eslint/non-nullable-type-assertion-style': 'error',
|
| 585 |
+
'@typescript-eslint/parameter-properties': [
|
| 586 |
+
'error',
|
| 587 |
+
{
|
| 588 |
+
prefer: 'parameter-property'
|
| 589 |
+
}
|
| 590 |
+
],
|
| 591 |
+
'@typescript-eslint/prefer-as-const': 'error',
|
| 592 |
+
'@typescript-eslint/prefer-find': 'error',
|
| 593 |
+
'@typescript-eslint/prefer-for-of': 'error',
|
| 594 |
+
'@typescript-eslint/prefer-function-type': 'error',
|
| 595 |
+
'@typescript-eslint/prefer-includes': 'error',
|
| 596 |
+
'@typescript-eslint/prefer-literal-enum-member': 'error',
|
| 597 |
+
'@typescript-eslint/prefer-namespace-keyword': 'error',
|
| 598 |
+
'@typescript-eslint/prefer-nullish-coalescing': [
|
| 599 |
+
'error',
|
| 600 |
+
{
|
| 601 |
+
ignoreTernaryTests: false,
|
| 602 |
+
ignoreConditionalTests: false,
|
| 603 |
+
ignoreMixedLogicalExpressions: false
|
| 604 |
+
}
|
| 605 |
+
],
|
| 606 |
+
'@typescript-eslint/prefer-optional-chain': 'error',
|
| 607 |
+
'prefer-promise-reject-errors': 'off',
|
| 608 |
+
'@typescript-eslint/prefer-promise-reject-errors': 'error',
|
| 609 |
+
'@typescript-eslint/prefer-readonly': 'error',
|
| 610 |
+
|
| 611 |
+
// TODO: Try to enable this again in 2023.
|
| 612 |
+
// Disabled for now as it's too annoying and will cause too much churn. It also has bugs: https://github.com/typescript-eslint/typescript-eslint/search?q=%22prefer-readonly-parameter-types%22+is:issue&state=open&type=issues
|
| 613 |
+
// '@typescript-eslint/prefer-readonly-parameter-types': [
|
| 614 |
+
// 'error',
|
| 615 |
+
// {
|
| 616 |
+
// checkParameterProperties: true,
|
| 617 |
+
// ignoreInferredTypes: true
|
| 618 |
+
// }
|
| 619 |
+
// ],
|
| 620 |
+
|
| 621 |
+
'@typescript-eslint/prefer-reduce-type-parameter': 'error',
|
| 622 |
+
'@typescript-eslint/prefer-string-starts-ends-with': 'error',
|
| 623 |
+
'@typescript-eslint/promise-function-async': 'error',
|
| 624 |
+
quotes: 'off',
|
| 625 |
+
'@typescript-eslint/quotes': [
|
| 626 |
+
'error',
|
| 627 |
+
'single'
|
| 628 |
+
],
|
| 629 |
+
'@typescript-eslint/restrict-plus-operands': [
|
| 630 |
+
'error',
|
| 631 |
+
{
|
| 632 |
+
allowAny: false
|
| 633 |
+
}
|
| 634 |
+
],
|
| 635 |
+
'@typescript-eslint/restrict-template-expressions': [
|
| 636 |
+
'error',
|
| 637 |
+
{
|
| 638 |
+
allowNumber: true
|
| 639 |
+
}
|
| 640 |
+
],
|
| 641 |
+
'@typescript-eslint/return-await': 'error',
|
| 642 |
+
'@typescript-eslint/require-array-sort-compare': [
|
| 643 |
+
'error',
|
| 644 |
+
{
|
| 645 |
+
ignoreStringArrays: true
|
| 646 |
+
}
|
| 647 |
+
],
|
| 648 |
+
|
| 649 |
+
// Disabled for now. It's too buggy. It fails to detect when try/catch is used, await inside blocks, etc. It's also common to have async functions without await for various reasons.
|
| 650 |
+
// 'require-await': 'off',
|
| 651 |
+
// '@typescript-eslint/require-await': 'error',
|
| 652 |
+
|
| 653 |
+
'space-before-function-paren': 'off',
|
| 654 |
+
'@typescript-eslint/space-before-function-paren': [
|
| 655 |
+
'error',
|
| 656 |
+
{
|
| 657 |
+
anonymous: 'always',
|
| 658 |
+
named: 'never',
|
| 659 |
+
asyncArrow: 'always'
|
| 660 |
+
}
|
| 661 |
+
],
|
| 662 |
+
'space-infix-ops': 'off',
|
| 663 |
+
'@typescript-eslint/space-infix-ops': 'error',
|
| 664 |
+
semi: 'off',
|
| 665 |
+
'@typescript-eslint/semi': [
|
| 666 |
+
'error',
|
| 667 |
+
'always'
|
| 668 |
+
],
|
| 669 |
+
'space-before-blocks': 'off',
|
| 670 |
+
'@typescript-eslint/space-before-blocks': [
|
| 671 |
+
'error',
|
| 672 |
+
'always'
|
| 673 |
+
],
|
| 674 |
+
|
| 675 |
+
// TODO: Reconsider enabling it again in 2023.
|
| 676 |
+
// NOTE: The rule was complete redone in typescript-eslint v3, so this config needs to be changed before this is enabled.
|
| 677 |
+
// Disabled for now as it's too strict.
|
| 678 |
+
// Relevant discussion: https://github.com/sindresorhus/refined-github/pull/2521#discussion_r343013852
|
| 679 |
+
// '@typescript-eslint/strict-boolean-expressions': [
|
| 680 |
+
// 'error',
|
| 681 |
+
// {
|
| 682 |
+
// allowNullable: true,
|
| 683 |
+
// allowSafe: true
|
| 684 |
+
// }
|
| 685 |
+
// ],
|
| 686 |
+
|
| 687 |
+
'default-case': 'off', // It conflicts with `@typescript-eslint/switch-exhaustiveness-check`. It would still be nice to have this rule for non-exhaustive switches though.
|
| 688 |
+
'@typescript-eslint/switch-exhaustiveness-check': [
|
| 689 |
+
'error',
|
| 690 |
+
{
|
| 691 |
+
allowDefaultCaseForExhaustiveSwitch: false,
|
| 692 |
+
requireDefaultForNonUnion: true
|
| 693 |
+
}
|
| 694 |
+
],
|
| 695 |
+
'@typescript-eslint/triple-slash-reference': [
|
| 696 |
+
'error',
|
| 697 |
+
{
|
| 698 |
+
path: 'never',
|
| 699 |
+
types: 'never',
|
| 700 |
+
lib: 'never'
|
| 701 |
+
}
|
| 702 |
+
],
|
| 703 |
+
'@typescript-eslint/type-annotation-spacing': 'error',
|
| 704 |
+
|
| 705 |
+
// Disabled as it crashes on most code.
|
| 706 |
+
// https://github.com/typescript-eslint/typescript-eslint/search?q=%22unbound-method%22&state=open&type=Issues
|
| 707 |
+
// '@typescript-eslint/unbound-method': [
|
| 708 |
+
// 'error',
|
| 709 |
+
// {
|
| 710 |
+
// ignoreStatic: true
|
| 711 |
+
// }
|
| 712 |
+
// ],
|
| 713 |
+
|
| 714 |
+
'@typescript-eslint/prefer-regexp-exec': 'error',
|
| 715 |
+
'@typescript-eslint/prefer-return-this-type': 'error',
|
| 716 |
+
'@typescript-eslint/unified-signatures': [
|
| 717 |
+
'error',
|
| 718 |
+
{
|
| 719 |
+
ignoreDifferentlyNamedParameters: true
|
| 720 |
+
}
|
| 721 |
+
],
|
| 722 |
+
'@typescript-eslint/use-unknown-in-catch-callback-variable': 'error',
|
| 723 |
+
|
| 724 |
+
// Disabled per typescript-eslint recommendation: https://github.com/typescript-eslint/typescript-eslint/blob/e26e43ffba96f6d46198b22f1c8dd5c814db2652/docs/getting-started/linting/FAQ.md#i-get-errors-from-the-no-undef-rule-about-global-variables-not-being-defined-even-though-there-are-no-typescript-errors
|
| 725 |
+
'no-undef': 'off',
|
| 726 |
+
|
| 727 |
+
// TypeScript might have features not supported in a specific Node.js version.
|
| 728 |
+
'node/no-unsupported-features/es-syntax': 'off',
|
| 729 |
+
'node/no-unsupported-features/es-builtins': 'off',
|
| 730 |
+
|
| 731 |
+
// Even though we already use `@typescript-eslint/ban-types`, `unicorn/no-null` is useful for catching literal usage.
|
| 732 |
+
// https://github.com/xojs/eslint-config-xo-typescript/issues/69
|
| 733 |
+
// 'unicorn/no-null': 'off',
|
| 734 |
+
|
| 735 |
+
// The rule is buggy with TS and it's not needed as TS already enforces valid imports and references at compile-time.
|
| 736 |
+
'import/namespace': 'off',
|
| 737 |
+
|
| 738 |
+
// TypeScript already does a better job at this.
|
| 739 |
+
'import/named': 'off',
|
| 740 |
+
|
| 741 |
+
// `import/no-duplicates` works better with TypeScript.
|
| 742 |
+
'no-duplicate-imports': 'off'
|
| 743 |
+
},
|
| 744 |
+
overrides: [
|
| 745 |
+
{
|
| 746 |
+
files: [
|
| 747 |
+
'**/*.d.ts'
|
| 748 |
+
],
|
| 749 |
+
rules: {
|
| 750 |
+
'@typescript-eslint/no-unused-vars': 'off'
|
| 751 |
+
}
|
| 752 |
+
},
|
| 753 |
+
{
|
| 754 |
+
files: [
|
| 755 |
+
'**/*.test-d.ts'
|
| 756 |
+
],
|
| 757 |
+
rules: {
|
| 758 |
+
'@typescript-eslint/no-unsafe-call': 'off',
|
| 759 |
+
'@typescript-eslint/no-confusing-void-expression': 'off' // Conflicts with `expectError` assertion.
|
| 760 |
+
}
|
| 761 |
+
},
|
| 762 |
+
{
|
| 763 |
+
files: [
|
| 764 |
+
'**/*.tsx'
|
| 765 |
+
],
|
| 766 |
+
rules: {
|
| 767 |
+
...getNamingConventionRule({isTsx: true})
|
| 768 |
+
}
|
| 769 |
+
}
|
| 770 |
+
]
|
| 771 |
+
};
|
novas/novacore-zephyr/groq-code-cli/node_modules/eslint-config-xo-typescript/license
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
MIT License
|
| 2 |
+
|
| 3 |
+
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
| 6 |
+
|
| 7 |
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
| 8 |
+
|
| 9 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
novas/novacore-zephyr/groq-code-cli/node_modules/eslint-config-xo-typescript/package.json
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "eslint-config-xo-typescript",
|
| 3 |
+
"version": "5.0.0",
|
| 4 |
+
"description": "ESLint shareable config for TypeScript to be used with eslint-config-xo",
|
| 5 |
+
"license": "MIT",
|
| 6 |
+
"repository": "xojs/eslint-config-xo-typescript",
|
| 7 |
+
"funding": "https://github.com/sponsors/sindresorhus",
|
| 8 |
+
"author": {
|
| 9 |
+
"name": "Sindre Sorhus",
|
| 10 |
+
"email": "sindresorhus@gmail.com",
|
| 11 |
+
"url": "https://sindresorhus.com"
|
| 12 |
+
},
|
| 13 |
+
"sideEffects": false,
|
| 14 |
+
"engines": {
|
| 15 |
+
"node": ">=18"
|
| 16 |
+
},
|
| 17 |
+
"scripts": {
|
| 18 |
+
"test": "ava"
|
| 19 |
+
},
|
| 20 |
+
"files": [
|
| 21 |
+
"index.js",
|
| 22 |
+
"space.js"
|
| 23 |
+
],
|
| 24 |
+
"keywords": [
|
| 25 |
+
"typescript",
|
| 26 |
+
"eslintconfig",
|
| 27 |
+
"xo",
|
| 28 |
+
"code",
|
| 29 |
+
"quality",
|
| 30 |
+
"style",
|
| 31 |
+
"lint",
|
| 32 |
+
"linter",
|
| 33 |
+
"jscs",
|
| 34 |
+
"jshint",
|
| 35 |
+
"jslint",
|
| 36 |
+
"eslint",
|
| 37 |
+
"validate",
|
| 38 |
+
"standard",
|
| 39 |
+
"strict",
|
| 40 |
+
"check",
|
| 41 |
+
"checker",
|
| 42 |
+
"verify",
|
| 43 |
+
"enforce",
|
| 44 |
+
"hint",
|
| 45 |
+
"simple"
|
| 46 |
+
],
|
| 47 |
+
"devDependencies": {
|
| 48 |
+
"@typescript-eslint/eslint-plugin": "^7.16.0",
|
| 49 |
+
"@typescript-eslint/parser": "^7.16.0",
|
| 50 |
+
"ava": "^6.1.2",
|
| 51 |
+
"eslint": "^8.56.0",
|
| 52 |
+
"typescript": "^5.3.3"
|
| 53 |
+
},
|
| 54 |
+
"peerDependencies": {
|
| 55 |
+
"@typescript-eslint/eslint-plugin": ">=7.16.0",
|
| 56 |
+
"@typescript-eslint/parser": ">=7.16.0",
|
| 57 |
+
"eslint": ">=8.56.0",
|
| 58 |
+
"typescript": ">=5.0.0"
|
| 59 |
+
}
|
| 60 |
+
}
|
novas/novacore-zephyr/groq-code-cli/node_modules/eslint-config-xo-typescript/readme.md
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# eslint-config-xo-typescript
|
| 2 |
+
|
| 3 |
+
> ESLint [shareable config](https://eslint.org/docs/developer-guide/shareable-configs.html) for TypeScript to be used with [eslint-config-xo](https://github.com/xojs/eslint-config-xo)
|
| 4 |
+
|
| 5 |
+
**This config assumes your project is [ESM](https://nodejs.org/api/esm.html) and that you use a [strict config](https://github.com/sindresorhus/tsconfig/blob/main/tsconfig.json).**
|
| 6 |
+
|
| 7 |
+
## Install
|
| 8 |
+
|
| 9 |
+
```sh
|
| 10 |
+
npm install --save-dev eslint-config-xo eslint-config-xo-typescript @typescript-eslint/parser @typescript-eslint/eslint-plugin
|
| 11 |
+
```
|
| 12 |
+
|
| 13 |
+
## Use with XO
|
| 14 |
+
|
| 15 |
+
[XO has built-in support for TypeScript](https://github.com/xojs/xo#typescript), using this package under the hood, so you do not have to configure anything.
|
| 16 |
+
|
| 17 |
+
## Standalone Usage
|
| 18 |
+
|
| 19 |
+
Add some ESLint config to your package.json (or `.eslintrc`):
|
| 20 |
+
|
| 21 |
+
```json
|
| 22 |
+
{
|
| 23 |
+
"name": "my-awesome-project",
|
| 24 |
+
"eslintConfig": {
|
| 25 |
+
"extends": [
|
| 26 |
+
"xo",
|
| 27 |
+
"xo-typescript"
|
| 28 |
+
]
|
| 29 |
+
}
|
| 30 |
+
}
|
| 31 |
+
```
|
| 32 |
+
|
| 33 |
+
Use the `space` sub-config if you want 2 space indentation instead of tabs:
|
| 34 |
+
|
| 35 |
+
```json
|
| 36 |
+
{
|
| 37 |
+
"name": "my-awesome-project",
|
| 38 |
+
"eslintConfig": {
|
| 39 |
+
"extends": [
|
| 40 |
+
"xo",
|
| 41 |
+
"xo-typescript/space"
|
| 42 |
+
]
|
| 43 |
+
}
|
| 44 |
+
}
|
| 45 |
+
```
|
| 46 |
+
|
| 47 |
+
*Note:* If your `tsconfig.json` is not in the same directory as `package.json`, you will have to set the path yourself:
|
| 48 |
+
|
| 49 |
+
```json
|
| 50 |
+
{
|
| 51 |
+
"name": "my-awesome-project",
|
| 52 |
+
"eslintConfig": {
|
| 53 |
+
"extends": [
|
| 54 |
+
"xo",
|
| 55 |
+
"xo-typescript"
|
| 56 |
+
],
|
| 57 |
+
"parserOptions": {
|
| 58 |
+
"project": "some-path/tsconfig.json"
|
| 59 |
+
}
|
| 60 |
+
}
|
| 61 |
+
}
|
| 62 |
+
```
|
| 63 |
+
|
| 64 |
+
## Related
|
| 65 |
+
|
| 66 |
+
- [eslint-config-xo](https://github.com/xojs/eslint-config-xo) - ESLint shareable config for XO
|
| 67 |
+
- [XO](https://github.com/xojs/xo)
|