Updated eslint config & prepared ts config
This commit is contained in:
		| @@ -1,18 +1,14 @@ | |||||||
| { | { | ||||||
| 	"root": true, | 	"root": true, | ||||||
| 	"parserOptions": { | 	"parserOptions": { | ||||||
| 		// "parser": "@typescript-eslint/parser", |  | ||||||
| 		"sourceType": "module" | 		"sourceType": "module" | ||||||
| 	}, | 	}, | ||||||
| 	// "plugins": ["@typescript-eslint"], |  | ||||||
| 	"extends": [ | 	"extends": [ | ||||||
| 		"eslint-config-airbnb-base", | 		"eslint-config-airbnb-base", | ||||||
| 		// "plugin:@typescript-eslint/recommended", |  | ||||||
| 		"plugin:prettier/recommended" | 		"plugin:prettier/recommended" | ||||||
| 	], | 	], | ||||||
| 	"rules": { | 	"rules": { | ||||||
| 		"no-underscore-dangle": "off", | 		"no-underscore-dangle": "off", | ||||||
| 		"no-shadow": "off" | 		"no-shadow": "off" | ||||||
| 		// "@typescript-eslint/no-shadow": ["error"] |  | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
							
								
								
									
										18
									
								
								.eslintrc.ts.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								.eslintrc.ts.json
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,18 @@ | |||||||
|  | { | ||||||
|  | 	"root": true, | ||||||
|  | 	"parserOptions": { | ||||||
|  | 		"parser": "@typescript-eslint/parser", | ||||||
|  | 		"sourceType": "module" | ||||||
|  | 	}, | ||||||
|  | 	"plugins": ["@typescript-eslint"], | ||||||
|  | 	"extends": [ | ||||||
|  | 		"eslint-config-airbnb-base", | ||||||
|  | 		"plugin:@typescript-eslint/recommended", | ||||||
|  | 		"plugin:prettier/recommended" | ||||||
|  | 	], | ||||||
|  | 	"rules": { | ||||||
|  | 		"no-underscore-dangle": "off", | ||||||
|  | 		"no-shadow": "off", | ||||||
|  | 		"@typescript-eslint/no-shadow": ["error"] | ||||||
|  | 	} | ||||||
|  | } | ||||||
							
								
								
									
										10
									
								
								package.json
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								package.json
									
									
									
									
									
								
							| @@ -44,15 +44,17 @@ | |||||||
|     "@types/node": "^12.6.8", |     "@types/node": "^12.6.8", | ||||||
|     "coveralls": "^3.0.5", |     "coveralls": "^3.0.5", | ||||||
|     "documentation": "^12.0.3", |     "documentation": "^12.0.3", | ||||||
|     "eslint": "^4.9.0", |     "eslint": "^8.22.0", | ||||||
|     "eslint-config-airbnb-base": "^12.1.0", |     "eslint-config-airbnb-base": "^15.0.0", | ||||||
|  |     "eslint-config-prettier": "^8.5.0", | ||||||
|     "eslint-plugin-import": "^2.8.0", |     "eslint-plugin-import": "^2.8.0", | ||||||
|  |     "eslint-plugin-prettier": "^4.2.1", | ||||||
|     "istanbul": "^0.4.5", |     "istanbul": "^0.4.5", | ||||||
|     "mocha": "^6.2.0", |     "mocha": "^6.2.0", | ||||||
|     "mocha-lcov-reporter": "^1.3.0", |     "mocha-lcov-reporter": "^1.3.0", | ||||||
|     "nyc": "^11.6.0", |     "nyc": "^11.6.0", | ||||||
|  |     "prettier": "^2.7.1", | ||||||
|     "supertest": "^3.0.0", |     "supertest": "^3.0.0", | ||||||
|     "supertest-as-promised": "^4.0.1", |     "supertest-as-promised": "^4.0.1" | ||||||
|     "typescript": "^3.5.3" |  | ||||||
|   } |   } | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user