Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .eslintignore

This file was deleted.

94 changes: 0 additions & 94 deletions .eslintrc.json

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ jobs:
os:
- "ubuntu-latest"
node:
- "24"
- "22"
- "20"
- "18"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v6
Expand Down
940 changes: 940 additions & 0 deletions .yarn/releases/yarn-4.13.0.cjs

Large diffs are not rendered by default.

894 changes: 0 additions & 894 deletions .yarn/releases/yarn-4.2.2.cjs

This file was deleted.

2 changes: 1 addition & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-4.2.2.cjs
yarnPath: .yarn/releases/yarn-4.13.0.cjs
44 changes: 44 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
import tsPlugin from '@typescript-eslint/eslint-plugin';
import tsParser from '@typescript-eslint/parser';
import simpleImportSort from 'eslint-plugin-simple-import-sort';

export default [
{
ignores: ['node_modules/**', 'dist/**', '*.js', 'src/generated/**'],
},
...tsPlugin.configs['flat/recommended'],
{
files: ['**/*.ts'],
plugins: {
'simple-import-sort': simpleImportSort,
},
languageOptions: {
parser: tsParser,
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module',
},
},
rules: {
'no-unneeded-ternary': 'error',
'no-nested-ternary': 'error',
'multiline-ternary': ['error', 'always-multiline'],
'operator-linebreak': ['error', 'before'],
'simple-import-sort/imports': [
'warn',
{
groups: [
['^@?\\w'],
['^.*\\u0000$'],
['^'],
['^\\.'],
],
},
],
'simple-import-sort/exports': 'warn',
'object-curly-spacing': ['error', 'always'],
quotes: ['warn', 'single'],
'func-style': ['warn', 'declaration'],
},
},
];
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,29 +43,29 @@
"build:types": "tsc --emitDeclarationOnly --outDir dist/types",
"clean": "rm -rf dist",
"generate:sdk": "node ./generate-models.js && yarn build",
"lint": "eslint --ext .ts .",
"lint": "eslint .",
"test": "jest"
},
"dependencies": {
"axios": "^1.12.2"
"axios": "^1.14.0"
},
"devDependencies": {
"@jest/globals": "^30.1.2",
"@jest/globals": "^30.3.0",
"@types/jest": "^30.0.0",
"@types/node": "^24.4.0",
"@typescript-eslint/eslint-plugin": "^8.43.0",
"@typescript-eslint/parser": "^8.43.0",
"@typescript-eslint/eslint-plugin": "^8.58.0",
"@typescript-eslint/parser": "^8.58.0",
"axios-mock-adapter": "^2.1.0",
"eslint": "9.35.0",
"eslint-plugin-import": "2.32.0",
"eslint-plugin-simple-import-sort": "^12.1.1",
"jest": "^30.1.3",
"openapi-typescript-codegen": "^0.29.0",
"ts-jest": "^29.4.1",
"tsup": "^8.5.0",
"jest": "^30.3.0",
"openapi-typescript-codegen": "^0.30.0",
"ts-jest": "^29.4.9",
"tsup": "^8.5.1",
"typescript": "^5.9"
},
"packageManager": "yarn@4.2.2",
"packageManager": "yarn@4.13.0",
"engines": {
"node": ">=18.*"
}
Expand Down
2 changes: 1 addition & 1 deletion src/__tests__/Doczilla.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ describe('Doczilla', () => {
test('it should throw an error if no api key is provided', () => {
let error: Error
try {
// @ts-expect-error
// @ts-expect-error - testing missing required argument
new Doczilla()
} catch (err) {
error = err
Expand Down
Loading