[ESCONF-20] loosen rules applied to tests and files recognized as tests Created: 21/Jul/22  Updated: 13/Oct/22  Resolved: 04/Oct/22

Status: Closed
Project: eslint-config-stripes
Components: None
Affects versions: None
Fix versions: 6.3.0

Type: Story Priority: P3
Reporter: Zak Burke Assignee: Zak Burke
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original estimate: Not Specified

Sprint: stripes-force 150, stripes-force 147, stripes-force 148
Story Points: 1
Development Team: Stripes Force
Release: Nolana (R3 2022)
RCA Group: TBD

 Description   

Summary: Some rules are valueless when applied to tests, and not all test files are located in ./tests; eslint should accommodate this.

Details: In BTOG, test files are always located in ./tests; no longer. Jest/RTL are in ./src and may be in a test or tests directory or may end with .test.js. The following rules should be disabled:

  • react/prop-types: we don't care about proptypes in mocks
  • import/prefer-default-export: no strong feelings about forcing single-exports to be default exports

Generated at Thu Feb 08 22:14:48 UTC 2024 using Jira 1001.0.0-SNAPSHOT#100246-sha1:7a5c50119eb0633d306e14180817ddef5e80c75d.