@@ -15,6 +15,17 @@ export default [
1515 ] ,
1616 } ,
1717 {
18+ settings : {
19+ react : {
20+ pragma : 'React' , // Pragma to use, default to "React"
21+ fragment : 'Fragment' , // Fragment to use (may be a property of <pragma>), default to "Fragment"
22+ version : 'detect' , // React version. "detect" automatically picks the version you have installed.
23+ // You can also use `16.0`, `16.3`, etc, if you want to override the detected value.
24+ // Defaults to the "defaultVersion" setting and warns if missing, and to "detect" in the future
25+ defaultVersion : '18' , // Default React version to use when the version you have installed cannot be detected.
26+ // If not provided, defaults to the latest React version.
27+ } ,
28+ } ,
1829 languageOptions : {
1930 globals : {
2031 ...globals . browser ,
@@ -65,23 +76,6 @@ export default [
6576 project : [ 'tsconfig.json' ] ,
6677 } ,
6778 } ,
68- } ) ) ,
69- ...scwTypescript . map ( config => ( {
70- ...config ,
71- files : [
72- 'packages/changesets-renovate/**/*.ts{x,}' ,
73- 'packages/validate-icu-locales/**/*.ts{x,}' ,
74- '**/__tests__/**/*.ts{x,}' ,
75- ] ,
76-
77- languageOptions : {
78- ecmaVersion : 5 ,
79- sourceType : 'script' ,
80-
81- parserOptions : {
82- project : [ 'tsconfig.json' ] ,
83- } ,
84- } ,
8579
8680 rules : {
8781 ...config . rules ,
@@ -93,7 +87,6 @@ export default [
9387
9488 {
9589 files : [
96- 'packages/jest-helpers/**/*.ts{x,}' ,
9790 '**/__tests__/**/*.ts{x,}' ,
9891 '**/vitest.setup.ts' ,
9992 '**/*.config.ts' ,
0 commit comments