nest-trpc-prisma-starter/apps/server/eslint.config.js

39 lines
877 B
JavaScript
Raw Normal View History

2024-04-25 18:12:44 +00:00
const antfu = require('@antfu/eslint-config').default
module.exports = antfu({
stylistic: {
indent: 2,
quotes: 'single',
},
typescript: true,
}, {
rules: {
'no-console': 'off',
'unused-imports/no-unused-vars': 'off',
'unused-imports/no-unused-imports': 2,
'ts/consistent-type-imports': 'off',
'ts/prefer-ts-expect-error': 'off',
'node/prefer-global/process': 'off',
'node/prefer-global/buffer': 'off',
'import/order': [
2,
{
'pathGroups': [
{
pattern: '~/**',
group: 'external',
position: 'after',
},
],
'alphabetize': { order: 'asc', caseInsensitive: false },
'newlines-between': 'always-and-inside-groups',
'warnOnUnassignedImports': true,
},
],
'eslint-comments/no-unlimited-disable': 'off',
},
})