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
|
|
|
|
2025-04-21 21:06:55 +00:00
|
|
|
export default [
|
|
|
|
...config,
|
2025-05-22 17:19:04 +00:00
|
|
|
{
|
|
|
|
ignores: ['**/out/**', 'packages/api-client/src/openapi.d.ts']
|
|
|
|
},
|
2025-04-21 21:06:55 +00:00
|
|
|
{
|
|
|
|
files: ['**/*.ts', '**/*.tsx'],
|
|
|
|
rules: {
|
2025-05-18 10:58:51 +00:00
|
|
|
'no-console': 'error',
|
|
|
|
'unicorn/no-array-reduce': 'off'
|
2025-04-21 21:06:55 +00:00
|
|
|
}
|
2025-05-20 16:28:31 +00:00
|
|
|
},
|
|
|
|
{
|
2025-05-22 17:19:04 +00:00
|
|
|
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
|
|
|
|
}
|
2025-04-21 21:06:55 +00:00
|
|
|
}
|
|
|
|
]
|