'use strict';

module.exports = {
  extends: ['./react'].map(require.resolve),

  settings: {
    'import/resolver': {
      node: {
        extensions: ['.mjs', '.js', '.json', '.ts', '.tsx'],
      },
    },
  },

  rules: {
    'import/extensions': ['error', { extensions: ['ts', 'tsx', 'js'] }],
    'react/jsx-filename-extension': ['error', { extensions: ['tsx'] }],
  },
};

@@ -364,16 +364,115 @@
 sx'%5D %7D%5D,
+%0A%0A    // override js config for babel plugin react-require%0A    'react/react-in-jsx-scope': 'error',
 %0A  %7D,%0A%7D;

add react/react-in-jsx-scope in typescript preset