1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.overrides = void 0;
|
4 | const eslint_mdx_1 = require("eslint-mdx");
|
5 | const base_1 = require("./base");
|
6 | let isReactPluginAvailable = false;
|
7 | try {
|
8 | require.resolve('eslint-plugin-react');
|
9 | isReactPluginAvailable = true;
|
10 | }
|
11 | catch (_a) { }
|
12 | exports.overrides = Object.assign(Object.assign({}, base_1.base), { globals: {
|
13 | React: false,
|
14 | }, plugins: (0, eslint_mdx_1.arrayify)(base_1.base.plugins, isReactPluginAvailable ? 'react' : null), rules: {
|
15 | 'react/jsx-no-undef': isReactPluginAvailable
|
16 | ? [
|
17 | 2,
|
18 | {
|
19 | allowGlobals: true,
|
20 | },
|
21 | ]
|
22 | : 0,
|
23 | 'react/react-in-jsx-scope': 0,
|
24 | } });
|
25 |
|
\ | No newline at end of file |