We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf6718c commit 830e413Copy full SHA for 830e413
src/createEslintConfig.ts
@@ -16,14 +16,18 @@ export function createEslintConfig({
16
}: CreateEslintConfigArgs): CLIEngine.Options['baseConfig'] {
17
const isReactLibrary = Boolean(getReactVersion(pkg));
18
19
- console.log(isReactLibrary);
20
-
21
const config = {
22
extends: [
23
'react-app',
24
'prettier/@typescript-eslint',
25
'plugin:prettier/recommended',
26
],
+ settings: {
+ react: {
27
+ // Fix for https://github.com/jaredpalmer/tsdx/issues/279
28
+ version: !isReactLibrary ? '999.999.999' : undefined,
29
+ },
30
31
};
32
33
if (writeFile) {
0 commit comments