kopia lustrzana https://github.com/transitive-bullshit/chatgpt-api
53 wiersze
1.0 KiB
JavaScript
53 wiersze
1.0 KiB
JavaScript
import { config } from '@fisch0920/config/eslint'
|
|
import drizzle from 'eslint-plugin-drizzle'
|
|
|
|
export default [
|
|
...config,
|
|
{
|
|
ignores: [
|
|
'**/out/**',
|
|
'**/dist/**',
|
|
'packages/types/src/openapi.d.ts',
|
|
'apps/gateway/src/worker.d.ts',
|
|
'packages/json-schema/test/json-schema-test-suite.ts',
|
|
'apps/gateway/.wrangler',
|
|
'apps/web/src/*.gen.ts'
|
|
]
|
|
},
|
|
{
|
|
files: ['**/*.ts', '**/*.tsx'],
|
|
rules: {
|
|
'no-console': 'error',
|
|
'unicorn/no-array-reduce': 'off'
|
|
}
|
|
},
|
|
{
|
|
files: [
|
|
'packages/cli/src/**/*.ts',
|
|
'**/*.test.ts',
|
|
'packages/fixtures/valid/**/*.ts',
|
|
'examples/**/*.ts'
|
|
],
|
|
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'
|
|
}
|
|
},
|
|
{
|
|
files: ['apps/api/src/**/*.ts'],
|
|
plugins: {
|
|
drizzle
|
|
},
|
|
rules: {
|
|
...drizzle.configs.recommended.rules
|
|
}
|
|
}
|
|
]
|