22 lines
746 B
JavaScript
22 lines
746 B
JavaScript
import antfu from '@antfu/eslint-config'
|
|
|
|
export default antfu({
|
|
ignores: ['assets/'],
|
|
typescript: true,
|
|
rules: {
|
|
'curly': ['error', 'multi-line'],
|
|
'style/brace-style': ['error', '1tbs', { allowSingleLine: true }],
|
|
'n/prefer-global/buffer': 'off',
|
|
'no-restricted-globals': ['error', 'Buffer', '__dirname', 'require'],
|
|
'style/quotes': ['error', 'single', { avoidEscape: true }],
|
|
'test/consistent-test-it': 'off',
|
|
'test/prefer-lowercase-title': 'off',
|
|
'antfu/if-newline': 'off',
|
|
'style/max-statements-per-line': ['error', { max: 2 }],
|
|
'ts/no-redeclare': 'off',
|
|
'no-alert': 'off',
|
|
'no-console': 'off',
|
|
'node/prefer-global/process': 'off',
|
|
'unused-imports/no-unused-vars': 'off',
|
|
},
|
|
})
|