Skip to content

Commit

Permalink
feat: Do not require react to be in scope for *.test.tsx files
Browse files Browse the repository at this point in the history
  • Loading branch information
joncursi committed Sep 25, 2024
1 parent 69dc983 commit 2297f2c
Show file tree
Hide file tree
Showing 7 changed files with 1,044 additions and 42 deletions.
2 changes: 0 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @prettier
*/

module.exports = require('./index');
2 changes: 0 additions & 2 deletions commitlint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @prettier
*/

module.exports = {
Expand Down
19 changes: 0 additions & 19 deletions examples/ReactComponent.tsx

This file was deleted.

10 changes: 8 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @prettier
*/

module.exports = {
Expand All @@ -26,6 +24,14 @@ module.exports = {
'plugin:react/recommended',
'prettier',
],
overrides: [
{
files: ['./**/*.test.tsx'],
rules: {
'react/react-in-jsx-scope': 'off',
},
},
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2017,
Expand Down
Loading

0 comments on commit 2297f2c

Please sign in to comment.