mirror of
				https://gitlab.gnome.org/julianschacher/top-bar-organizer.git
				synced 2025-10-27 15:19:09 +00:00 
			
		
		
		
	Other: Add whitespace rules from GJS Style Guide and fix complaints
Add whitespace rules from GJS Style Guide to ESLint config and fix new complaints. See here for the GJS Style guide whitespace section: https://gjs.guide/guides/gjs/style-guide.html#whitespace
This commit is contained in:
		
							parent
							
								
									0401790fed
								
							
						
					
					
						commit
						8de94d6b01
					
				| @ -20,6 +20,28 @@ rules: | ||||
|   no-unused-vars: | ||||
|     - error | ||||
|     - argsIgnorePattern: "^_" | ||||
|   # Rules from GJS Style Guide regarding whitespace. | ||||
|   # See here: https://gjs.guide/guides/gjs/style-guide.html#whitespace | ||||
|   func-call-spacing: | ||||
|     - error | ||||
|     - never | ||||
|   array-bracket-spacing: | ||||
|     - error | ||||
|     - never | ||||
|   space-before-function-paren: | ||||
|     - error | ||||
|     - never | ||||
|   space-before-blocks: | ||||
|     - error | ||||
|     - always | ||||
|   key-spacing: | ||||
|     - error | ||||
|     - beforeColon: false | ||||
|       afterColon: true | ||||
|       mode: strict | ||||
|   object-curly-spacing: | ||||
|     - error | ||||
|     - always | ||||
| globals: | ||||
|   imports: readonly | ||||
|   log: readonly | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user