Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow single-line template literals without placeholders in test files
Summary: Our ESLint configuration currently disallows template literals that can be expressed using plain string syntax (with single quotes). Jest's inline snapshots feature sometimes produces such template literals. This not only adds unnecessary friction from the linter, but can break subsequent snapshot updates in a test file (after accepting the ESLint autofix). This conflict between Jest and ESLint is a known issue (jestjs/jest#10164) with no upstream fix. Here we relax the linter's settings to allow all template literals in test files. Ideally we could allow them *only* in inline snapshots, but this is a reasonable approximation. Changelog: [Internal] Reviewed By: MichaReiser Differential Revision: D28120785 fbshipit-source-id: c6c6c0ab8a3b8aca14df06f430b777cef42cd554
- Loading branch information