forked from samchungy/zod-openapi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.js
More file actions
34 lines (32 loc) · 770 Bytes
/
eslint.config.js
File metadata and controls
34 lines (32 loc) · 770 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import skuba from 'eslint-config-skuba';
import importZod from 'eslint-plugin-import-zod';
import zodOpenapi from 'eslint-plugin-zod-openapi';
export default [
{
ignores: [
'src/openapi3-ts/*',
'**/crackle.config.ts',
'api',
'extend',
'packages/openapi3-ts/src/*',
'packages/openapi3-ts/lib-*',
],
},
...skuba,
...importZod.configs.recommended,
{
plugins: {
'zod-openapi': zodOpenapi,
},
},
{
files: ['examples/**/*/types/**/*.ts'],
rules: {
'zod-openapi/require-meta': 'error',
'zod-openapi/require-comment': 'error',
'zod-openapi/require-example': 'error',
'zod-openapi/prefer-meta-last': 'error',
'zod-openapi/prefer-zod-default': 'error',
},
},
];