File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
packages/eslint-config/src/config/plugins Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change 1
1
// @see https://github.com/yannickcr/eslint-plugin-react
2
- import { hasAnyDep , pkg , getPackageSubProperty } from "@anolilab/package-json-utils" ;
2
+ import { getPackageSubProperty , hasAnyDep , pkg } from "@anolilab/package-json-utils" ;
3
3
import type { Linter } from "eslint" ;
4
4
import findUp from "find-up" ;
5
5
import { env } from "node:process" ;
@@ -67,11 +67,9 @@ const hasJsxRuntime = (() => {
67
67
return global . hasAnolilabEsLintConfigReactRuntimePath ;
68
68
} ) ( ) ;
69
69
70
- // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment,@typescript-eslint/no-unsafe-call
71
70
let reactVersion : string | undefined = getPackageSubProperty < string > ( "dependencies" ) ( "react" )
72
71
73
72
if ( reactVersion === undefined ) {
74
- // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment,@typescript-eslint/no-unsafe-call
75
73
reactVersion = getPackageSubProperty < string | undefined > ( "devDependencies" ) ( "react" ) ;
76
74
}
77
75
You can’t perform that action at this time.
0 commit comments