Commit Graph

25 Commits

Author SHA1 Message Date
Filipe Freire
9800ad5aee
chore: use npm workspaces (herecles) (#6193)
* chore: use npm workspaces

* edit workspaces

* fix

* fix

* force workspace order

* fix lock?

* define max_old_space_size on CI

* rm unnecessary bootstrap

* fix

* cleanup package.json

* bump vite and re-add build to bootstrap

* define paths on tsconfig

* fix some things

* add mocha to vite config

* bump mocha

* remove tsconfigs and project refs

* cache npm install

* fixed types

* assing repo root

* merge lint configs

* fix clean

* fix tests

* setup node

* lockfile

* fix bump

* fix lint markdown

* temporary disable inso tests

* dont use rimraf

* simplify clean

* fix version

* lockfile

* inso build

* fix lint

* lock file

* remove cleans

* remove unused

* tslib hack

* redownload node-libcurl

* rm version from scripts

* fix extrainfo bug

* use npm version

---------

Co-authored-by: jackkav <jackkav@gmail.com>
2023-08-10 00:14:16 +02:00
Jack Kavanagh
1e54dae260
Chore/request-refactor-3 (#6201)
* wip

* fix types

* fix test

* create new request

* use json encType

* rename and update fix

* consistent naming

* remove unused

* fix reflection

* remove conflicting lint rule

* fix folder actions

* fix folder rename

* fix mime type

* fix copy

* hide after move

* add req meta to req loader

* point all request meta updates at helper

* use hook for fetcher reuse

* add project id to debug log

* move default project seed to loader

* fix lint

* run tests

* rename fetcher hook

* rename hook file

* patchRequest hook

* remove useActiveRequest
2023-07-28 00:29:58 +02:00
Jack Kavanagh
c72eb2d373
formatting (#6190) 2023-07-25 12:20:39 +02:00
Jack Kavanagh
9fd965e9f3
Chore/flatten-plugins-cont (#6186)
* eat response

* eat request

* switch to if

* ignore xpath typing

* fix package json

* eat default-headers

* eat core themes

* fix type

* remove plugins from lerna

* clean up

* move themes to ts

* fix lint

* remove console log

* fix plugin name resolution

* fix types

* formatting

* clean up import theme

* export type

* show stack in ci

* remove stack condition
2023-07-25 10:37:04 +02:00
Jack Kavanagh
f34d7650f9
add stack and redirect to error page (#6171)
* add stack and redirect

* fix format

* fix formdata parsing

* remove console log
2023-07-19 13:56:27 +00:00
Dimitri POSTOLOV
a0edb75bdd
Update .eslintrc.js (#5609) 2023-01-20 10:11:16 +00:00
Jack Kavanagh
6e3e6ac102
remove packedDependencies and custom package script (#4704)
Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
Co-authored-by: David Marby <david@dmarby.se>
2022-04-20 13:49:07 +00:00
Dimitri Mitropoulos
727c1f3366
chore: bracket lint rules (#4694) 2022-04-13 17:04:29 -04:00
Dimitri Mitropoulos
bd11157d13
adds explicit react version (#4285) 2021-12-09 01:44:04 +00:00
Dimitri Mitropoulos
f7f4e9038a
turns off consistent-return rule (#4284) 2021-12-08 13:25:28 -05:00
Dimitri Mitropoulos
376700826e
fixes all react/prefer-stateless-function warnings (#4019) 2021-09-15 16:16:04 -04:00
James Gatz
381cf74a19
Improve codemirror typings (#3993)
Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
2021-09-08 15:38:07 +00:00
Opender Singh
7ffc391428
add eslint rules for semi colons (#3989)
* add rules for semi colons

* run lint fix

* remove invalid eslint disable
2021-09-01 10:50:26 -04:00
Dimitri Mitropoulos
407432aa02
adds eslint-config-helpers (#3912) 2021-08-12 18:01:54 -04:00
Opender Singh
18e7f49b43
Lint rules for equivalence and arrow func spacing (#3897) 2021-08-12 01:25:34 +00:00
Dimitri Mitropoulos
bac09280ee
adds operator spacing rules (#3905) 2021-08-11 19:19:48 -04:00
Opender Singh
251287062d
Use useAsync (#3888) 2021-08-10 23:57:13 +00:00
Opender Singh
f48cef02bd
Update some ESLint rules (#3883) 2021-08-08 05:08:56 +00:00
Opender Singh
853cefca75
React ESLint rules (#3884) 2021-08-07 08:03:56 +00:00
Dimitri Mitropoulos
5e00656807
adds jsx indentation rules (#3860) 2021-07-29 08:52:17 -07:00
Dimitri Mitropoulos
c29f577616
adds 'brace-style' and 'keyword-spacing' rules. (#3859) 2021-07-29 04:12:39 +00:00
Dimitri Mitropoulos
0178533e52
Feat/eslint import order (#3782) 2021-07-23 11:04:56 +12:00
Opender Singh
d7b630f17b
Add formatting ESLint rules (#3425)
* add rules

* run lint:fix

* quick manual fix for lint errors

* indent fix

* add jsx prop multiline

Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
2021-05-27 14:00:32 -04:00
Dimitri Mitropoulos
3605bc17cc
Feat/o2k improvements (#3396)
* makes this `yaml` import match all others

for better or for worse, until we upgrade `YAML` (it's now written in TypeScript) we should probably aim for consistency.

* adds overloads so that types of package exports

it would be FAR preferable to use an object with the arguments instead because then we don't have to fall into all the traps that come with overloads, but I am avoiding changing the actual call signature of these function.

* fixes and updates types

* corrects mispelling

* removes shim types and exports actual types from openapi-2-kong

we had everything in place for the rest of the build pipeline to consume these types, but were missing the main exports at the root index.ts file

* use actual openapi-2-kong types now that they're available

* use existing variable for filePath

* extracts o2k-specific helper data to live in o2k

evidently, this data is useful for the usage of o2k, therefore o2k should be the thing exporting it.

* use KubernetesManifest for name of kubernetes manifest union

when first naming this, I didn't have much more context than the property name (documents), so after taking a look,  it's clear that these are kubernetes manifests

* removes attempt at correctly typing overloads

I will return to this, and so I'm leaving it here in a commit rather than squashing it out, but I can't see a way to get it to work without changing the signature in a big way.

* fixes error (now that there are yaml types)

* makes `K8s` vs `Kubernetes` type terminology consistent

part of the motivation for this is that there are significant things in common between the two kinds of configs, making them closer in form is therefore ideal.

* updates mistake in name per review feedback
2021-05-19 22:49:50 -04:00
Dimitri Mitropoulos
5f4c19da35
[TypeScript] Phase 1 & 2 (#3370)
Co-authored-by: Opender Singh <opender.singh@konghq.com>
2021-05-12 18:35:00 +12:00