@mocksmith/eslint-plugin
v0.3.3
Published
ESLint rules for mocksmith scenario files.
Maintainers
Readme
@mocksmith/eslint-plugin
An ESLint rule that keeps mocksmith scenario files declarative: only imports and scenario definitions at the top level, with case constants living next to the test so the mock and the assertions share one constant instead of drifting apart.
npm install --save-dev @mocksmith/eslint-plugin// eslint.config.js
import mocksmith from '@mocksmith/eslint-plugin';
export default [
{
files: ['**/*.scenario.ts'],
plugins: { mocksmith },
rules: { 'mocksmith/scenario-file-purity': 'error' },
},
];License
MIT
