eslint
This commit is contained in:
		
							parent
							
								
									e1450397ab
								
							
						
					
					
						commit
						828d74dad9
					
				
							
								
								
									
										31
									
								
								.eslintrc.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										31
									
								
								.eslintrc.yaml
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,31 @@
 | 
				
			|||||||
 | 
					env:
 | 
				
			||||||
 | 
					  node: true
 | 
				
			||||||
 | 
					  es6: true
 | 
				
			||||||
 | 
					  es2019: true
 | 
				
			||||||
 | 
					extends:
 | 
				
			||||||
 | 
					  - 'eslint:recommended'
 | 
				
			||||||
 | 
					  - 'plugin:@typescript-eslint/recommended'
 | 
				
			||||||
 | 
					#  - 'prettier'
 | 
				
			||||||
 | 
					parser: '@typescript-eslint/parser'
 | 
				
			||||||
 | 
					parserOptions:
 | 
				
			||||||
 | 
					  ecmaVersion: '2019'
 | 
				
			||||||
 | 
					  sourceType: 'script'
 | 
				
			||||||
 | 
					plugins:
 | 
				
			||||||
 | 
					  - '@typescript-eslint'
 | 
				
			||||||
 | 
					ignorePatterns:
 | 
				
			||||||
 | 
					  - 'node_modules'
 | 
				
			||||||
 | 
					rules: {
 | 
				
			||||||
 | 
					  '@typescript-eslint/no-explicit-any': 'off',
 | 
				
			||||||
 | 
					  '@typescript-eslint/no-unused-vars': [
 | 
				
			||||||
 | 
					    'warn',
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					      "argsIgnorePattern": '^_',
 | 
				
			||||||
 | 
					      "varsIgnorePattern": '^_',
 | 
				
			||||||
 | 
					      "caughtErrorsIgnorePattern": '^_'
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					  ],
 | 
				
			||||||
 | 
					  '@typescript-eslint/ban-ts-comment': 'off',
 | 
				
			||||||
 | 
					  '@typescript-eslint/ban-types': 'off',
 | 
				
			||||||
 | 
					  'consistent-return': 'warn',
 | 
				
			||||||
 | 
					  'no-empty': 'off',
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										15
									
								
								package.json
									
									
									
									
									
								
							
							
						
						
									
										15
									
								
								package.json
									
									
									
									
									
								
							@ -2,18 +2,25 @@
 | 
				
			|||||||
  "private": true,
 | 
					  "private": true,
 | 
				
			||||||
  "scripts": {
 | 
					  "scripts": {
 | 
				
			||||||
    "publish": "pnpm build && lerna publish --force-publish",
 | 
					    "publish": "pnpm build && lerna publish --force-publish",
 | 
				
			||||||
    "build": "lerna run build"
 | 
					    "build": "lerna run build",
 | 
				
			||||||
 | 
					    "lint": "eslint --c .eslintrc.yaml --ext .ts client/ server/ shared-types/"
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
  "dependencies": {
 | 
					  "dependencies": {
 | 
				
			||||||
 | 
					    "@microsoft/api-extractor": "^7.47.0",
 | 
				
			||||||
    "@ragempcommunity/types-cef": "^2.1.8",
 | 
					    "@ragempcommunity/types-cef": "^2.1.8",
 | 
				
			||||||
    "@ragempcommunity/types-client": "^2.1.8",
 | 
					    "@ragempcommunity/types-client": "^2.1.8",
 | 
				
			||||||
    "@ragempcommunity/types-server": "^2.1.8",
 | 
					    "@ragempcommunity/types-server": "^2.1.8",
 | 
				
			||||||
    "@microsoft/api-extractor": "^7.47.0",
 | 
					    "@typescript-eslint/eslint-plugin": "^7.13.0",
 | 
				
			||||||
    "tsup": "^8.1.0",
 | 
					    "@typescript-eslint/parser": "^7.13.0",
 | 
				
			||||||
 | 
					    "eslint": "^8.56.0",
 | 
				
			||||||
    "lerna": "^8.1.3",
 | 
					    "lerna": "^8.1.3",
 | 
				
			||||||
    "prettier": "^3.3.1",
 | 
					    "prettier": "^3.3.1",
 | 
				
			||||||
    "rage-rpc": "^0.4.0",
 | 
					    "rage-rpc": "^0.4.0",
 | 
				
			||||||
 | 
					    "tsup": "^8.1.0",
 | 
				
			||||||
    "typescript": "^5.4.5"
 | 
					    "typescript": "^5.4.5"
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
  "type": "module"
 | 
					  "type": "module",
 | 
				
			||||||
 | 
					  "devDependencies": {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										13417
									
								
								pnpm-lock.yaml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										13417
									
								
								pnpm-lock.yaml
									
									
									
										generated
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
		Loading…
	
		Reference in New Issue
	
	Block a user