newsuk/times-components

ESLint unrequired curlies rule is not working in test folders

colincclark opened this issue · 0 comments

Do you want to request a feature or report a bug?

bug

What is the current behaviour?

Unrequired curlies should be flagged in the linter, even in the TC packages __tests__ directories

If the current behaviour is a bug, please provide the steps to reproduce.

test https://eslint.org/docs/rules/curly in the test folder of any package.

What is the expected behaviour?

export default () => {
  iterator(exampleTests);
}

this should fail the linter