Files
edr-platform/packages/config/eslint-config/react.js
2026-05-12 15:17:16 +03:00

21 lines
453 B
JavaScript

/** @type {import('eslint').Linter.Config} */
module.exports = {
extends: [
'./base.js',
'plugin:react/recommended',
'plugin:react/jsx-runtime',
'plugin:react-hooks/recommended',
],
plugins: ['react-refresh'],
env: {
browser: true,
},
settings: {
react: { version: 'detect' },
},
rules: {
'react-refresh/only-export-components': ['warn', { allowConstantExport: true }],
'react/prop-types': 'off',
},
};