import unusedImports from 'eslint-plugin-unused-imports';
import imports from 'eslint-plugin-import-x';
const baseConfig = {
    plugins: {
        'unused-imports': unusedImports,
        ...imports.flatConfigs.recommended.plugins,
    },
    rules: {
        'dot-notation': 'error',
        eqeqeq: ['error', 'always', { null: 'ignore' }],
        'no-else-return': 'error',
        'no-regex-spaces': 'error',
        'no-useless-computed-key': 'error',
        'no-useless-return': 'error',
        'no-var': 'error',
        'object-shorthand': 'error',
        'prefer-const': 'error',
        'prefer-destructuring': ['error', { array: false }],
        'prefer-object-has-own': 'error',
        'prefer-object-spread': 'error',
        'prefer-template': 'error',
        'sort-imports': ['error', { ignoreDeclarationSort: true }],
        'no-unused-vars': 'off',
        'import-x/no-duplicates': 'error',
        'import-x/order': 'error',
        'unused-imports/no-unused-imports': 'error',
        'unused-imports/no-unused-vars': [
            'warn',
            {
                vars: 'all',
                varsIgnorePattern: '^_[^_]',
                args: 'after-used',
                argsIgnorePattern: '^_[^_]',
            },
        ],
    },
};
export default baseConfig;
