forked from mirrors/gecko-dev
		
	Bug 1812098 - Enable the builtinGlobals option for ESLint no-shadow rule on .mjs files. r=Gijs
.sys.mjs will be handled in a future dependency of bug 1575506. Differential Revision: https://phabricator.services.mozilla.com/D169464
This commit is contained in:
		
							parent
							
								
									80295c5a70
								
							
						
					
					
						commit
						e8664f62d4
					
				
					 2 changed files with 7 additions and 1 deletions
				
			
		|  | @ -84,6 +84,12 @@ module.exports = { | ||||||
|         browser: false, |         browser: false, | ||||||
|       }, |       }, | ||||||
|     }, |     }, | ||||||
|  |     { | ||||||
|  |       files: ["browser/components/storybook/**"], | ||||||
|  |       env: { | ||||||
|  |         "mozilla/privileged": false, | ||||||
|  |       }, | ||||||
|  |     }, | ||||||
|     { |     { | ||||||
|       files: ["*.mjs"], |       files: ["*.mjs"], | ||||||
|       rules: { |       rules: { | ||||||
|  |  | ||||||
|  | @ -72,7 +72,7 @@ module.exports = { | ||||||
|       rules: { |       rules: { | ||||||
|         "mozilla/reject-import-system-module-from-non-system": "error", |         "mozilla/reject-import-system-module-from-non-system": "error", | ||||||
|         "mozilla/reject-lazy-imports-into-globals": "error", |         "mozilla/reject-lazy-imports-into-globals": "error", | ||||||
|         "no-shadow": "error", |         "no-shadow": ["error", { allow: ["event"], builtinGlobals: true }], | ||||||
|       }, |       }, | ||||||
|     }, |     }, | ||||||
|     { |     { | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue
	
	 Mark Banner
						Mark Banner