Skip to content

Commit

Permalink
migrate to skuba 9 (#326)
Browse files Browse the repository at this point in the history
  • Loading branch information
samchungy authored Sep 28, 2024
1 parent 196d7ab commit 98a5d8e
Show file tree
Hide file tree
Showing 8 changed files with 929 additions and 801 deletions.
18 changes: 0 additions & 18 deletions .eslintignore

This file was deleted.

16 changes: 0 additions & 16 deletions .eslintrc.js

This file was deleted.

25 changes: 25 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
const skuba = require('eslint-config-skuba');
const zodOpenapi = require('eslint-plugin-zod-openapi');

module.exports = [
{
ignores: ['src/openapi3-ts/*', '**/crackle.config.ts', 'api', 'extend'],
},
...skuba,
{
plugins: {
'zod-openapi': zodOpenapi,
},
},
{
files: ['examples/**/*/types/**/*.ts'],

rules: {
'zod-openapi/require-openapi': 'error',
'zod-openapi/require-comment': 'error',
'zod-openapi/require-example': 'error',
'zod-openapi/prefer-openapi-last': 'error',
'zod-openapi/prefer-zod-default': 'error',
},
},
];
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@
"@crackle/cli": "0.15.5",
"@redocly/cli": "1.25.3",
"@types/node": "^20.3.0",
"eslint-plugin-zod-openapi": "^0.2.0",
"eslint-plugin-zod-openapi": "^1.0.0-beta.0",
"openapi3-ts": "4.4.0",
"skuba": "8.2.1",
"skuba": "9.0.0-main-20240928013837",
"yaml": "2.5.1",
"zod": "3.23.8"
},
Expand All @@ -97,6 +97,6 @@
"entryPoint": "src/index.ts",
"template": "oss-npm-package",
"type": "package",
"version": "8.1.0"
"version": "9.0.0-main-20240928013837"
}
}
Loading

0 comments on commit 98a5d8e

Please sign in to comment.