| module.exports = { |
| env: { |
| browser: true, |
| es6: true, |
| node: true, |
| }, |
| extends: [ |
| 'plugin:@typescript-eslint/recommended', |
| 'plugin:react/recommended', |
| 'plugin:react-hooks/recommended', |
| 'prettier', |
| ], |
| plugins: ['@typescript-eslint', 'react', 'react-hooks', 'prettier'], |
| parser: '@typescript-eslint/parser', |
| parserOptions: { |
| ecmaFeatures: { |
| ecmaVersion: 2020, |
| jsx: true, |
| }, |
| sourceType: 'module', |
| }, |
| settings: { |
| react: { |
| version: 'detect', |
| }, |
| }, |
| rules: { |
| '@typescript-eslint/ban-ts-comment': 'error', |
| '@typescript-eslint/explicit-module-boundary-types': 'off', |
| '@typescript-eslint/no-non-null-assertion': 'off', |
| '@typescript-eslint/no-var-requires': 'off', |
| '@typescript-eslint/no-explicit-any': 'off', |
| '@typescript-eslint/ban-types': 'off', |
| 'prefer-const': 'error', |
| 'no-duplicate-imports': 'off', |
| 'no-console': ['error', { allow: ['warn', 'error'] }], |
| 'no-unused-vars': 'off', |
| 'prefer-rest-params': 'off', |
| '@typescript-eslint/ban-ts-comment': 'off', |
| '@typescript-eslint/no-empty-function': 'off', |
| '@typescript-eslint/no-empty-interface': 'off', |
| '@typescript-eslint/no-unused-vars': [ |
| 'warn', |
| { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }, |
| ], |
| 'react/prop-types': 'off', |
| 'react/react-in-jsx-scope': 'off', |
| 'react/display-name': 'off', |
| 'react/no-unknown-property': 'off', |
| }, |
| } |
|
|