@@ -26,11 +26,8 @@ module.exports = {
26
26
27
27
parser : 'babel-eslint' ,
28
28
parserOptions : {
29
- ecmaVersion : 8 ,
29
+ ecmaVersion : 9 ,
30
30
sourceType : 'script' ,
31
- ecmaFeatures : {
32
- experimentalObjectRestSpread : true ,
33
- } ,
34
31
} ,
35
32
36
33
// We're stricter than the default config, mostly. We'll override a few rules
@@ -248,36 +245,36 @@ module.exports = {
248
245
'packages/react-server-native-relay/**/*.js' ,
249
246
] ,
250
247
globals : {
251
- nativeFabricUIManager : true ,
248
+ nativeFabricUIManager : 'readonly' ,
252
249
} ,
253
250
} ,
254
251
{
255
252
files : [ 'packages/react-server-dom-webpack/**/*.js' ] ,
256
253
globals : {
257
- __webpack_chunk_load__ : true ,
258
- __webpack_require__ : true ,
254
+ __webpack_chunk_load__ : 'readonly' ,
255
+ __webpack_require__ : 'readonly' ,
259
256
} ,
260
257
} ,
261
258
{
262
259
files : [ 'packages/scheduler/**/*.js' ] ,
263
260
globals : {
264
- TaskController : true ,
261
+ TaskController : 'readonly' ,
265
262
} ,
266
263
} ,
267
264
] ,
268
265
269
266
globals : {
270
- spyOnDev : true ,
271
- spyOnDevAndProd : true ,
272
- spyOnProd : true ,
273
- __EXPERIMENTAL__ : true ,
274
- __EXTENSION__ : true ,
275
- __PROFILE__ : true ,
276
- __TEST__ : true ,
277
- __UMD__ : true ,
278
- __VARIANT__ : true ,
279
- gate : true ,
280
- trustedTypes : true ,
281
- IS_REACT_ACT_ENVIRONMENT : true ,
267
+ spyOnDev : 'readonly' ,
268
+ spyOnDevAndProd : 'readonly' ,
269
+ spyOnProd : 'readonly' ,
270
+ __EXPERIMENTAL__ : 'readonly' ,
271
+ __EXTENSION__ : 'readonly' ,
272
+ __PROFILE__ : 'readonly' ,
273
+ __TEST__ : 'readonly' ,
274
+ __UMD__ : 'readonly' ,
275
+ __VARIANT__ : 'readonly' ,
276
+ gate : 'readonly' ,
277
+ trustedTypes : 'readonly' ,
278
+ IS_REACT_ACT_ENVIRONMENT : 'readonly' ,
282
279
} ,
283
280
} ;
0 commit comments