2024-06-24 00:20:10 +03:00
|
|
|
{{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',
|
2024-09-27 14:35:17 +03:00
|
|
|
'antfu/no-top-level-await': 'off',
|
2024-06-24 00:20:10 +03:00
|
|
|
},
|
|
|
|
})
|