| 
									
										
										
										
											2022-01-27 15:28:00 +08:00
										 |  |  | const { getESLintConfig } = require('@applint/spec'); | 
					
						
							| 
									
										
										
										
											2022-01-27 14:32:38 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | const commonRules = { | 
					
						
							|  |  |  |   'react/jsx-filename-extension': 0, | 
					
						
							| 
									
										
										
										
											2022-09-28 16:00:42 +08:00
										 |  |  |   'react/no-unknown-property': 0, | 
					
						
							| 
									
										
										
										
											2022-01-27 14:32:38 +08:00
										 |  |  |   'no-underscore-dangle': 0, | 
					
						
							|  |  |  |   'class-methods-use-this': 0, | 
					
						
							|  |  |  |   'no-param-reassign': 0, | 
					
						
							|  |  |  |   'no-console': 0, | 
					
						
							|  |  |  |   'comma-dangle': 0, | 
					
						
							|  |  |  |   'prefer-object-spread': 0, | 
					
						
							|  |  |  |   'import/named': 0, | 
					
						
							|  |  |  |   indent: 0, | 
					
						
							|  |  |  |   'react/react-in-jsx-scope': 0, | 
					
						
							|  |  |  |   'jsx-a11y/html-has-lang': 0, | 
					
						
							|  |  |  |   'react/static-property-placement': 0, | 
					
						
							|  |  |  |   'no-multiple-empty-lines': 1, | 
					
						
							| 
									
										
										
										
											2022-01-27 15:28:00 +08:00
										 |  |  |   'react/jsx-no-bind': 0, | 
					
						
							| 
									
										
										
										
											2022-03-11 16:05:58 +08:00
										 |  |  |   'import/order': 1, | 
					
						
							| 
									
										
										
										
											2022-09-07 14:49:54 +08:00
										 |  |  |   'no-multi-assign': 0, | 
					
						
							| 
									
										
										
										
											2022-01-27 14:32:38 +08:00
										 |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-01-27 15:28:00 +08:00
										 |  |  | module.exports = getESLintConfig('react-ts', { | 
					
						
							| 
									
										
										
										
											2022-01-27 14:32:38 +08:00
										 |  |  |   rules: { | 
					
						
							|  |  |  |     ...commonRules, | 
					
						
							|  |  |  |     '@typescript-eslint/ban-types': 0, | 
					
						
							|  |  |  |     '@typescript-eslint/ban-ts-comment': 0, | 
					
						
							|  |  |  |     '@typescript-eslint/no-explicit-any': 0, | 
					
						
							|  |  |  |     '@typescript-eslint/interface-name-prefix': 0, | 
					
						
							|  |  |  |     '@typescript-eslint/explicit-function-return-type': 0, | 
					
						
							|  |  |  |     '@typescript-eslint/no-var-requires': 0, | 
					
						
							|  |  |  |     '@typescript-eslint/explicit-module-boundary-types': 0, | 
					
						
							| 
									
										
										
										
											2022-01-27 15:28:00 +08:00
										 |  |  |     '@typescript-eslint/prefer-for-of': 0, | 
					
						
							|  |  |  |     'id-length': 0, | 
					
						
							| 
									
										
										
										
											2022-01-27 14:32:38 +08:00
										 |  |  |     'no-use-before-define': 0, | 
					
						
							|  |  |  |     'no-unused-vars': 0, | 
					
						
							| 
									
										
										
										
											2022-09-07 14:49:54 +08:00
										 |  |  |     '@typescript-eslint/no-unused-vars': ['warn', { | 
					
						
							|  |  |  |       varsIgnorePattern: '[iI]gnored|createElement', | 
					
						
							|  |  |  |     }], | 
					
						
							| 
									
										
										
										
											2022-01-27 14:32:38 +08:00
										 |  |  |     '@typescript-eslint/ban-ts-ignore': 0, | 
					
						
							| 
									
										
										
										
											2022-03-11 13:34:21 +08:00
										 |  |  |     '@typescript-eslint/no-confusing-void-expression': 0, | 
					
						
							|  |  |  |     '@typescript-eslint/promise-function-async': 0, | 
					
						
							|  |  |  |     '@typescript-eslint/no-unnecessary-type-assertion': 0, | 
					
						
							|  |  |  |     '@typescript-eslint/non-nullable-type-assertion-style': 0, | 
					
						
							|  |  |  |     '@typescript-eslint/no-unnecessary-type-arguments': 0, | 
					
						
							|  |  |  |     '@typescript-eslint/await-thenable': 0, | 
					
						
							|  |  |  |     '@typescript-eslint/prefer-nullish-coalescing': 0, | 
					
						
							| 
									
										
										
										
											2022-06-09 15:11:27 +08:00
										 |  |  |     '@typescript-eslint/consistent-type-imports': 2, | 
					
						
							| 
									
										
										
										
											2022-03-11 13:34:21 +08:00
										 |  |  |   }, | 
					
						
							|  |  |  |   parserOptions: { | 
					
						
							|  |  |  |     project: [], | 
					
						
							|  |  |  |     createDefaultProgram: false, | 
					
						
							| 
									
										
										
										
											2022-01-27 14:32:38 +08:00
										 |  |  |   }, | 
					
						
							| 
									
										
										
										
											2022-01-27 15:28:00 +08:00
										 |  |  | }); |