mirror of https://github.com/ghostfolio/ghostfolio
				
				
			
			You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							63 lines
						
					
					
						
							1.3 KiB
						
					
					
				
			
		
		
		
			
			
			
		
		
	
	
							63 lines
						
					
					
						
							1.3 KiB
						
					
					
				| const baseConfig = require('../../eslint.config.cjs'); | |
| const angularEslintPlugin = require('@angular-eslint/eslint-plugin'); | |
| const typescriptEslintPlugin = require('@typescript-eslint/eslint-plugin'); | |
| 
 | |
| module.exports = [ | |
|   { | |
|     ignores: ['**/dist'] | |
|   }, | |
|   ...baseConfig, | |
|   { | |
|     plugins: { | |
|       '@angular-eslint': angularEslintPlugin, | |
|       '@typescript-eslint': typescriptEslintPlugin | |
|     } | |
|   }, | |
|   { | |
|     rules: { | |
|       '@angular-eslint/component-selector': [ | |
|         'error', | |
|         { | |
|           type: 'element', | |
|           prefix: 'gf', | |
|           style: 'kebab-case' | |
|         } | |
|       ], | |
|       '@angular-eslint/directive-selector': [ | |
|         'error', | |
|         { | |
|           type: 'attribute', | |
|           prefix: 'gf', | |
|           style: 'camelCase' | |
|         } | |
|       ], | |
|       '@angular-eslint/prefer-inject': 'off' | |
|     } | |
|   }, | |
|   { | |
|     files: ['**/*.ts', '**/*.tsx', '**/*.js', '**/*.jsx'], | |
|     // Override or add rules here | |
|     rules: {}, | |
|     languageOptions: { | |
|       parserOptions: { | |
|         project: ['apps/client/tsconfig.*?.json'] | |
|       } | |
|     } | |
|   }, | |
|   { | |
|     files: ['**/*.ts', '**/*.tsx'], | |
|     // Override or add rules here | |
|     rules: {} | |
|   }, | |
|   { | |
|     files: ['**/*.js', '**/*.jsx'], | |
|     // Override or add rules here | |
|     rules: {} | |
|   }, | |
|   { | |
|     files: ['**/*.ts'], | |
|     rules: { | |
|       '@angular-eslint/prefer-standalone': 'off' | |
|     } | |
|   } | |
| ];
 | |
| 
 |