window).firebaseUiInstance as firebaseui.auth.AuthUI;
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/projects/firebaseui-angular-library/src/public_api.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Public API Surface of firebaseui-angular-library
3 | */
4 |
5 | export * from './lib/firebaseui-angular-library.service';
6 | export * from './lib/firebaseui-angular-library.component';
7 | export * from './lib/firebaseui-angular-library.helper';
8 | export * from './lib/firebaseui-angular-library.module';
9 |
--------------------------------------------------------------------------------
/projects/firebaseui-angular-library/src/test.ts:
--------------------------------------------------------------------------------
1 | // This file is required by karma.conf.js and loads recursively all the .spec and framework files
2 |
3 | import 'zone.js';
4 | import 'zone.js/testing';
5 | import { getTestBed } from '@angular/core/testing';
6 | import {
7 | BrowserDynamicTestingModule,
8 | platformBrowserDynamicTesting
9 | } from '@angular/platform-browser-dynamic/testing';
10 |
11 | // First, initialize the Angular testing environment.
12 | getTestBed().initTestEnvironment(
13 | BrowserDynamicTestingModule,
14 | platformBrowserDynamicTesting(), {
15 | teardown: { destroyAfterEach: false }
16 | }
17 | );
18 |
--------------------------------------------------------------------------------
/projects/firebaseui-angular-library/tsconfig.lib.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.json",
3 | "compilerOptions": {
4 | "outDir": "../../out-tsc/lib",
5 | "module": "es6",
6 | "declaration": true,
7 | "inlineSources": true,
8 | "types": [],
9 | "lib": [
10 | "dom",
11 | "es2018"
12 | ]
13 | },
14 | "angularCompilerOptions": {
15 | "skipTemplateCodegen": true,
16 | "strictMetadataEmit": true,
17 | "fullTemplateTypeCheck": true,
18 | "strictInjectionParameters": true,
19 | "enableResourceInlining": true,
20 | "compilationMode": "partial"
21 | },
22 | "exclude": [
23 | "src/test.ts",
24 | "**/*.spec.ts"
25 | ]
26 | }
27 |
--------------------------------------------------------------------------------
/projects/firebaseui-angular-library/tsconfig.lib.prod.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "./tsconfig.lib.json",
3 | "angularCompilerOptions": {
4 | "compilationMode": "partial"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/projects/firebaseui-angular-library/tsconfig.spec.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.json",
3 | "compilerOptions": {
4 | "outDir": "../../out-tsc/spec",
5 | "types": [
6 | "jasmine",
7 | "node"
8 | ]
9 | },
10 | "files": [
11 | "src/test.ts"
12 | ],
13 | "include": [
14 | "**/*.spec.ts",
15 | "**/*.d.ts"
16 | ]
17 | }
18 |
--------------------------------------------------------------------------------
/projects/firebaseui-angular-library/tslint.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tslint.json",
3 | "rules": {
4 | "directive-selector": [
5 | true,
6 | "attribute",
7 | "",
8 | "camelCase"
9 | ],
10 | "component-selector": [
11 | true,
12 | "element",
13 | "",
14 | "kebab-case"
15 | ]
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/src/.browserslistrc:
--------------------------------------------------------------------------------
1 | # This file is currently used by autoprefixer to adjust CSS to support the below specified browsers
2 | # For additional information regarding the format and rule options, please see:
3 | # https://github.com/browserslist/browserslist#queries
4 | # For IE 9-11 support, please uncomment the last line of the file and adjust as needed
5 | > 0.5%
6 | last 2 versions
7 | Firefox ESR
8 | not dead
9 | # IE 9-11
--------------------------------------------------------------------------------
/src/app/app-routing.module.ts:
--------------------------------------------------------------------------------
1 | import {NgModule} from '@angular/core';
2 | import {RouterModule, Routes} from '@angular/router';
3 |
4 | const routes: Routes = [
5 | {path: 'page', loadChildren: () => import('./second-page/second.module').then(m => m.SecondModule)},
6 | {path: '', loadChildren: () => import('./main/main.module').then(m => m.MainModule)},
7 | ];
8 |
9 | @NgModule({
10 | imports: [RouterModule.forRoot(routes)],
11 | exports: [RouterModule],
12 | })
13 | export class AppRoutingModule {
14 | }
15 |
16 |
--------------------------------------------------------------------------------
/src/app/app.component.html:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/src/app/app.component.scss:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RaphaelJenni/FirebaseUI-Angular/4e78bf48e2329bd62e5817b6915b869f08c6a88b/src/app/app.component.scss
--------------------------------------------------------------------------------
/src/app/app.component.ts:
--------------------------------------------------------------------------------
1 | import { Component } from '@angular/core';
2 | import { RouterOutlet } from '@angular/router';
3 |
4 | @Component({
5 | selector: 'fbui-ng-root',
6 | templateUrl: './app.component.html',
7 | styleUrls: ['./app.component.scss'],
8 | standalone: true,
9 | imports: [RouterOutlet]
10 | })
11 | export class AppComponent {
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/src/app/main/main.component.html:
--------------------------------------------------------------------------------
1 | FirebaseUI-Angular Sample
2 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/src/app/main/main.component.scss:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RaphaelJenni/FirebaseUI-Angular/4e78bf48e2329bd62e5817b6915b869f08c6a88b/src/app/main/main.component.scss
--------------------------------------------------------------------------------
/src/app/main/main.component.ts:
--------------------------------------------------------------------------------
1 | import {Component, OnInit} from '@angular/core';
2 | import {AngularFireAuth} from '@angular/fire/compat/auth';
3 | import { FirebaseUISignInFailure, FirebaseUISignInSuccessWithAuthResult, FirebaseUIModule } from 'firebaseui-angular';
4 | import { Router, RouterLink } from '@angular/router';
5 |
6 | @Component({
7 | selector: 'fbui-ng-main',
8 | templateUrl: './main.component.html',
9 | styleUrls: ['./main.component.scss'],
10 | standalone: true,
11 | imports: [FirebaseUIModule, RouterLink]
12 | })
13 | export class MainComponent implements OnInit {
14 |
15 |
16 | constructor(private afAuth: AngularFireAuth, private router: Router) {
17 | }
18 |
19 | ngOnInit(): void {
20 | this.afAuth.authState.subscribe(d => console.log(d));
21 | }
22 |
23 | logout() {
24 | this.afAuth.signOut();
25 | }
26 |
27 | successCallback(data: FirebaseUISignInSuccessWithAuthResult) {
28 | console.log('successCallback', data);
29 | this.router.navigate(['page']);
30 | }
31 |
32 | errorCallback(data: FirebaseUISignInFailure) {
33 | console.warn('errorCallback', data);
34 | }
35 |
36 | uiShownCallback() {
37 | console.log('UI shown');
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/src/app/main/main.module.ts:
--------------------------------------------------------------------------------
1 | import {NgModule} from '@angular/core';
2 | import {CommonModule} from '@angular/common';
3 | import {MainComponent} from './main.component';
4 | import {FirebaseUIModule} from 'firebaseui-angular';
5 | import {RouterModule, Routes} from '@angular/router';
6 |
7 | const routes: Routes = [
8 | {path: '', component: MainComponent},
9 | ];
10 |
11 | @NgModule({
12 | imports: [
13 | CommonModule,
14 | FirebaseUIModule.forFeature({ tosUrl: 'MAIN_MODULE' }),
15 | RouterModule.forChild(routes),
16 | MainComponent
17 | ]
18 | })
19 | export class MainModule {
20 | }
21 |
--------------------------------------------------------------------------------
/src/app/second-page/second-page.component.html:
--------------------------------------------------------------------------------
1 |
2 | second-page works
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/src/app/second-page/second-page.component.scss:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RaphaelJenni/FirebaseUI-Angular/4e78bf48e2329bd62e5817b6915b869f08c6a88b/src/app/second-page/second-page.component.scss
--------------------------------------------------------------------------------
/src/app/second-page/second-page.component.ts:
--------------------------------------------------------------------------------
1 | import {Component, OnInit} from '@angular/core';
2 | import {AngularFireAuth} from '@angular/fire/compat/auth';
3 | import { FirebaseUISignInSuccessWithAuthResult, FirebaseUIModule } from 'firebaseui-angular';
4 | import { RouterLink } from '@angular/router';
5 |
6 | @Component({
7 | selector: 'fbui-ng-second-page',
8 | templateUrl: './second-page.component.html',
9 | styleUrls: ['./second-page.component.scss'],
10 | standalone: true,
11 | imports: [FirebaseUIModule, RouterLink]
12 | })
13 | export class SecondPageComponent implements OnInit {
14 |
15 | constructor(private afAuth: AngularFireAuth) {
16 | }
17 |
18 | ngOnInit(): void {
19 | this.afAuth.authState.subscribe(d => console.log(d));
20 | }
21 |
22 | logout() {
23 | this.afAuth.signOut();
24 | }
25 |
26 | successCallback(data: FirebaseUISignInSuccessWithAuthResult) {
27 | console.log(data);
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/src/app/second-page/second.module.ts:
--------------------------------------------------------------------------------
1 | import {NgModule} from '@angular/core';
2 | import {CommonModule} from '@angular/common';
3 | import {SecondPageComponent} from './second-page.component';
4 | import {RouterModule, Routes} from '@angular/router';
5 | import {firebase, FirebaseUIModule} from 'firebaseui-angular';
6 |
7 | const routes: Routes = [
8 | {path: '', component: SecondPageComponent},
9 | ];
10 |
11 |
12 | @NgModule({
13 | imports: [
14 | CommonModule,
15 | FirebaseUIModule.forFeature({
16 | signInOptions: [
17 | firebase.auth.GoogleAuthProvider.PROVIDER_ID
18 | ]
19 | }),
20 | RouterModule.forChild(routes),
21 | SecondPageComponent
22 | ]
23 | })
24 | export class SecondModule {
25 | }
26 |
--------------------------------------------------------------------------------
/src/assets/.gitkeep:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RaphaelJenni/FirebaseUI-Angular/4e78bf48e2329bd62e5817b6915b869f08c6a88b/src/assets/.gitkeep
--------------------------------------------------------------------------------
/src/environments/environment.prod.ts:
--------------------------------------------------------------------------------
1 | export const environment = {
2 | production: true
3 | };
4 |
--------------------------------------------------------------------------------
/src/environments/environment.ts:
--------------------------------------------------------------------------------
1 | // This file can be replaced during build by using the `fileReplacements` array.
2 | // `ng build ---prod` replaces `environment.ts` with `environment.prod.ts`.
3 | // The list of file replacements can be found in `angular.json`.
4 |
5 | export const environment = {
6 | production: false,
7 | firebaseConfig: {
8 | apiKey: '',
9 | authDomain: '',
10 | databaseURL: '',
11 | projectId: '',
12 | storageBucket: '',
13 | messagingSenderId: ''
14 | }
15 | };
16 |
17 |
18 | /*
19 | * In development mode, to ignore zone related error stack frames such as
20 | * `zone.run`, `zoneDelegate.invokeTask` for easier debugging, you can
21 | * import the following file, but please comment it out in production mode
22 | * because it will have performance impact when throw error
23 | */
24 | // import 'zone.js/plugins/zone-error'; // Included with Angular CLI.
25 |
--------------------------------------------------------------------------------
/src/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RaphaelJenni/FirebaseUI-Angular/4e78bf48e2329bd62e5817b6915b869f08c6a88b/src/favicon.ico
--------------------------------------------------------------------------------
/src/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | FirebaseuiAngular
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/src/karma.conf.js:
--------------------------------------------------------------------------------
1 | // Karma configuration file, see link for more information
2 | // https://karma-runner.github.io/1.0/config/configuration-file.html
3 |
4 | module.exports = function (config) {
5 | config.set({
6 | basePath: '',
7 | frameworks: ['jasmine', '@angular-devkit/build-angular'],
8 | plugins: [
9 | require('karma-jasmine'),
10 | require('karma-chrome-launcher'),
11 | require('karma-jasmine-html-reporter'),
12 | require('karma-coverage-istanbul-reporter'),
13 | require('@angular-devkit/build-angular/plugins/karma')
14 | ],
15 | client: {
16 | clearContext: false // leave Jasmine Spec Runner output visible in browser
17 | },
18 | coverageIstanbulReporter: {
19 | dir: require('path').join(__dirname, '../coverage'),
20 | reports: ['html', 'lcovonly'],
21 | fixWebpackSourcePaths: true
22 | },
23 | reporters: ['progress', 'kjhtml'],
24 | port: 9876,
25 | colors: true,
26 | logLevel: config.LOG_INFO,
27 | autoWatch: true,
28 | browsers: ['Chrome'],
29 | singleRun: false
30 | });
31 | };
--------------------------------------------------------------------------------
/src/main.ts:
--------------------------------------------------------------------------------
1 | import {enableProdMode, importProvidersFrom} from '@angular/core';
2 |
3 |
4 | import {environment} from './environments/environment';
5 | import {AppComponent} from './app/app.component';
6 | import {firebase, firebaseui, FirebaseUIModule} from 'firebaseui-angular';
7 | import {AngularFireAuthModule} from '@angular/fire/compat/auth';
8 | import {AngularFireModule} from '@angular/fire/compat';
9 | import {AppRoutingModule} from './app/app-routing.module';
10 | import {FormsModule} from '@angular/forms';
11 | import {bootstrapApplication, BrowserModule} from '@angular/platform-browser';
12 |
13 | const firebaseUiAuthConfig: firebaseui.auth.Config = {
14 | signInFlow: 'popup',
15 | signInOptions: [
16 | firebase.auth.GoogleAuthProvider.PROVIDER_ID,
17 | {
18 | scopes: [
19 | 'public_profile',
20 | 'email',
21 | 'user_likes',
22 | 'user_friends'
23 | ],
24 | customParameters: {
25 | 'auth_type': 'reauthenticate'
26 | },
27 | provider: firebase.auth.FacebookAuthProvider.PROVIDER_ID
28 | },
29 | firebase.auth.TwitterAuthProvider.PROVIDER_ID,
30 | firebase.auth.GithubAuthProvider.PROVIDER_ID,
31 | {
32 | requireDisplayName: false,
33 | provider: firebase.auth.EmailAuthProvider.PROVIDER_ID
34 | },
35 | firebase.auth.PhoneAuthProvider.PROVIDER_ID,
36 | firebaseui.auth.AnonymousAuthProvider.PROVIDER_ID
37 | ],
38 | tosUrl: '',
39 | privacyPolicyUrl: '',
40 | credentialHelper: firebaseui.auth.CredentialHelper.GOOGLE_YOLO
41 | };
42 |
43 |
44 | if (environment.production) {
45 | enableProdMode();
46 | }
47 |
48 | bootstrapApplication(AppComponent, {
49 | providers: [importProvidersFrom(
50 | BrowserModule,
51 | FormsModule,
52 | AppRoutingModule,
53 | AngularFireModule.initializeApp(environment.firebaseConfig),
54 | AngularFireAuthModule,
55 | FirebaseUIModule.forRoot(firebaseUiAuthConfig))]
56 | })
57 | .catch(err => console.log(err));
58 |
--------------------------------------------------------------------------------
/src/polyfills.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * This file includes polyfills needed by Angular and is loaded before the app.
3 | * You can add your own extra polyfills to this file.
4 | *
5 | * This file is divided into 2 sections:
6 | * 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers.
7 | * 2. Application imports. Files imported after ZoneJS that should be loaded before your main
8 | * file.
9 | *
10 | * The current setup is for so-called "evergreen" browsers; the last versions of browsers that
11 | * automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera),
12 | * Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile.
13 | *
14 | * Learn more in https://angular.io/docs/ts/latest/guide/browser-support.html
15 | */
16 |
17 | /***************************************************************************************************
18 | * BROWSER POLYFILLS
19 | */
20 |
21 | /** IE9, IE10 and IE11 requires all of the following polyfills. **/
22 | // import 'core-js/es6/symbol';
23 | // import 'core-js/es6/object';
24 | // import 'core-js/es6/function';
25 | // import 'core-js/es6/parse-int';
26 | // import 'core-js/es6/parse-float';
27 | // import 'core-js/es6/number';
28 | // import 'core-js/es6/math';
29 | // import 'core-js/es6/string';
30 | // import 'core-js/es6/date';
31 | // import 'core-js/es6/array';
32 | // import 'core-js/es6/regexp';
33 | // import 'core-js/es6/map';
34 | // import 'core-js/es6/weak-map';
35 | // import 'core-js/es6/set';
36 |
37 | /** IE10 and IE11 requires the following for the Reflect API. */
38 | // import 'core-js/es6/reflect';
39 |
40 |
41 | /** Evergreen browsers require these. **/
42 | // Used for reflect-metadata in JIT. If you use AOT (and only Angular decorators), you can remove.
43 |
44 | /**
45 | * By default, zone.js will patch all possible macroTask and DomEvents
46 | * user can disable parts of macroTask/DomEvents patch by setting following flags
47 | */
48 |
49 | // (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame
50 | // (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick
51 | // (window as any).__zone_symbol__BLACK_LISTED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames
52 |
53 | /*
54 | * in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js
55 | * with the following flag, it will bypass `zone.js` patch for IE/Edge
56 | */
57 | // (window as any).__Zone_enable_cross_context_check = true;
58 |
59 | /***************************************************************************************************
60 | * Zone JS is required by default for Angular itself.
61 | */
62 | import 'zone.js'; // Included with Angular CLI.
63 |
64 |
65 |
66 | /***************************************************************************************************
67 | * APPLICATION IMPORTS
68 | */
69 |
--------------------------------------------------------------------------------
/src/styles.scss:
--------------------------------------------------------------------------------
1 | /* You can add global styles to this file, and also import other style files */
2 |
--------------------------------------------------------------------------------
/src/test.ts:
--------------------------------------------------------------------------------
1 | // This file is required by karma.conf.js and loads recursively all the .spec and framework files
2 |
3 | import 'zone.js/testing';
4 | import { getTestBed } from '@angular/core/testing';
5 | import {
6 | BrowserDynamicTestingModule,
7 | platformBrowserDynamicTesting
8 | } from '@angular/platform-browser-dynamic/testing';
9 |
10 | // First, initialize the Angular testing environment.
11 | getTestBed().initTestEnvironment(
12 | BrowserDynamicTestingModule,
13 | platformBrowserDynamicTesting(), {
14 | teardown: { destroyAfterEach: false }
15 | }
16 | );
17 |
--------------------------------------------------------------------------------
/src/tsconfig.app.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../tsconfig.json",
3 | "compilerOptions": {
4 | "outDir": "../out-tsc/app",
5 | "types": []
6 | },
7 | "files": [
8 | "main.ts",
9 | "polyfills.ts"
10 | ],
11 | "include": [
12 | "src/**/*.d.ts"
13 | ]
14 | }
15 |
--------------------------------------------------------------------------------
/src/tsconfig.spec.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../tsconfig.json",
3 | "compilerOptions": {
4 | "outDir": "../out-tsc/spec",
5 | "types": [
6 | "jasmine",
7 | "node"
8 | ]
9 | },
10 | "files": [
11 | "test.ts",
12 | "polyfills.ts"
13 | ],
14 | "include": [
15 | "**/*.spec.ts",
16 | "**/*.d.ts"
17 | ]
18 | }
19 |
--------------------------------------------------------------------------------
/src/tslint.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../tslint.json",
3 | "rules": {
4 | "directive-selector": [
5 | true,
6 | "attribute",
7 | "fbui-ng",
8 | "camelCase"
9 | ],
10 | "component-selector": [
11 | true,
12 | "element",
13 | "fbui-ng",
14 | "kebab-case"
15 | ]
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compileOnSave": false,
3 | "compilerOptions": {
4 | "baseUrl": "./",
5 | "importHelpers": true,
6 | "module": "es2020",
7 | "esModuleInterop": true,
8 | "outDir": "./dist/out-tsc",
9 | "sourceMap": true,
10 | "declaration": false,
11 | "moduleResolution": "node",
12 | "experimentalDecorators": true,
13 | "target": "ES2022",
14 | "typeRoots": [
15 | "node_modules/@types"
16 | ],
17 | "lib": [
18 | "es2017",
19 | "dom"
20 | ],
21 | "paths": {
22 | "firebaseui-angular": [
23 | "dist/firebaseui-angular-library"
24 | ],
25 | "firebaseui-angular/*": [
26 | "dist/firebaseui-angular-library/*"
27 | ]
28 | },
29 | "useDefineForClassFields": false
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/tslint.json:
--------------------------------------------------------------------------------
1 | {
2 | "rulesDirectory": [
3 | "node_modules/codelyzer"
4 | ],
5 | "rules": {
6 | "arrow-return-shorthand": true,
7 | "callable-types": true,
8 | "class-name": true,
9 | "comment-format": [
10 | true,
11 | "check-space"
12 | ],
13 | "curly": true,
14 | "deprecation": {
15 | "severity": "warn"
16 | },
17 | "eofline": true,
18 | "forin": true,
19 | "import-blacklist": [
20 | true,
21 | "rxjs/Rx"
22 | ],
23 | "import-spacing": true,
24 | "indent": [
25 | true,
26 | "spaces"
27 | ],
28 | "interface-over-type-literal": true,
29 | "label-position": true,
30 | "max-line-length": [
31 | true,
32 | 140
33 | ],
34 | "member-access": false,
35 | "member-ordering": [
36 | true,
37 | {
38 | "order": [
39 | "static-field",
40 | "instance-field",
41 | "static-method",
42 | "instance-method"
43 | ]
44 | }
45 | ],
46 | "no-arg": true,
47 | "no-bitwise": true,
48 | "no-console": [
49 | true,
50 | "debug",
51 | "info",
52 | "time",
53 | "timeEnd",
54 | "trace"
55 | ],
56 | "no-construct": true,
57 | "no-debugger": true,
58 | "no-duplicate-super": true,
59 | "no-empty": false,
60 | "no-empty-interface": true,
61 | "no-eval": true,
62 | "no-inferrable-types": [
63 | true,
64 | "ignore-params"
65 | ],
66 | "no-misused-new": true,
67 | "no-non-null-assertion": true,
68 | "no-shadowed-variable": true,
69 | "no-string-literal": false,
70 | "no-string-throw": true,
71 | "no-switch-case-fall-through": true,
72 | "no-trailing-whitespace": true,
73 | "no-unnecessary-initializer": true,
74 | "no-unused-expression": true,
75 | "no-var-keyword": true,
76 | "object-literal-sort-keys": false,
77 | "one-line": [
78 | true,
79 | "check-open-brace",
80 | "check-catch",
81 | "check-else",
82 | "check-whitespace"
83 | ],
84 | "prefer-const": true,
85 | "quotemark": [
86 | true,
87 | "single"
88 | ],
89 | "radix": true,
90 | "semicolon": [
91 | true,
92 | "always"
93 | ],
94 | "triple-equals": [
95 | true,
96 | "allow-null-check"
97 | ],
98 | "typedef-whitespace": [
99 | true,
100 | {
101 | "call-signature": "nospace",
102 | "index-signature": "nospace",
103 | "parameter": "nospace",
104 | "property-declaration": "nospace",
105 | "variable-declaration": "nospace"
106 | }
107 | ],
108 | "unified-signatures": true,
109 | "variable-name": false,
110 | "whitespace": [
111 | true,
112 | "check-branch",
113 | "check-decl",
114 | "check-operator",
115 | "check-separator",
116 | "check-type"
117 | ],
118 | "no-output-on-prefix": true,
119 | "use-input-property-decorator": true,
120 | "use-output-property-decorator": true,
121 | "use-host-property-decorator": true,
122 | "no-input-rename": true,
123 | "no-output-rename": true,
124 | "use-life-cycle-interface": true,
125 | "use-pipe-transform-interface": true,
126 | "component-class-suffix": true,
127 | "directive-class-suffix": true
128 | }
129 | }
130 |
--------------------------------------------------------------------------------