kopia lustrzana https://github.com/transitive-bullshit/chatgpt-api
34 wiersze
644 B
JavaScript
34 wiersze
644 B
JavaScript
import { config } from '@fisch0920/config/eslint'
|
|
import drizzle from 'eslint-plugin-drizzle'
|
|
|
|
export default [
|
|
...config,
|
|
{
|
|
ignores: ['**/out/**', 'packages/api-client/src/openapi.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/api/src/**/*.ts'],
|
|
plugins: {
|
|
drizzle
|
|
},
|
|
rules: {
|
|
...drizzle.configs.recommended.rules
|
|
}
|
|
}
|
|
]
|