"extends": ["eslint:recommended", "plugin:react/recommended", "plugin:prettier/recommended"]
// .esltintrc.js (for typescript projects)
// eslint-disable-next-line no-undef
module.exports = {
env: {
browser: true,
es2021: true,
jest: true
},
extends: ['eslint:recommended', 'plugin:react/recommended', 'plugin:react/jsx-runtime'],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: {
jsx: true
},
ecmaVersion: 'latest',
sourceType: 'module'
},
plugins: ['react', '@typescript-eslint'],
rules: {
'react/react-in-jsx-scope': 'off',
'react/jsx-uses-react': 'error',
'react/jsx-uses-vars': 'error',
}
};