Files
jdt-fish-client/eslint.config.js
2024-10-05 04:22:34 +08:00

41 lines
1.0 KiB
JavaScript

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',
'node/prefer-global/process': 'off',
'node/prefer-global/buffer': 'off',
'antfu/if-newline': 'off',
'style/brace-style': 'off',
'style/operator-linebreak': 'off',
'no-case-declarations': 'off',
'import/order': [
2,
{
'pathGroups': [
{
pattern: '~/**',
group: 'external',
position: 'after',
},
],
'alphabetize': { order: 'asc', caseInsensitive: false },
'newlines-between': 'always-and-inside-groups',
'warnOnUnassignedImports': true,
},
],
},
},
)