@@ -26,11 +26,8 @@ module.exports = {
2626
2727 parser : 'babel-eslint' ,
2828 parserOptions : {
29- ecmaVersion : 8 ,
29+ ecmaVersion : 9 ,
3030 sourceType : 'script' ,
31- ecmaFeatures : {
32- experimentalObjectRestSpread : true ,
33- } ,
3431 } ,
3532
3633 // We're stricter than the default config, mostly. We'll override a few rules
@@ -248,36 +245,36 @@ module.exports = {
248245 'packages/react-server-native-relay/**/*.js' ,
249246 ] ,
250247 globals : {
251- nativeFabricUIManager : true ,
248+ nativeFabricUIManager : 'readonly' ,
252249 } ,
253250 } ,
254251 {
255252 files : [ 'packages/react-server-dom-webpack/**/*.js' ] ,
256253 globals : {
257- __webpack_chunk_load__ : true ,
258- __webpack_require__ : true ,
254+ __webpack_chunk_load__ : 'readonly' ,
255+ __webpack_require__ : 'readonly' ,
259256 } ,
260257 } ,
261258 {
262259 files : [ 'packages/scheduler/**/*.js' ] ,
263260 globals : {
264- TaskController : true ,
261+ TaskController : 'readonly' ,
265262 } ,
266263 } ,
267264 ] ,
268265
269266 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' ,
282279 } ,
283280} ;
0 commit comments