| module.exports = { |
| env: { |
| browser: true, |
| es2021: true, |
| }, |
| extends: [ |
| 'plugin:react/recommended', |
| 'airbnb', |
| 'airbnb-typescript', |
| ], |
| parser: '@typescript-eslint/parser', |
| parserOptions: { |
| ecmaFeatures: { |
| jsx: true, |
| }, |
| ecmaVersion: 13, |
| sourceType: 'module', |
| project: './tsconfig.json', |
| }, |
| plugins: [ |
| 'react', |
| '@typescript-eslint', |
| ], |
| rules: { |
| 'react/react-in-jsx-scope': 'off', |
| 'react/function-component-definition': [ |
| 'error', |
| { |
| namedComponents: 'arrow-function', |
| }, |
| ], |
| 'no-param-reassign': 'off', |
| 'no-restricted-syntax': 'off', |
| }, |
| }; |