2024-08-03 06:30:05 +03:00
|
|
|
import antfu from '@antfu/eslint-config'
|
|
|
|
|
|
|
|
export default antfu({
|
|
|
|
stylistic: {
|
|
|
|
indent: 4,
|
|
|
|
},
|
|
|
|
typescript: true,
|
|
|
|
astro: true,
|
|
|
|
solid: true,
|
2025-01-04 02:50:49 +03:00
|
|
|
yaml: false,
|
2024-08-03 06:30:05 +03:00
|
|
|
rules: {
|
|
|
|
'curly': ['error', 'multi-line'],
|
|
|
|
'style/brace-style': ['error', '1tbs', { allowSingleLine: true }],
|
|
|
|
'n/prefer-global/buffer': 'off',
|
|
|
|
'style/quotes': ['error', 'single', { avoidEscape: true }],
|
|
|
|
'test/consistent-test-it': 'off',
|
|
|
|
'test/prefer-lowercase-title': 'off',
|
|
|
|
'import/order': ['error', {
|
|
|
|
'newlines-between': 'always',
|
|
|
|
'pathGroups': [
|
|
|
|
{
|
|
|
|
pattern: '~/**',
|
|
|
|
group: 'parent',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
'antfu/if-newline': 'off',
|
|
|
|
'style/max-statements-per-line': ['error', { max: 2 }],
|
|
|
|
'ts/no-redeclare': 'off',
|
|
|
|
'node/prefer-global/process': 'off',
|
|
|
|
},
|
|
|
|
})
|