chatgpt-api/eslint.config.js

40 wiersze
804 B
JavaScript
Czysty Zwykły widok Historia

2025-04-04 10:53:50 +00:00
import { config } from '@fisch0920/config/eslint'
2025-05-22 17:19:04 +00:00
import drizzle from 'eslint-plugin-drizzle'
2025-04-04 10:53:50 +00:00
export default [
...config,
2025-05-22 17:19:04 +00:00
{
2025-05-28 19:03:42 +00:00
ignores: [
'**/out/**',
2025-05-31 08:41:35 +00:00
'packages/types/src/openapi.d.ts',
'apps/gateway/src/worker.d.ts',
2025-06-04 17:37:57 +00:00
'packages/json-schema/test/json-schema-test-suite.ts',
'apps/gateway/.wrangler'
2025-05-28 19:03:42 +00:00
]
2025-05-22 17:19:04 +00:00
},
{
files: ['**/*.ts', '**/*.tsx'],
rules: {
'no-console': 'error',
'unicorn/no-array-reduce': 'off'
}
2025-05-20 16:28:31 +00:00
},
{
2025-06-02 20:15:33 +00:00
files: ['packages/cli/src/**/*.ts', '**/*.test.ts'],
2025-05-22 17:19:04 +00:00
rules: {
'no-console': 'off',
'no-process-env': 'off',
'unicorn/no-process-exit': 'off'
}
},
{
files: ['apps/api/src/**/*.ts'],
plugins: {
drizzle
},
rules: {
...drizzle.configs.recommended.rules
}
}
]