angular10版本

dev
胡锐 2 days ago
parent 0720fb851e
commit bfa07bf1f7
  1. 0
      .browserslistrc
  2. 2
      e2e/tsconfig.json
  3. 26094
      package-lock.json
  4. 42
      package.json
  5. 12
      src/app/app-common.module.ts
  6. 2
      tsconfig.json
  7. 59
      tslint.json

@ -3,7 +3,7 @@
"compilerOptions": { "compilerOptions": {
"outDir": "../out-tsc/e2e", "outDir": "../out-tsc/e2e",
"module": "commonjs", "module": "commonjs",
"target": "es5", "target": "es2018",
"types": [ "types": [
"jasmine", "jasmine",
"jasminewd2", "jasminewd2",

26094
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -11,14 +11,14 @@
}, },
"private": true, "private": true,
"dependencies": { "dependencies": {
"@angular/animations": "~9.0.1", "@angular/animations": "~10.2.5",
"@angular/common": "~9.0.1", "@angular/common": "~10.2.5",
"@angular/compiler": "~9.0.1", "@angular/compiler": "~10.2.5",
"@angular/core": "~9.0.1", "@angular/core": "~10.2.5",
"@angular/forms": "~9.0.1", "@angular/forms": "~10.2.5",
"@angular/platform-browser": "~9.0.1", "@angular/platform-browser": "~10.2.5",
"@angular/platform-browser-dynamic": "~9.0.1", "@angular/platform-browser-dynamic": "~10.2.5",
"@angular/router": "~9.0.1", "@angular/router": "~10.2.5",
"@notadd/ngx-neditor": "^1.0.2", "@notadd/ngx-neditor": "^1.0.2",
"@types/jquery": "^3.5.0", "@types/jquery": "^3.5.0",
"echarts": "^4.9.0", "echarts": "^4.9.0",
@ -26,29 +26,29 @@
"ng-zorro-antd": "^9.3.0", "ng-zorro-antd": "^9.3.0",
"ngx-echarts": "^4.2.2", "ngx-echarts": "^4.2.2",
"rxjs": "~6.5.4", "rxjs": "~6.5.4",
"tslib": "^1.10.0", "tslib": "^2.0.0",
"zone.js": "~0.10.2" "zone.js": "~0.10.2"
}, },
"devDependencies": { "devDependencies": {
"@angular-devkit/build-angular": "~0.900.2", "@angular-devkit/build-angular": "~0.1002.4",
"@angular/cli": "~9.0.2", "@angular/cli": "~10.2.4",
"@angular/compiler-cli": "~9.0.1", "@angular/compiler-cli": "~10.2.5",
"@angular/language-service": "~9.0.1", "@angular/language-service": "~10.2.5",
"@types/jasmine": "~3.5.0", "@types/jasmine": "~3.5.0",
"@types/jasminewd2": "~2.0.3", "@types/jasminewd2": "~2.0.3",
"@types/node": "^12.11.1", "@types/node": "^12.11.1",
"codelyzer": "^5.1.2", "codelyzer": "^5.1.2",
"jasmine-core": "~3.5.0", "jasmine-core": "~3.5.0",
"jasmine-spec-reporter": "~4.2.1", "jasmine-spec-reporter": "~5.0.0",
"karma": "~4.3.0", "karma": "~5.0.0",
"karma-chrome-launcher": "~3.1.0", "karma-chrome-launcher": "~3.1.0",
"karma-coverage-istanbul-reporter": "~2.1.0", "karma-coverage-istanbul-reporter": "~3.0.2",
"karma-jasmine": "~2.0.1", "karma-jasmine": "~4.0.0",
"karma-jasmine-html-reporter": "^1.4.2", "karma-jasmine-html-reporter": "^1.5.0",
"protractor": "~5.4.3", "protractor": "~7.0.0",
"ts-md5": "^1.2.7", "ts-md5": "^1.2.7",
"ts-node": "~8.3.0", "ts-node": "~8.3.0",
"tslint": "~5.18.0", "tslint": "~6.1.0",
"typescript": "~3.7.5" "typescript": "~4.0.8"
} }
} }

@ -73,10 +73,10 @@ const PIPES = [
}) })
export class AppCommonModule { export class AppCommonModule {
static forRoot() { static forRoot(): ModuleWithProviders<AppCommonModule> {
return { return {
ngModule: AppCommonModule, ngModule: AppCommonModule,
providers: [], providers: [],
}; };
} }
} }

@ -7,7 +7,7 @@
"declaration": false, "declaration": false,
"downlevelIteration": true, "downlevelIteration": true,
"experimentalDecorators": true, "experimentalDecorators": true,
"module": "esnext", "module": "es2020",
"moduleResolution": "node", "moduleResolution": "node",
"importHelpers": true, "importHelpers": true,
"target": "es2015", "target": "es2015",

@ -1,8 +1,15 @@
{ {
"extends": "tslint:recommended", "extends": "tslint:recommended",
"rules": { "rules": {
"align": {
"options": [
"parameters",
"statements"
]
},
"array-type": false, "array-type": false,
"arrow-parens": false, "arrow-parens": false,
"arrow-return-shorthand": true,
"deprecation": { "deprecation": {
"severity": "warning" "severity": "warning"
}, },
@ -12,15 +19,23 @@
"allow-leading-underscore" "allow-leading-underscore"
], ],
"no-string-literal": false, "no-string-literal": false,
"curly": true,
"component-class-suffix": true, "component-class-suffix": true,
"contextual-lifecycle": true, "contextual-lifecycle": true,
"directive-class-suffix": true, "directive-class-suffix": true,
"eofline": true,
"directive-selector": [ "directive-selector": [
true, true,
"attribute", "attribute",
"app", "app",
"camelCase" "camelCase"
], ],
"import-spacing": true,
"indent": {
"options": [
"spaces"
]
},
"component-selector": [ "component-selector": [
true, true,
"element", "element",
@ -84,12 +99,54 @@
"no-inputs-metadata-property": true, "no-inputs-metadata-property": true,
"no-output-native": true, "no-output-native": true,
"no-output-on-prefix": true, "no-output-on-prefix": true,
"semicolon": {
"options": [
"always"
]
},
"space-before-function-paren": {
"options": {
"anonymous": "never",
"asyncArrow": "always",
"constructor": "never",
"method": "never",
"named": "never"
}
},
"no-output-rename": true, "no-output-rename": true,
"no-outputs-metadata-property": true, "no-outputs-metadata-property": true,
"template-banana-in-box": true, "template-banana-in-box": 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"
}
]
},
"template-no-negated-async": true, "template-no-negated-async": true,
"use-lifecycle-interface": true, "use-lifecycle-interface": true,
"use-pipe-transform-interface": true "use-pipe-transform-interface": true,
"whitespace": {
"options": [
"check-branch",
"check-decl",
"check-operator",
"check-separator",
"check-type",
"check-typecast"
]
}
}, },
"rulesDirectory": [ "rulesDirectory": [
"codelyzer" "codelyzer"

Loading…
Cancel
Save