forked from EVOgeek/Vmeda.Online
		
	MOBILE-3303 lint: Update linting rules
This commit is contained in:
		
							parent
							
								
									b1451ba8e3
								
							
						
					
					
						commit
						b3326f0e97
					
				
							
								
								
									
										23
									
								
								.eslintrc.js
									
									
									
									
									
								
							
							
						
						
									
										23
									
								
								.eslintrc.js
									
									
									
									
									
								
							| @ -109,6 +109,18 @@ module.exports = { | |||||||
|                     'always', |                     'always', | ||||||
|                 ], |                 ], | ||||||
|                 '@typescript-eslint/type-annotation-spacing': 'error', |                 '@typescript-eslint/type-annotation-spacing': 'error', | ||||||
|  |                 '@typescript-eslint/typedef': [ | ||||||
|  |                     'error', | ||||||
|  |                     { | ||||||
|  |                         arrayDestructuring: false, | ||||||
|  |                         arrowParameter: false, | ||||||
|  |                         memberVariableDeclaration: true, | ||||||
|  |                         objectDestructuring: false, | ||||||
|  |                         parameter: true, | ||||||
|  |                         propertyDeclaration: true, | ||||||
|  |                         variableDeclaration: false, | ||||||
|  |                     }, | ||||||
|  |                 ], | ||||||
|                 '@typescript-eslint/unified-signatures': 'error', |                 '@typescript-eslint/unified-signatures': 'error', | ||||||
|                 'header/header': [ |                 'header/header': [ | ||||||
|                     2, |                     2, | ||||||
| @ -131,6 +143,7 @@ module.exports = { | |||||||
|                     1, |                     1, | ||||||
|                 ], |                 ], | ||||||
|                 'arrow-body-style': ['error', 'as-needed'], |                 'arrow-body-style': ['error', 'as-needed'], | ||||||
|  |                 'array-bracket-spacing': ['error', 'never'], | ||||||
|                 'comma-dangle': ['error', 'always-multiline'], |                 'comma-dangle': ['error', 'always-multiline'], | ||||||
|                 'constructor-super': 'error', |                 'constructor-super': 'error', | ||||||
|                 'curly': 'error', |                 'curly': 'error', | ||||||
| @ -156,6 +169,7 @@ module.exports = { | |||||||
|                     'error', |                     'error', | ||||||
|                     'unix', |                     'unix', | ||||||
|                 ], |                 ], | ||||||
|  |                 'lines-between-class-members': ['error', 'always'], | ||||||
|                 'max-len': [ |                 'max-len': [ | ||||||
|                     'error', |                     'error', | ||||||
|                     { |                     { | ||||||
| @ -181,7 +195,16 @@ module.exports = { | |||||||
|                 'no-underscore-dangle': 'error', |                 'no-underscore-dangle': 'error', | ||||||
|                 'no-unused-labels': 'error', |                 'no-unused-labels': 'error', | ||||||
|                 'no-var': 'error', |                 'no-var': 'error', | ||||||
|  |                 'object-curly-spacing': ['error', 'always'], | ||||||
|                 'one-var': ['error', 'never'], |                 'one-var': ['error', 'never'], | ||||||
|  |                 'padded-blocks': [ | ||||||
|  |                     'error', | ||||||
|  |                     { | ||||||
|  |                         classes: 'always', | ||||||
|  |                         blocks: 'never', | ||||||
|  |                         switches: 'never', | ||||||
|  |                     }, | ||||||
|  |                 ], | ||||||
|                 'padding-line-between-statements': [ |                 'padding-line-between-statements': [ | ||||||
|                     'error', |                     'error', | ||||||
|                     { |                     { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user