import js from '@eslint/js';
import tseslint from 'typescript-eslint';

export default tseslint.config(
  js.configs.recommended,
  ...tseslint.configs.recommended,
  {
    rules: {
      // All randomness must flow from SeededRNG streams — determinism is a contract.
      'no-restricted-properties': [
        'error',
        { object: 'Math', property: 'random', message: 'Use SeededRNG streams (docs/CONTRACTS.md §6).' },
      ],
      '@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
    },
  },
);
