import { TSESLint } from '@typescript-eslint/utils';
import { rule, RULE_NAME } from './no-navigate-prefer-link';
const ruleTester = new TSESLint.RuleTester({
parser: require.resolve('@typescript-eslint/parser'),
});
ruleTester.run(RULE_NAME, rule, {
valid: [
{
code: 'if(someVar) { navigate("/"); }',
},
{
code: '',
parserOptions: {
ecmaFeatures: {
jsx: true,
},
},
},
{
code: '