未验证 提交 e8e58cec 编写于 作者: M Marcin Maciaszczyk 提交者: GitHub

Update dependencies and remove tslint leftovers (#5636)

* Update dependencies and remove tslib leftovers

* Revert go package changes

* Update lint-staged config

* Update eslint config

* Remove redundant file

* Update dev docs
上级 417a3c00
...@@ -148,15 +148,6 @@ ...@@ -148,15 +148,6 @@
"src/app/frontend/assets" "src/app/frontend/assets"
] ]
} }
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"src/tsconfig.json"
],
"exclude": []
}
} }
} }
} }
......
...@@ -30,9 +30,7 @@ Cypress.Commands.add('foo', () => 'foo'); ...@@ -30,9 +30,7 @@ Cypress.Commands.add('foo', () => 'foo');
// // see more example of adding custom commands to Cypress TS interface // // see more example of adding custom commands to Cypress TS interface
// // in https://github.com/cypress-io/add-cypress-custom-command-in-typescript // // in https://github.com/cypress-io/add-cypress-custom-command-in-typescript
// // add new command to the existing Cypress interface // // add new command to the existing Cypress interface
// // tslint:disable-next-line no-namespace
declare namespace Cypress { declare namespace Cypress {
// tslint:disable-next-line interface-name
interface Chainable { interface Chainable {
foo: () => string; foo: () => string;
} }
......
...@@ -38,7 +38,7 @@ We use following tools and settings for each check and formatting: ...@@ -38,7 +38,7 @@ We use following tools and settings for each check and formatting:
| code | tools | setting | | code | tools | setting |
|---------|--------------------------------------------------------------------------|---------| |---------|--------------------------------------------------------------------------|---------|
| go | [golangci-lint](https://github.com/golangci/golangci-lint) | [`.golangci.yml`](../../.golangci.yml) | | go | [golangci-lint](https://github.com/golangci/golangci-lint) | [`.golangci.yml`](../../.golangci.yml) |
| ts | [gts](https://github.com/google/gts) | [`tslint.json`](../../tslint.json) | | ts | [gts](https://github.com/google/gts) | `eslintConfig` in [`package.json`](../../package.json) and [`.prettierrc.js`](../../.prettierrc.js) |
| scss | [sass-lint](https://github.com/sasstools/sass-lint) | [`.sass-lint.yml`](../../.sass-lint.yml) | | scss | [sass-lint](https://github.com/sasstools/sass-lint) | [`.sass-lint.yml`](../../.sass-lint.yml) |
| scss | [scssfmt](https://github.com/morishitter/scssfmt) | - | | scss | [scssfmt](https://github.com/morishitter/scssfmt) | - |
| html | [js-beautify](https://github.com/beautify-web/js-beautify) | options in [`format.sh`](../../aio/scripts/format.sh) | | html | [js-beautify](https://github.com/beautify-web/js-beautify) | options in [`format.sh`](../../aio/scripts/format.sh) |
......
此差异已折叠。
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
"check:backend": "golangci-lint run -c .golangci.yml ./src/app/backend/...", "check:backend": "golangci-lint run -c .golangci.yml ./src/app/backend/...",
"check:codegen": "aio/scripts/verify-codegen.sh", "check:codegen": "aio/scripts/verify-codegen.sh",
"check:frontend": "concurrently \"npm run check:frontend:ts\" \"npm run check:frontend:scss\" \"npm run check:frontend:html\"", "check:frontend": "concurrently \"npm run check:frontend:ts\" \"npm run check:frontend:scss\" \"npm run check:frontend:html\"",
"check:frontend:ts": "gts check", "check:frontend:ts": "gts lint",
"check:frontend:scss": "./aio/scripts/format.sh --styles --check && ./node_modules/sass-lint/bin/sass-lint.js -c .sass-lint.yml 'src/app/frontend/**/*.scss' -v -q", "check:frontend:scss": "./aio/scripts/format.sh --styles --check && ./node_modules/sass-lint/bin/sass-lint.js -c .sass-lint.yml 'src/app/frontend/**/*.scss' -v -q",
"check:frontend:html": "./aio/scripts/format.sh --html --check", "check:frontend:html": "./aio/scripts/format.sh --html --check",
"check:license": "license-check-and-add check", "check:license": "license-check-and-add check",
...@@ -63,20 +63,16 @@ ...@@ -63,20 +63,16 @@
}, },
"lint-staged": { "lint-staged": {
"src/**/*.ts": [ "src/**/*.ts": [
"gts fix", "gts fix"
"git add"
], ],
"src/**/*.scss": [ "src/**/*.scss": [
"scssfmt", "scssfmt"
"git add"
], ],
"src/**/*.go": [ "src/**/*.go": [
"./aio/scripts/pre-commit-golangci-lint.sh", "./aio/scripts/pre-commit-golangci-lint.sh"
"git add"
], ],
"src/**/*.html": [ "src/**/*.html": [
"./aio/scripts/pre-commit-i18n.sh", "./aio/scripts/pre-commit-i18n.sh"
"git add"
] ]
}, },
"xliffmergeOptions": { "xliffmergeOptions": {
...@@ -95,21 +91,21 @@ ...@@ -95,21 +91,21 @@
"beautifyOutput": true "beautifyOutput": true
}, },
"dependencies": { "dependencies": {
"@angular/animations": "10.1.1", "@angular/animations": "10.1.6",
"@angular/cdk": "10.2.0", "@angular/cdk": "10.2.5",
"@angular/common": "10.1.1", "@angular/common": "10.1.6",
"@angular/compiler": "10.1.1", "@angular/compiler": "10.1.6",
"@angular/core": "10.1.1", "@angular/core": "10.1.6",
"@angular/flex-layout": "10.0.0-beta.32", "@angular/flex-layout": "10.0.0-beta.32",
"@angular/forms": "10.1.1", "@angular/forms": "10.1.6",
"@angular/localize": "10.1.1", "@angular/localize": "10.1.6",
"@angular/material": "10.2.0", "@angular/material": "10.2.5",
"@angular/platform-browser": "10.1.1", "@angular/platform-browser": "10.1.6",
"@angular/platform-browser-dynamic": "10.1.1", "@angular/platform-browser-dynamic": "10.1.6",
"@angular/router": "10.1.1", "@angular/router": "10.1.6",
"@swimlane/ngx-charts": "16.0.0", "@swimlane/ngx-charts": "16.0.0",
"@types/c3": "0.7.4", "@types/c3": "0.7.4",
"@types/d3": "5.16.1", "@types/d3": "5.16.3",
"@types/d3-scale": "3.1.0", "@types/d3-scale": "3.1.0",
"@types/file-saver": "2.0.1", "@types/file-saver": "2.0.1",
"@types/highlight.js": "9.12.4", "@types/highlight.js": "9.12.4",
...@@ -131,9 +127,9 @@ ...@@ -131,9 +127,9 @@
"rxjs": "6.6.3", "rxjs": "6.6.3",
"rxjs-compat": "6.6.3", "rxjs-compat": "6.6.3",
"sockjs-client": "1.5.0", "sockjs-client": "1.5.0",
"systemjs": "6.6.1", "systemjs": "6.7.1",
"truncate-url": "1.0.0", "truncate-url": "1.0.0",
"tslib": "2.0.2", "tslib": "2.0.3",
"web-animations-js": "2.3.2", "web-animations-js": "2.3.2",
"xterm": "4.9.0", "xterm": "4.9.0",
"xterm-addon-fit": "0.4.0", "xterm-addon-fit": "0.4.0",
...@@ -141,26 +137,26 @@ ...@@ -141,26 +137,26 @@
}, },
"devDependencies": { "devDependencies": {
"@angular-devkit/build-angular": "0.1001.7", "@angular-devkit/build-angular": "0.1001.7",
"@angular/cli": "10.1.4", "@angular/cli": "10.1.7",
"@angular/compiler-cli": "10.1.1", "@angular/compiler-cli": "10.1.6",
"@angular/language-service": "10.1.6", "@angular/language-service": "10.1.6",
"@cypress/webpack-preprocessor": "5.4.6", "@cypress/webpack-preprocessor": "5.4.7",
"@types/jasmine": "3.5.14", "@types/jasmine": "3.5.14",
"@types/jasminewd2": "2.0.8", "@types/jasminewd2": "2.0.8",
"@types/js-yaml": "3.12.5", "@types/js-yaml": "3.12.5",
"@types/lodash": "4.14.161", "@types/lodash": "4.14.162",
"@types/node": "14.11.5", "@types/node": "14.11.8",
"babel-cli": "6.26.0", "babel-cli": "6.26.0",
"babel-preset-env": "1.7.0", "babel-preset-env": "1.7.0",
"babel-register": "6.26.0", "babel-register": "6.26.0",
"codelyzer": "6.0.1", "codelyzer": "6.0.1",
"concurrently": "5.3.0", "concurrently": "5.3.0",
"cypress": "5.3.0", "cypress": "5.4.0",
"del": "6.0.0", "del": "6.0.0",
"eslint": "7.10.0", "eslint": "7.11.0",
"eslint-plugin-rxjs": "0.0.3-beta.30", "eslint-plugin-rxjs": "0.0.3-beta.30",
"git-describe": "4.0.4", "git-describe": "4.0.4",
"gts": "2.0.2", "gts": "3.0.1",
"gulp": "4.0.2", "gulp": "4.0.2",
"gulp-filter": "6.0.0", "gulp-filter": "6.0.0",
"husky": "4.3.0", "husky": "4.3.0",
...@@ -180,21 +176,20 @@ ...@@ -180,21 +176,20 @@
"minimatch": "3.0.4", "minimatch": "3.0.4",
"minimist": "1.2.5", "minimist": "1.2.5",
"ngx-i18nsupport": "0.17.1", "ngx-i18nsupport": "0.17.1",
"node-gyp": "7.1.0", "node-gyp": "7.1.1",
"node-sass": "4.14.1", "node-sass": "4.14.1",
"q": "1.5.1", "q": "1.5.1",
"raw-loader": "4.0.1", "raw-loader": "4.0.2",
"run-node": "2.0.0", "run-node": "2.0.0",
"sass-lint": "1.13.1", "sass-lint": "1.13.1",
"sass-loader": "10.0.2", "sass-loader": "10.0.3",
"scssfmt": "1.0.7", "scssfmt": "1.0.7",
"semver": "7.3.2", "semver": "7.3.2",
"source-map-explorer": "2.5.0", "source-map-explorer": "2.5.0",
"tar": "6.0.5", "tar": "6.0.5",
"through2": "4.0.2", "through2": "4.0.2",
"ts-loader": "8.0.4", "ts-loader": "8.0.5",
"ts-node": "9.0.0", "ts-node": "9.0.0",
"tslint": "6.1.3",
"typescript": "4.0.3", "typescript": "4.0.3",
"wait-on": "5.2.0", "wait-on": "5.2.0",
"webpack-dev-server": "3.11.0" "webpack-dev-server": "3.11.0"
...@@ -215,7 +210,7 @@ ...@@ -215,7 +210,7 @@
"rxjs" "rxjs"
], ],
"rules": { "rules": {
"@typescript-eslint/ban-ts-ignore": "off", "@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/interface-name-prefix": "off", "@typescript-eslint/interface-name-prefix": "off",
"@typescript-eslint/no-namespace": "off", "@typescript-eslint/no-namespace": "off",
"@typescript-eslint/no-unused-vars": "off", "@typescript-eslint/no-unused-vars": "off",
......
...@@ -12,9 +12,7 @@ ...@@ -12,9 +12,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
import {HttpClient, HttpParams} from '@angular/common/http'; import {HttpClient} from '@angular/common/http';
import {merge, timer} from 'rxjs';
import {publishReplay, refCount, switchMapTo} from 'rxjs/operators';
// @ts-ignore // @ts-ignore
export abstract class ResourceBase<T> { export abstract class ResourceBase<T> {
......
...@@ -18,8 +18,6 @@ import {CookieService} from 'ngx-cookie-service'; ...@@ -18,8 +18,6 @@ import {CookieService} from 'ngx-cookie-service';
import {Observable} from 'rxjs'; import {Observable} from 'rxjs';
import {CONFIG} from '../../../index.config'; import {CONFIG} from '../../../index.config';
/* tslint:disable */
// We can disable tslint for this file as any is required here.
@Injectable() @Injectable()
export class AuthInterceptor implements HttpInterceptor { export class AuthInterceptor implements HttpInterceptor {
constructor(private readonly cookies_: CookieService) {} constructor(private readonly cookies_: CookieService) {}
...@@ -39,4 +37,3 @@ export class AuthInterceptor implements HttpInterceptor { ...@@ -39,4 +37,3 @@ export class AuthInterceptor implements HttpInterceptor {
return next.handle(req); return next.handle(req);
} }
} }
/* tslint:enable */
...@@ -13,7 +13,6 @@ ...@@ -13,7 +13,6 @@
// limitations under the License. // limitations under the License.
// This file is required by karma.conf.js and loads recursively all the .spec and framework files. // This file is required by karma.conf.js and loads recursively all the .spec and framework files.
/* tslint:disable */
// import 'zone.js/dist/zone.js'; // import 'zone.js/dist/zone.js';
import 'zone.js/dist/async-test'; import 'zone.js/dist/async-test';
import 'zone.js/dist/fake-async-test'; import 'zone.js/dist/fake-async-test';
...@@ -21,16 +20,13 @@ import 'zone.js/dist/long-stack-trace-zone'; ...@@ -21,16 +20,13 @@ import 'zone.js/dist/long-stack-trace-zone';
import 'zone.js/dist/proxy'; import 'zone.js/dist/proxy';
import 'zone.js/dist/sync-test'; import 'zone.js/dist/sync-test';
import 'zone.js/dist/jasmine-patch'; import 'zone.js/dist/jasmine-patch';
/* tslint:enable */
import {getTestBed} from '@angular/core/testing'; import {getTestBed} from '@angular/core/testing';
import {BrowserDynamicTestingModule, platformBrowserDynamicTesting} from '@angular/platform-browser-dynamic/testing'; import {BrowserDynamicTestingModule, platformBrowserDynamicTesting} from '@angular/platform-browser-dynamic/testing';
// Unfortunately there's no typing for the `__karma__` variable. Just declare it as any. // Unfortunately there's no typing for the `__karma__` variable. Just declare it as any.
/* tslint:disable */
declare const __karma__: any; declare const __karma__: any;
declare const require: any; declare const require: any;
/* tslint:enable */
// Prevent Karma from running prematurely. // Prevent Karma from running prematurely.
__karma__.loaded = () => {}; __karma__.loaded = () => {};
......
...@@ -45,7 +45,6 @@ export class PluginHolderComponent implements OnInit { ...@@ -45,7 +45,6 @@ export class PluginHolderComponent implements OnInit {
loadPlugin(pluginName: string) { loadPlugin(pluginName: string) {
this.pluginLoader.load(pluginName).then(moduleFactory => { this.pluginLoader.load(pluginName).then(moduleFactory => {
const moduleRef = moduleFactory.create(this.injector); const moduleRef = moduleFactory.create(this.injector);
// tslint:disable-next-line:no-any
const entryComponent = (moduleFactory.moduleType as any).entry; const entryComponent = (moduleFactory.moduleType as any).entry;
try { try {
const compFactory = moduleRef.componentFactoryResolver.resolveComponentFactory(entryComponent); const compFactory = moduleRef.componentFactoryResolver.resolveComponentFactory(entryComponent);
......
...@@ -29,7 +29,6 @@ import 'zone.js/dist/zone'; ...@@ -29,7 +29,6 @@ import 'zone.js/dist/zone';
// Load `$localize` onto the global scope - used if i18n tags appear in Angular templates. // Load `$localize` onto the global scope - used if i18n tags appear in Angular templates.
import '@angular/localize/init'; import '@angular/localize/init';
/* tslint:disable */
// Global variable is required by some 3rd party libraries such as 'ace-ui'. // Global variable is required by some 3rd party libraries such as 'ace-ui'.
// It was removed in Angular 6.X, more info can be found here: // It was removed in Angular 6.X, more info can be found here:
// https://github.com/angular/angular-cli/issues/9827#issuecomment-369578814 // https://github.com/angular/angular-cli/issues/9827#issuecomment-369578814
......
...@@ -34,7 +34,6 @@ import {EndpointManager, Resource, Utility} from '../common/services/resource/en ...@@ -34,7 +34,6 @@ import {EndpointManager, Resource, Utility} from '../common/services/resource/en
import {NamespacedResourceService} from '../common/services/resource/resource'; import {NamespacedResourceService} from '../common/services/resource/resource';
import {UtilityService} from '../common/services/resource/utility'; import {UtilityService} from '../common/services/resource/utility';
// tslint:disable-next-line:no-any
declare let SockJS: any; declare let SockJS: any;
@Component({ @Component({
......
...@@ -13,12 +13,10 @@ ...@@ -13,12 +13,10 @@
// limitations under the License. // limitations under the License.
interface Window { interface Window {
// tslint:disable-next-line:no-any
define: (name: string, deps: string[], definitionFn: () => any) => void; define: (name: string, deps: string[], definitionFn: () => any) => void;
System: { System: {
// @ts-ignore // @ts-ignore
// tslint:disable-next-line:no-any
import: (path) => Promise<any>; import: (path) => Promise<any>;
}; };
} }
...@@ -732,13 +732,11 @@ export interface ErrStatus { ...@@ -732,13 +732,11 @@ export interface ErrStatus {
reason: string; reason: string;
} }
/* tslint:disable */
export interface K8sError { export interface K8sError {
ErrStatus: ErrStatus; ErrStatus: ErrStatus;
toKdError(): KdError; toKdError(): KdError;
} }
/* tslint:enable */
export interface Condition { export interface Condition {
type: string; type: string;
...@@ -971,7 +969,6 @@ export interface LocalObjectReference { ...@@ -971,7 +969,6 @@ export interface LocalObjectReference {
name: string; name: string;
} }
/* tslint:disable */
export interface ISCSIVolumeSource { export interface ISCSIVolumeSource {
targetPortal: string; targetPortal: string;
iqn: string; iqn: string;
...@@ -979,7 +976,6 @@ export interface ISCSIVolumeSource { ...@@ -979,7 +976,6 @@ export interface ISCSIVolumeSource {
fsType: string; fsType: string;
readOnly: boolean; readOnly: boolean;
} }
/* tslint:enable */
export interface CinderVolumeSource { export interface CinderVolumeSource {
volumeID: string; volumeID: string;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册