| 12345678910111213141516171819202122232425 |
- // @ts-check
- import reactPlugin from 'eslint-plugin-react';
- import reactHooks from 'eslint-plugin-react-hooks';
- import base from './base.js';
- /** @type {import('eslint').Linter.Config[]} */
- export default [
- ...base,
- {
- files: ['**/*.{ts,tsx,jsx}'],
- plugins: {
- react: reactPlugin,
- 'react-hooks': reactHooks,
- },
- settings: {
- react: { version: 'detect' },
- },
- rules: {
- ...reactPlugin.configs.recommended.rules,
- ...reactHooks.configs.recommended.rules,
- 'react/react-in-jsx-scope': 'off',
- 'react/prop-types': 'off',
- },
- },
- ];
|