What problem does this feature solve?
Related discussion: web-infra-dev/rstest#85 (comment)
Most of the rules for jest may also be applicable to Rstest. In a typical repo which using Rstest - web-infra-dev/rsbuild - around 2/3 of the eslint-plugin-jest rules can pass directly.
So I have a proposal: we could share an abstraction layer under both Jest and Rstest lint rules in our repo. Consider Rslint is now porting rules from eslint-plugin-jest actively, we can extract some utils outside first. once the jest rules become stable, we can start building Rstest rules on top of the existing things.
@fansenze @eryue0220
What does the proposed API of configuration look like?
some idea: maybe we could go on use in jest's rules in internal/plugins/jest/rules/*/*.go:
utils.ParseJestFnCall(node, ctx)
internally, that can become a wrapper for the new layer:
testfw.ParseFnCall(node, ctx, testfw.JestProfile)
What problem does this feature solve?
Related discussion: web-infra-dev/rstest#85 (comment)
Most of the rules for jest may also be applicable to Rstest. In a typical repo which using Rstest - web-infra-dev/rsbuild - around 2/3 of the
eslint-plugin-jestrules can pass directly.So I have a proposal: we could share an abstraction layer under both Jest and Rstest lint rules in our repo. Consider Rslint is now porting rules from
eslint-plugin-jestactively, we can extract some utils outside first. once the jest rules become stable, we can start building Rstest rules on top of the existing things.@fansenze @eryue0220
What does the proposed API of configuration look like?
some idea: maybe we could go on use in jest's rules in
internal/plugins/jest/rules/*/*.go:internally, that can become a wrapper for the new layer: