/** @type {import("eslint").Linter.Config} */
module.exports = {
    parserOptions: {
        // React启用jsx
        ecmaFeatures: {
            jsx: true,
        },
    },
    globals: {
        React: true,
        JSX: true,
        page: true,
        REACT_APP_ENV: true,
    },
    extends: ['./react-lib'],
    rules: {
        'react-refresh/only-export-components': ['warn', { allowConstantExport: true }],
    },
};
