mtcute/packages/create-bot/template/eslint.config.js.hbs
alina sireneva 64da48926f
feat(create-bot): various improvements
- improved bun support
- deno support
- use antfu/eslint-config
- fixed some issues
- removed pre-commit hooks
2024-06-24 17:49:47 +03:00

21 lines
625 B
Handlebars

{{emit_if features.linters}}
import antfu from '@antfu/eslint-config'
export default antfu({
stylistic: {
indent: 4,
},
{{#if features.typescript}}
typescript: true,
{{/if}}
yaml: false,
rules: {
'curly': ['error', 'multi-line'],
'style/brace-style': ['error', '1tbs', { allowSingleLine: true }],
'style/quotes': ['error', 'single', { avoidEscape: true }],
'import/order': ['error', { 'newlines-between': 'always' }],
'antfu/if-newline': 'off',
'style/max-statements-per-line': ['error', { max: 2 }],
'no-console': 'off',
},
})