Skip to content

Commit d91c653

Browse files
feat: modernize codex (#12)
* feat: modernize codex * rm build artifact, enable safety rules, unsafe optional chain * gitignore artifact * bump package-lock * npm audit --fix * bump s3 sdk * fix 8 high vulns
1 parent 0375c4c commit d91c653

38 files changed

Lines changed: 17114 additions & 5336 deletions

.eslintrc

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,51 @@
1212
"quotes": ["error", "single"],
1313
"semi": "off",
1414
"object-curly-spacing": "off",
15+
"object-curly-newline": "off",
16+
"object-shorthand": "off",
1517
"lines-between-class-members": "off",
1618
"padded-blocks": "off",
1719
"no-trailing-spaces": "off",
1820
"eol-last": "off",
1921
"array-bracket-spacing": "off",
2022
"no-process-exit": "off",
21-
"unicorn/no-process-exit": "off"
23+
"operator-linebreak": "off",
24+
"complexity": "off",
25+
"max-depth": "off",
26+
"function-call-argument-newline": "off",
27+
"prefer-destructuring": "off",
28+
"prefer-arrow-callback": "off",
29+
"valid-jsdoc": "off",
30+
"padding-line-between-statements": "off",
31+
"n/no-process-exit": "off",
32+
"import/namespace": "off",
33+
"import/no-named-as-default-member": "off",
34+
"unicorn/no-process-exit": "off",
35+
"unicorn/prefer-node-protocol": "off",
36+
"unicorn/prefer-module": "off",
37+
"unicorn/prefer-optional-catch-binding": "off",
38+
"unicorn/prefer-native-coercion-functions": "off",
39+
"unicorn/prefer-at": "off",
40+
"unicorn/prefer-number-properties": "off",
41+
"unicorn/prefer-string-slice": "off",
42+
"unicorn/prefer-string-replace-all": "off",
43+
"unicorn/prefer-ternary": "off",
44+
"unicorn/no-array-reduce": "off",
45+
"unicorn/no-array-for-each": "off",
46+
"unicorn/no-for-loop": "off",
47+
"unicorn/no-await-expression-member": "off",
48+
"unicorn/switch-case-braces": "off",
49+
"unicorn/import-style": "off",
50+
"unicorn/consistent-function-scoping": "off",
51+
"@typescript-eslint/no-explicit-any": "off",
52+
"@typescript-eslint/no-require-imports": "off",
53+
"perfectionist/sort-imports": "off",
54+
"perfectionist/sort-classes": "off",
55+
"perfectionist/sort-objects": "off",
56+
"perfectionist/sort-union-types": "off",
57+
"perfectionist/sort-interfaces": "off",
58+
"perfectionist/sort-named-imports": "off",
59+
"perfectionist/sort-named-exports": "off",
60+
"perfectionist/sort-object-types": "off"
2261
}
2362
}

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ jobs:
1717

1818
strategy:
1919
matrix:
20-
node-version: [14.x, 15.x]
20+
node-version: [18.x, 20.x, 22.x]
2121

2222
steps:
23-
- uses: actions/checkout@v2
23+
- uses: actions/checkout@v4
2424
- name: Use Node.js ${{ matrix.node-version }}
25-
uses: actions/setup-node@v1
25+
uses: actions/setup-node@v4
2626
with:
2727
node-version: ${{ matrix.node-version }}
2828
- run: npm ci

.github/workflows/publish.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ on:
1111
workflow_dispatch:
1212

1313
env:
14-
node-version: 14
14+
node-version: 20
1515

1616
jobs:
1717
test:
1818
runs-on: ubuntu-latest
1919
steps:
20-
- uses: actions/checkout@v2
21-
- uses: actions/setup-node@v1
20+
- uses: actions/checkout@v4
21+
- uses: actions/setup-node@v4
2222
with:
2323
node-version: ${{env.node-version}}
2424
- run: npm ci
@@ -28,8 +28,8 @@ jobs:
2828
needs: test
2929
runs-on: ubuntu-latest
3030
steps:
31-
- uses: actions/checkout@v2
32-
- uses: actions/setup-node@v1
31+
- uses: actions/checkout@v4
32+
- uses: actions/setup-node@v4
3333
with:
3434
node-version: ${{env.node-version}}
3535
registry-url: https://npm.pkg.github.com/

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,6 @@
77
/yarn.lock
88
node_modules
99
.idea/
10+
11+
tsconfig.tsbuildinfo
12+
bin/

.mocharc.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
require:
2+
- ts-node/register
3+
spec: "test/**/*.test.ts"

bin/run

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env node
22

3-
require('@oclif/command').run()
4-
.then(require('@oclif/command/flush'))
5-
.catch(require('@oclif/errors/handle'))
3+
const oclif = require('@oclif/core')
4+
5+
oclif.run().then(require('@oclif/core/flush')).catch(require('@oclif/core/handle'))

0 commit comments

Comments
 (0)