Strict Check

eslint-config-sc-jest#

This package sets some rules based on the shared config of eslint-plugin-jest.

Usage#

Installation#

1$ npm i -D eslint-config-sc-jest

Setup#

1// eslint.config.mjs
2import eslintConfigSCJest from "eslint-config-sc-jest"
3
4return [
5  [/* other rules for product code */],
6  eslintConfigSCJest.configs.recommended,
7].flat()

Equally

1// eslint.config.mjs
2import eslintConfigSCJest from "eslint-config-sc-jest"
3
4return [
5  [/* other rules for product code */],
6  eslintConfigSCJest.configs.jestPluginRecords,
7  eslintConfigSCJest.configs.customRecord,
8  eslintConfigSCJest.configs.overrideJavascriptRecord, // for javascript project
9  eslintConfigSCJest.configs.overrideTypescriptRecord, // for typescript project
10].flat()