kopia lustrzana https://github.com/transitive-bullshit/chatgpt-api
44 wiersze
790 B
JavaScript
44 wiersze
790 B
JavaScript
import { config } from '@fisch0920/config/eslint'
|
|
import drizzle from 'eslint-plugin-drizzle'
|
|
|
|
export default [
|
|
...config,
|
|
{
|
|
ignores: [
|
|
'**/out/**',
|
|
'packages/types/src/openapi.d.ts',
|
|
'apps/gateway/src/worker.d.ts'
|
|
]
|
|
},
|
|
{
|
|
files: ['**/*.ts', '**/*.tsx'],
|
|
rules: {
|
|
'no-console': 'error',
|
|
'unicorn/no-array-reduce': 'off'
|
|
}
|
|
},
|
|
{
|
|
files: ['packages/cli/src/**/*.ts'],
|
|
rules: {
|
|
'no-console': 'off',
|
|
'no-process-env': 'off',
|
|
'unicorn/no-process-exit': 'off'
|
|
}
|
|
},
|
|
{
|
|
files: ['apps/gateway/src/**/*.ts'],
|
|
rules: {
|
|
'no-console': 'off'
|
|
}
|
|
},
|
|
{
|
|
files: ['apps/api/src/**/*.ts'],
|
|
plugins: {
|
|
drizzle
|
|
},
|
|
rules: {
|
|
...drizzle.configs.recommended.rules
|
|
}
|
|
}
|
|
]
|