Skip to content

Commit ea4fa61

Browse files
authored
Merge pull request #46 from Doczilla-APP/templating
Templating
2 parents 26bef5d + c2f5c60 commit ea4fa61

10 files changed

Lines changed: 1772 additions & 1773 deletions

File tree

.eslintignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

.eslintrc.json

Lines changed: 0 additions & 94 deletions
This file was deleted.

.github/workflows/pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ jobs:
4444
os:
4545
- "ubuntu-latest"
4646
node:
47+
- "24"
4748
- "22"
4849
- "20"
49-
- "18"
5050
runs-on: ${{ matrix.os }}
5151
steps:
5252
- uses: actions/checkout@v6

.yarn/releases/yarn-4.13.0.cjs

Lines changed: 940 additions & 0 deletions
Large diffs are not rendered by default.

.yarn/releases/yarn-4.2.2.cjs

Lines changed: 0 additions & 894 deletions
This file was deleted.

.yarnrc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
nodeLinker: node-modules
22

3-
yarnPath: .yarn/releases/yarn-4.2.2.cjs
3+
yarnPath: .yarn/releases/yarn-4.13.0.cjs

eslint.config.mjs

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
import tsPlugin from '@typescript-eslint/eslint-plugin';
2+
import tsParser from '@typescript-eslint/parser';
3+
import simpleImportSort from 'eslint-plugin-simple-import-sort';
4+
5+
export default [
6+
{
7+
ignores: ['node_modules/**', 'dist/**', '*.js', 'src/generated/**'],
8+
},
9+
...tsPlugin.configs['flat/recommended'],
10+
{
11+
files: ['**/*.ts'],
12+
plugins: {
13+
'simple-import-sort': simpleImportSort,
14+
},
15+
languageOptions: {
16+
parser: tsParser,
17+
parserOptions: {
18+
ecmaVersion: 2020,
19+
sourceType: 'module',
20+
},
21+
},
22+
rules: {
23+
'no-unneeded-ternary': 'error',
24+
'no-nested-ternary': 'error',
25+
'multiline-ternary': ['error', 'always-multiline'],
26+
'operator-linebreak': ['error', 'before'],
27+
'simple-import-sort/imports': [
28+
'warn',
29+
{
30+
groups: [
31+
['^@?\\w'],
32+
['^.*\\u0000$'],
33+
['^'],
34+
['^\\.'],
35+
],
36+
},
37+
],
38+
'simple-import-sort/exports': 'warn',
39+
'object-curly-spacing': ['error', 'always'],
40+
quotes: ['warn', 'single'],
41+
'func-style': ['warn', 'declaration'],
42+
},
43+
},
44+
];

package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -43,29 +43,29 @@
4343
"build:types": "tsc --emitDeclarationOnly --outDir dist/types",
4444
"clean": "rm -rf dist",
4545
"generate:sdk": "node ./generate-models.js && yarn build",
46-
"lint": "eslint --ext .ts .",
46+
"lint": "eslint .",
4747
"test": "jest"
4848
},
4949
"dependencies": {
50-
"axios": "^1.12.2"
50+
"axios": "^1.14.0"
5151
},
5252
"devDependencies": {
53-
"@jest/globals": "^30.1.2",
53+
"@jest/globals": "^30.3.0",
5454
"@types/jest": "^30.0.0",
5555
"@types/node": "^24.4.0",
56-
"@typescript-eslint/eslint-plugin": "^8.43.0",
57-
"@typescript-eslint/parser": "^8.43.0",
56+
"@typescript-eslint/eslint-plugin": "^8.58.0",
57+
"@typescript-eslint/parser": "^8.58.0",
5858
"axios-mock-adapter": "^2.1.0",
5959
"eslint": "9.35.0",
6060
"eslint-plugin-import": "2.32.0",
6161
"eslint-plugin-simple-import-sort": "^12.1.1",
62-
"jest": "^30.1.3",
63-
"openapi-typescript-codegen": "^0.29.0",
64-
"ts-jest": "^29.4.1",
65-
"tsup": "^8.5.0",
62+
"jest": "^30.3.0",
63+
"openapi-typescript-codegen": "^0.30.0",
64+
"ts-jest": "^29.4.9",
65+
"tsup": "^8.5.1",
6666
"typescript": "^5.9"
6767
},
68-
"packageManager": "yarn@4.2.2",
68+
"packageManager": "yarn@4.13.0",
6969
"engines": {
7070
"node": ">=18.*"
7171
}

src/__tests__/Doczilla.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ describe('Doczilla', () => {
77
test('it should throw an error if no api key is provided', () => {
88
let error: Error
99
try {
10-
// @ts-expect-error
10+
// @ts-expect-error - testing missing required argument
1111
new Doczilla()
1212
} catch (err) {
1313
error = err

0 commit comments

Comments
 (0)