chatgpt-api/eslint.config.js

53 wiersze
1.0 KiB
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/**',
'**/dist/**',
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',
'apps/web/src/*.gen.ts'
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-10 05:01:46 +00:00
files: [
'packages/cli/src/**/*.ts',
'**/*.test.ts',
'packages/fixtures/valid/**/*.ts',
'examples/**/*.ts'
2025-06-10 05:01:46 +00:00
],
2025-05-22 17:19:04 +00:00
rules: {
'no-console': 'off',
'no-process-env': 'off',
'unicorn/no-process-exit': 'off'
}
},
{
files: ['apps/e2e/**/*.ts', 'apps/web/src/**/*.{tsx,ts}'],
rules: {
'no-console': 'off'
}
},
2025-05-22 17:19:04 +00:00
{
files: ['apps/api/src/**/*.ts'],
plugins: {
drizzle
},
rules: {
...drizzle.configs.recommended.rules
}
}
]