AW-4770 TSLint -> ESLint
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
				
			This commit is contained in:
		
							
								
								
									
										22
									
								
								.eslintrc.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								.eslintrc.js
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,22 @@
 | 
			
		||||
module.exports = {
 | 
			
		||||
    "env": {
 | 
			
		||||
        "browser": true,
 | 
			
		||||
        "es2021": true
 | 
			
		||||
    },
 | 
			
		||||
    "extends": [
 | 
			
		||||
        "eslint:recommended",
 | 
			
		||||
        "plugin:@typescript-eslint/recommended"
 | 
			
		||||
    ],
 | 
			
		||||
    "overrides": [
 | 
			
		||||
    ],
 | 
			
		||||
    "parser": "@typescript-eslint/parser",
 | 
			
		||||
    "parserOptions": {
 | 
			
		||||
        "ecmaVersion": "latest",
 | 
			
		||||
        "sourceType": "module"
 | 
			
		||||
    },
 | 
			
		||||
    "plugins": [
 | 
			
		||||
        "@typescript-eslint"
 | 
			
		||||
    ],
 | 
			
		||||
    "rules": {
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
@@ -55,5 +55,11 @@ ng serve
 | 
			
		||||
 | 
			
		||||
Point your browser to http://localhost:4200
 | 
			
		||||
 | 
			
		||||
*ESLint*
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
```
 | 
			
		||||
npm run lint src
 | 
			
		||||
npm run lint projects/common/src
 | 
			
		||||
npm run lint projects/common-map/src
 | 
			
		||||
npm run lint projects/common-map3d/src
 | 
			
		||||
```
 | 
			
		||||
							
								
								
									
										3414
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										3414
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										10
									
								
								package.json
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								package.json
									
									
									
									
									
								
							@@ -6,7 +6,7 @@
 | 
			
		||||
    "start": "ng serve",
 | 
			
		||||
    "build": "ng build",
 | 
			
		||||
    "test": "ng test",
 | 
			
		||||
    "lint": "ng lint",
 | 
			
		||||
    "lint": "eslint -c .eslintrc.js --ext .ts",
 | 
			
		||||
    "e2e": "ng e2e"
 | 
			
		||||
  },
 | 
			
		||||
  "private": true,
 | 
			
		||||
@@ -15,6 +15,7 @@
 | 
			
		||||
    "@angular/common": "^14.1.3",
 | 
			
		||||
    "@angular/compiler": "^14.1.3",
 | 
			
		||||
    "@angular/core": "^14.1.3",
 | 
			
		||||
    "@angular-eslint/eslint-plugin": "^15.2.1",
 | 
			
		||||
    "@angular/forms": "^14.1.3",
 | 
			
		||||
    "@angular/platform-browser": "^14.1.3",
 | 
			
		||||
    "@angular/platform-browser-dynamic": "^14.1.3",
 | 
			
		||||
@@ -66,7 +67,13 @@
 | 
			
		||||
    "@types/jasmine": "~2.8.8",
 | 
			
		||||
    "@types/jasminewd2": "^2.0.9",
 | 
			
		||||
    "@types/node": "^12.20.15",
 | 
			
		||||
    "@typescript-eslint/eslint-plugin": "^5.54.0",
 | 
			
		||||
    "@typescript-eslint/eslint-plugin-tslint": "^5.54.0",
 | 
			
		||||
    "@typescript-eslint/parser": "^5.54.0",
 | 
			
		||||
    "codelyzer": "^0.0.28",
 | 
			
		||||
    "eslint": "^8.35.0",
 | 
			
		||||
    "eslint-config-prettier": "^8.6.0",
 | 
			
		||||
    "eslint-plugin-import": "^2.27.5",
 | 
			
		||||
    "jasmine-core": "^4.3.0",
 | 
			
		||||
    "jasmine-spec-reporter": "^7.0.0",
 | 
			
		||||
    "karma": "^6.3.20",
 | 
			
		||||
@@ -77,7 +84,6 @@
 | 
			
		||||
    "ng-packagr": "^14.1.0",
 | 
			
		||||
    "protractor": "~7.0.0",
 | 
			
		||||
    "ts-node": "^8.8.1",
 | 
			
		||||
    "tslint": "~6.1.0",
 | 
			
		||||
    "typescript": "~4.6.4"
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										22
									
								
								projects/common-map/.eslintrc.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								projects/common-map/.eslintrc.js
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,22 @@
 | 
			
		||||
module.exports = {
 | 
			
		||||
    "env": {
 | 
			
		||||
        "browser": true,
 | 
			
		||||
        "es2021": true
 | 
			
		||||
    },
 | 
			
		||||
    "extends": [
 | 
			
		||||
        "eslint:recommended",
 | 
			
		||||
        "plugin:@typescript-eslint/recommended"
 | 
			
		||||
    ],
 | 
			
		||||
    "overrides": [
 | 
			
		||||
    ],
 | 
			
		||||
    "parser": "@typescript-eslint/parser",
 | 
			
		||||
    "parserOptions": {
 | 
			
		||||
        "ecmaVersion": "latest",
 | 
			
		||||
        "sourceType": "module"
 | 
			
		||||
    },
 | 
			
		||||
    "plugins": [
 | 
			
		||||
        "@typescript-eslint"
 | 
			
		||||
    ],
 | 
			
		||||
    "rules": {
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										25
									
								
								projects/common-map/package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										25
									
								
								projects/common-map/package-lock.json
									
									
									
										generated
									
									
									
								
							@@ -1,10 +1,27 @@
 | 
			
		||||
{
 | 
			
		||||
  "name": "@farmmaps/common-map",
 | 
			
		||||
  "version": "0.0.1",
 | 
			
		||||
  "lockfileVersion": 1,
 | 
			
		||||
  "version": "2.0.0",
 | 
			
		||||
  "lockfileVersion": 3,
 | 
			
		||||
  "requires": true,
 | 
			
		||||
  "dependencies": {
 | 
			
		||||
    "tslib": {
 | 
			
		||||
  "packages": {
 | 
			
		||||
    "": {
 | 
			
		||||
      "name": "@farmmaps/common-map",
 | 
			
		||||
      "version": "2.0.0",
 | 
			
		||||
      "dependencies": {
 | 
			
		||||
        "tslib": "^2.0.0"
 | 
			
		||||
      },
 | 
			
		||||
      "peerDependencies": {
 | 
			
		||||
        "@angular/core": ">=14.0.0",
 | 
			
		||||
        "@ngrx/effects": ">=14.0.0",
 | 
			
		||||
        "@ngrx/router-store": ">=14.0.0",
 | 
			
		||||
        "@ngrx/store": ">=14.0.0",
 | 
			
		||||
        "ngrx-store-localstorage": ">=14.0.0",
 | 
			
		||||
        "ngx-openlayers": ">=1.0.0-next.19",
 | 
			
		||||
        "ol": ">=6.8.1",
 | 
			
		||||
        "tassign": ">=1.0.0"
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    "node_modules/tslib": {
 | 
			
		||||
      "version": "2.0.1",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.0.1.tgz",
 | 
			
		||||
      "integrity": "sha512-SgIkNheinmEBgx1IUNirK0TUD4X9yjjBRTqqjggWCU3pUEqIk3/Uwl3yRixYKT6WjQuGiwDv4NomL3wqRCj+CQ=="
 | 
			
		||||
 
 | 
			
		||||
@@ -1,17 +0,0 @@
 | 
			
		||||
{
 | 
			
		||||
  "extends": "../../tslint.json",
 | 
			
		||||
  "rules": {
 | 
			
		||||
    "directive-selector": [
 | 
			
		||||
      true,
 | 
			
		||||
      "attribute",
 | 
			
		||||
      "fm-map",
 | 
			
		||||
      "camelCase"
 | 
			
		||||
    ],
 | 
			
		||||
    "component-selector": [
 | 
			
		||||
      true,
 | 
			
		||||
      "element",
 | 
			
		||||
      "fm-map",
 | 
			
		||||
      "kebab-case"
 | 
			
		||||
    ]
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										22
									
								
								projects/common-map3d/.eslintrc.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								projects/common-map3d/.eslintrc.js
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,22 @@
 | 
			
		||||
module.exports = {
 | 
			
		||||
    "env": {
 | 
			
		||||
        "browser": true,
 | 
			
		||||
        "es2021": true
 | 
			
		||||
    },
 | 
			
		||||
    "extends": [
 | 
			
		||||
        "eslint:recommended",
 | 
			
		||||
        "plugin:@typescript-eslint/recommended"
 | 
			
		||||
    ],
 | 
			
		||||
    "overrides": [
 | 
			
		||||
    ],
 | 
			
		||||
    "parser": "@typescript-eslint/parser",
 | 
			
		||||
    "parserOptions": {
 | 
			
		||||
        "ecmaVersion": "latest",
 | 
			
		||||
        "sourceType": "module"
 | 
			
		||||
    },
 | 
			
		||||
    "plugins": [
 | 
			
		||||
        "@typescript-eslint"
 | 
			
		||||
    ],
 | 
			
		||||
    "rules": {
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										27
									
								
								projects/common-map3d/package-lock.json
									
									
									
										generated
									
									
									
										Normal file
									
								
							
							
						
						
									
										27
									
								
								projects/common-map3d/package-lock.json
									
									
									
										generated
									
									
									
										Normal file
									
								
							@@ -0,0 +1,27 @@
 | 
			
		||||
{
 | 
			
		||||
  "name": "@farmmaps/common-map3d",
 | 
			
		||||
  "version": "2.0.0",
 | 
			
		||||
  "lockfileVersion": 3,
 | 
			
		||||
  "requires": true,
 | 
			
		||||
  "packages": {
 | 
			
		||||
    "": {
 | 
			
		||||
      "name": "@farmmaps/common-map3d",
 | 
			
		||||
      "version": "2.0.0",
 | 
			
		||||
      "dependencies": {
 | 
			
		||||
        "tslib": "^2.0.0"
 | 
			
		||||
      },
 | 
			
		||||
      "peerDependencies": {
 | 
			
		||||
        "@angular/common": ">=14.0.0",
 | 
			
		||||
        "@angular/core": ">=14.0.0",
 | 
			
		||||
        "cesium": ">=1.82.1",
 | 
			
		||||
        "ngx-openlayers": "1.0.0-next.19",
 | 
			
		||||
        "ol-cesium": ">=2.13.0"
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    "node_modules/tslib": {
 | 
			
		||||
      "version": "2.5.0",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz",
 | 
			
		||||
      "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg=="
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
@@ -1,17 +0,0 @@
 | 
			
		||||
{
 | 
			
		||||
  "extends": "../../tslint.json",
 | 
			
		||||
  "rules": {
 | 
			
		||||
    "directive-selector": [
 | 
			
		||||
      true,
 | 
			
		||||
      "attribute",
 | 
			
		||||
      "lib",
 | 
			
		||||
      "camelCase"
 | 
			
		||||
    ],
 | 
			
		||||
    "component-selector": [
 | 
			
		||||
      true,
 | 
			
		||||
      "element",
 | 
			
		||||
      "lib",
 | 
			
		||||
      "kebab-case"
 | 
			
		||||
    ]
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										22
									
								
								projects/common/.eslintrc.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								projects/common/.eslintrc.js
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,22 @@
 | 
			
		||||
module.exports = {
 | 
			
		||||
    "env": {
 | 
			
		||||
        "browser": true,
 | 
			
		||||
        "es2021": true
 | 
			
		||||
    },
 | 
			
		||||
    "extends": [
 | 
			
		||||
        "eslint:recommended",
 | 
			
		||||
        "plugin:@typescript-eslint/recommended"
 | 
			
		||||
    ],
 | 
			
		||||
    "overrides": [
 | 
			
		||||
    ],
 | 
			
		||||
    "parser": "@typescript-eslint/parser",
 | 
			
		||||
    "parserOptions": {
 | 
			
		||||
        "ecmaVersion": "latest",
 | 
			
		||||
        "sourceType": "module"
 | 
			
		||||
    },
 | 
			
		||||
    "plugins": [
 | 
			
		||||
        "@typescript-eslint"
 | 
			
		||||
    ],
 | 
			
		||||
    "rules": {
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										30
									
								
								projects/common/package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										30
									
								
								projects/common/package-lock.json
									
									
									
										generated
									
									
									
								
							@@ -8,22 +8,22 @@
 | 
			
		||||
      "name": "@farmmaps/common",
 | 
			
		||||
      "version": "2.0.0",
 | 
			
		||||
      "peerDependencies": {
 | 
			
		||||
        "@angular/common": "^14.0.0",
 | 
			
		||||
        "@angular/core": "^14.0.0",
 | 
			
		||||
        "@angular/forms": "^14",
 | 
			
		||||
        "@microsoft/signalr": "^3.1.3",
 | 
			
		||||
        "@angular/common": ">=14.0.0",
 | 
			
		||||
        "@angular/core": ">=14.0.0",
 | 
			
		||||
        "@angular/forms": ">=14.0.0",
 | 
			
		||||
        "@microsoft/signalr": ">=3.1.3",
 | 
			
		||||
        "@ng-bootstrap/ng-bootstrap": ">=10.0.0",
 | 
			
		||||
        "@ngrx/effects": "^14.0.0",
 | 
			
		||||
        "@ngrx/router-store": "^14.0.0",
 | 
			
		||||
        "@ngrx/store": "^14.0.0",
 | 
			
		||||
        "angular-oauth2-oidc": "^13",
 | 
			
		||||
        "bootstrap": "^4.4.1",
 | 
			
		||||
        "moment": "^2.27.0",
 | 
			
		||||
        "ngx-avatar": "^4.1.0",
 | 
			
		||||
        "ngx-clipboard": "^14.0.1",
 | 
			
		||||
        "ngx-image-cropper": "^3.3.5",
 | 
			
		||||
        "ngx-uploadx": "^5.2.0",
 | 
			
		||||
        "tassign": "^1.0.0"
 | 
			
		||||
        "@ngrx/effects": ">=14.0.0",
 | 
			
		||||
        "@ngrx/router-store": ">=14.0.0",
 | 
			
		||||
        "@ngrx/store": ">=14.0.0",
 | 
			
		||||
        "angular-oauth2-oidc": ">=13.0.0",
 | 
			
		||||
        "bootstrap": ">=4.4.1",
 | 
			
		||||
        "moment": ">=2.27.0",
 | 
			
		||||
        "ngx-avatar": ">=4.1.0",
 | 
			
		||||
        "ngx-clipboard": ">=14.0.1",
 | 
			
		||||
        "ngx-image-cropper": ">=3.3.5",
 | 
			
		||||
        "ngx-uploadx": ">=5.1.0",
 | 
			
		||||
        "tassign": ">=1.0.0"
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 
 | 
			
		||||
@@ -1,17 +0,0 @@
 | 
			
		||||
{
 | 
			
		||||
  "extends": "../../tslint.json",
 | 
			
		||||
  "rules": {
 | 
			
		||||
    "directive-selector": [
 | 
			
		||||
      true,
 | 
			
		||||
      "attribute",
 | 
			
		||||
      "fm",
 | 
			
		||||
      "camelCase"
 | 
			
		||||
    ],
 | 
			
		||||
    "component-selector": [
 | 
			
		||||
      true,
 | 
			
		||||
      "element",
 | 
			
		||||
      "fm",
 | 
			
		||||
      "kebab-case"
 | 
			
		||||
    ]
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										138
									
								
								tslint.json
									
									
									
									
									
								
							
							
						
						
									
										138
									
								
								tslint.json
									
									
									
									
									
								
							@@ -1,138 +0,0 @@
 | 
			
		||||
{
 | 
			
		||||
  "extends": "tslint:recommended",
 | 
			
		||||
  "rulesDirectory": [
 | 
			
		||||
    "codelyzer"
 | 
			
		||||
  ],
 | 
			
		||||
  "rules": {
 | 
			
		||||
    "align": {
 | 
			
		||||
      "options": [
 | 
			
		||||
        "parameters",
 | 
			
		||||
        "statements"
 | 
			
		||||
      ]
 | 
			
		||||
    },
 | 
			
		||||
    "array-type": false,
 | 
			
		||||
    "arrow-parens": false,
 | 
			
		||||
    "arrow-return-shorthand": true,
 | 
			
		||||
    "deprecation": {
 | 
			
		||||
      "severity": "warn"
 | 
			
		||||
    },
 | 
			
		||||
    "curly": true,
 | 
			
		||||
    "import-blacklist": [
 | 
			
		||||
      true,
 | 
			
		||||
      "rxjs/Rx"
 | 
			
		||||
    ],
 | 
			
		||||
    "interface-name": false,
 | 
			
		||||
    "eofline": true,
 | 
			
		||||
    "max-classes-per-file": false,
 | 
			
		||||
    "import-spacing": true,
 | 
			
		||||
    "indent": {
 | 
			
		||||
      "options": [
 | 
			
		||||
        "spaces"
 | 
			
		||||
      ]
 | 
			
		||||
    },
 | 
			
		||||
    "max-line-length": [
 | 
			
		||||
      true,
 | 
			
		||||
      140
 | 
			
		||||
    ],
 | 
			
		||||
    "member-access": false,
 | 
			
		||||
    "member-ordering": [
 | 
			
		||||
      true,
 | 
			
		||||
      {
 | 
			
		||||
        "order": [
 | 
			
		||||
          "static-field",
 | 
			
		||||
          "instance-field",
 | 
			
		||||
          "static-method",
 | 
			
		||||
          "instance-method"
 | 
			
		||||
        ]
 | 
			
		||||
      }
 | 
			
		||||
    ],
 | 
			
		||||
    "no-consecutive-blank-lines": false,
 | 
			
		||||
    "no-console": [
 | 
			
		||||
      true,
 | 
			
		||||
      "debug",
 | 
			
		||||
      "info",
 | 
			
		||||
      "time",
 | 
			
		||||
      "timeEnd",
 | 
			
		||||
      "trace"
 | 
			
		||||
    ],
 | 
			
		||||
    "no-empty": false,
 | 
			
		||||
    "no-inferrable-types": [
 | 
			
		||||
      true,
 | 
			
		||||
      "ignore-params"
 | 
			
		||||
    ],
 | 
			
		||||
    "no-non-null-assertion": true,
 | 
			
		||||
    "no-redundant-jsdoc": true,
 | 
			
		||||
    "no-switch-case-fall-through": true,
 | 
			
		||||
    "no-var-requires": false,
 | 
			
		||||
    "object-literal-key-quotes": [
 | 
			
		||||
      true,
 | 
			
		||||
      "as-needed"
 | 
			
		||||
    ],
 | 
			
		||||
    "object-literal-sort-keys": false,
 | 
			
		||||
    "ordered-imports": false,
 | 
			
		||||
    "quotemark": [
 | 
			
		||||
      true,
 | 
			
		||||
      "single"
 | 
			
		||||
    ],
 | 
			
		||||
    "trailing-comma": false,
 | 
			
		||||
    "no-output-on-prefix": true,
 | 
			
		||||
    "no-inputs-metadata-property": true,
 | 
			
		||||
    "no-outputs-metadata-property": true,
 | 
			
		||||
    "no-host-metadata-property": true,
 | 
			
		||||
    "no-input-rename": true,
 | 
			
		||||
    "no-output-rename": true,
 | 
			
		||||
    "use-lifecycle-interface": true,
 | 
			
		||||
    "semicolon": {
 | 
			
		||||
      "options": [
 | 
			
		||||
        "always"
 | 
			
		||||
      ]
 | 
			
		||||
    },
 | 
			
		||||
    "space-before-function-paren": {
 | 
			
		||||
      "options": {
 | 
			
		||||
        "anonymous": "never",
 | 
			
		||||
        "asyncArrow": "always",
 | 
			
		||||
        "constructor": "never",
 | 
			
		||||
        "method": "never",
 | 
			
		||||
        "named": "never"
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    "use-pipe-transform-interface": true,
 | 
			
		||||
    "typedef-whitespace": {
 | 
			
		||||
      "options": [
 | 
			
		||||
        {
 | 
			
		||||
          "call-signature": "nospace",
 | 
			
		||||
          "index-signature": "nospace",
 | 
			
		||||
          "parameter": "nospace",
 | 
			
		||||
          "property-declaration": "nospace",
 | 
			
		||||
          "variable-declaration": "nospace"
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
          "call-signature": "onespace",
 | 
			
		||||
          "index-signature": "onespace",
 | 
			
		||||
          "parameter": "onespace",
 | 
			
		||||
          "property-declaration": "onespace",
 | 
			
		||||
          "variable-declaration": "onespace"
 | 
			
		||||
        }
 | 
			
		||||
      ]
 | 
			
		||||
    },
 | 
			
		||||
    "component-class-suffix": true,
 | 
			
		||||
    "directive-class-suffix": true,
 | 
			
		||||
    "variable-name": {
 | 
			
		||||
      "options": [
 | 
			
		||||
        "ban-keywords",
 | 
			
		||||
        "check-format",
 | 
			
		||||
        "allow-pascal-case"
 | 
			
		||||
      ]
 | 
			
		||||
    },
 | 
			
		||||
    "whitespace": {
 | 
			
		||||
      "options": [
 | 
			
		||||
        "check-branch",
 | 
			
		||||
        "check-decl",
 | 
			
		||||
        "check-operator",
 | 
			
		||||
        "check-separator",
 | 
			
		||||
        "check-type",
 | 
			
		||||
        "check-typecast"
 | 
			
		||||
      ]
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user