├── src
├── styles.css
├── assets
│ └── .gitkeep
├── favicon.ico
├── environments
│ ├── environment.prod.ts
│ └── environment.ts
├── app
│ ├── app.component.ts
│ └── app.module.ts
├── index.html
├── main.ts
├── test.ts
└── polyfills.ts
├── .vscode
├── settings.json
└── extensions.json
├── .prettierrc
├── staticwebapp.config.json
├── e2e
├── tsconfig.json
├── src
│ ├── app.po.ts
│ └── app.e2e-spec.ts
└── protractor.conf.js
├── tsconfig.app.json
├── .editorconfig
├── tsconfig.spec.json
├── swa-cli.config.json
├── .browserslistrc
├── tsconfig.json
├── .gitignore
├── karma.conf.js
├── README.md
├── package.json
├── angular.json
└── tslint.json
/src/styles.css:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/assets/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "staticWebApps.outputSubpath": "dist/angular-basic"
3 | }
4 |
--------------------------------------------------------------------------------
/src/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/staticwebdev/angular-basic/HEAD/src/favicon.ico
--------------------------------------------------------------------------------
/.prettierrc:
--------------------------------------------------------------------------------
1 | {
2 | "tabWidth": 2,
3 | "useTabs": false,
4 | "singleQuote": true
5 | }
6 |
--------------------------------------------------------------------------------
/src/environments/environment.prod.ts:
--------------------------------------------------------------------------------
1 | export const environment = {
2 | production: true
3 | };
4 |
--------------------------------------------------------------------------------
/staticwebapp.config.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationFallback": {
3 | "rewrite": "/index.html"
4 | }
5 | }
--------------------------------------------------------------------------------
/.vscode/extensions.json:
--------------------------------------------------------------------------------
1 | {
2 | "recommendations": [
3 | "ms-azuretools.vscode-azurestaticwebapps"
4 | ]
5 | }
6 |
--------------------------------------------------------------------------------
/src/app/app.component.ts:
--------------------------------------------------------------------------------
1 | import { Component } from '@angular/core';
2 |
3 | @Component({
4 | selector: 'app-root',
5 | template: `
Hello {{value}}
`,
6 | })
7 | export class AppComponent {
8 | value = 'World';
9 | }
10 |
--------------------------------------------------------------------------------
/e2e/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../tsconfig.json",
3 | "compilerOptions": {
4 | "outDir": "../out-tsc/e2e",
5 | "module": "commonjs",
6 | "target": "es2018",
7 | "types": [
8 | "jasmine",
9 | "jasminewd2",
10 | "node"
11 | ]
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/tsconfig.app.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "./tsconfig.json",
3 | "compilerOptions": {
4 | "outDir": "./out-tsc/app",
5 | "types": []
6 | },
7 | "files": [
8 | "src/main.ts",
9 | "src/polyfills.ts"
10 | ],
11 | "include": [
12 | "src/**/*.d.ts"
13 | ]
14 | }
15 |
--------------------------------------------------------------------------------
/.editorconfig:
--------------------------------------------------------------------------------
1 | # Editor configuration, see https://editorconfig.org
2 | root = true
3 |
4 | [*]
5 | charset = utf-8
6 | indent_style = space
7 | indent_size = 2
8 | insert_final_newline = true
9 | trim_trailing_whitespace = true
10 |
11 | [*.md]
12 | max_line_length = off
13 | trim_trailing_whitespace = false
14 |
--------------------------------------------------------------------------------
/src/app/app.module.ts:
--------------------------------------------------------------------------------
1 | import { BrowserModule } from "@angular/platform-browser";
2 | import { NgModule } from "@angular/core";
3 |
4 | import { AppComponent } from "./app.component";
5 |
6 | @NgModule({
7 | declarations: [AppComponent],
8 | imports: [BrowserModule],
9 | bootstrap: [AppComponent]
10 | })
11 | export class AppModule {}
12 |
--------------------------------------------------------------------------------
/e2e/src/app.po.ts:
--------------------------------------------------------------------------------
1 | import { browser, by, element } from 'protractor';
2 |
3 | export class AppPage {
4 | navigateTo(): Promise {
5 | return browser.get(browser.baseUrl) as Promise;
6 | }
7 |
8 | getTitleText(): Promise {
9 | return element(by.css('app-root .content span')).getText() as Promise;
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/src/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Hello
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/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 | "src/polyfills.ts"
13 | ],
14 | "include": [
15 | "src/**/*.spec.ts",
16 | "src/**/*.d.ts"
17 | ]
18 | }
19 |
--------------------------------------------------------------------------------
/swa-cli.config.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "https://raw.githubusercontent.com/Azure/static-web-apps-cli/main/schema/swa-cli.config.schema.json",
3 | "configurations": {
4 | "app": {
5 | "context": "http://localhost:4200",
6 | "run": "npm start",
7 | "apiLocation": "",
8 | "outputLocation": "dist/angular-basic",
9 | "devserverTimeout": 10000,
10 | "open": "true"
11 | }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/src/main.ts:
--------------------------------------------------------------------------------
1 | import { enableProdMode } from '@angular/core';
2 | import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
3 |
4 | import { AppModule } from './app/app.module';
5 | import { environment } from './environments/environment';
6 |
7 | if (environment.production) {
8 | enableProdMode();
9 | }
10 |
11 | platformBrowserDynamic().bootstrapModule(AppModule)
12 | .catch(err => console.error(err));
13 |
--------------------------------------------------------------------------------
/.browserslistrc:
--------------------------------------------------------------------------------
1 | # This file is used by the build system to adjust CSS and JS output to support the specified browsers below.
2 | # For additional information regarding the format and rule options, please see:
3 | # https://github.com/browserslist/browserslist#queries
4 |
5 | # You can see what browsers were selected by your queries by running:
6 | # npx browserslist
7 |
8 | > 0.5%
9 | last 2 versions
10 | Firefox ESR
11 | not dead
12 | not IE 9-11 # For IE 9-11 support, remove 'not'.
--------------------------------------------------------------------------------
/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compileOnSave": false,
3 | "compilerOptions": {
4 | "baseUrl": "./",
5 | "outDir": "./dist/out-tsc",
6 | "sourceMap": true,
7 | "declaration": false,
8 | "downlevelIteration": true,
9 | "experimentalDecorators": true,
10 | "module": "es2020",
11 | "moduleResolution": "node",
12 | "importHelpers": true,
13 | "target": "es2015",
14 | "typeRoots": [
15 | "node_modules/@types"
16 | ],
17 | "lib": [
18 | "es2018",
19 | "dom"
20 | ]
21 | },
22 | "angularCompilerOptions": {
23 | "fullTemplateTypeCheck": true,
24 | "strictInjectionParameters": true
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/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 | };
8 |
9 | /*
10 | * For easier debugging in development mode, you can import the following file
11 | * to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`.
12 | *
13 | * This import should be commented out in production mode because it will have a negative impact
14 | * on performance if an error is thrown.
15 | */
16 | // import 'zone.js/plugins/zone-error'; // Included with Angular CLI.
17 |
--------------------------------------------------------------------------------
/e2e/src/app.e2e-spec.ts:
--------------------------------------------------------------------------------
1 | import { AppPage } from './app.po';
2 | import { browser, logging } from 'protractor';
3 |
4 | describe('workspace-project App', () => {
5 | let page: AppPage;
6 |
7 | beforeEach(() => {
8 | page = new AppPage();
9 | });
10 |
11 | it('should display welcome message', () => {
12 | page.navigateTo();
13 | expect(page.getTitleText()).toEqual('angular-basic app is running!');
14 | });
15 |
16 | afterEach(async () => {
17 | // Assert that there are no errors emitted from the browser
18 | const logs = await browser.manage().logs().get(logging.Type.BROWSER);
19 | expect(logs).not.toContain(
20 | jasmine.objectContaining({
21 | level: logging.Level.SEVERE,
22 | } as logging.Entry)
23 | );
24 | });
25 | });
26 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # See http://help.github.com/ignore-files/ for more about ignoring files.
2 |
3 | # compiled output
4 | /dist
5 | /tmp
6 | /out-tsc
7 | # Only exists if Bazel was run
8 | /bazel-out
9 |
10 | # dependencies
11 | /node_modules
12 |
13 | # profiling files
14 | chrome-profiler-events*.json
15 | speed-measure-plugin*.json
16 |
17 | # IDEs and editors
18 | /.idea
19 | .project
20 | .classpath
21 | .c9/
22 | *.launch
23 | .settings/
24 | *.sublime-workspace
25 |
26 | # IDE - VSCode
27 | .vscode/*
28 | !.vscode/settings.json
29 | !.vscode/tasks.json
30 | !.vscode/launch.json
31 | !.vscode/extensions.json
32 | .history/*
33 |
34 | # misc
35 | /.angular/cache
36 | /.sass-cache
37 | /connect.lock
38 | /coverage
39 | /libpeerconnection.log
40 | npm-debug.log
41 | yarn-error.log
42 | testem.log
43 | /typings
44 |
45 | # System Files
46 | .DS_Store
47 | Thumbs.db
48 |
--------------------------------------------------------------------------------
/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 | declare const require: {
11 | context(path: string, deep?: boolean, filter?: RegExp): {
12 | keys(): string[];
13 | (id: string): T;
14 | };
15 | };
16 |
17 | // First, initialize the Angular testing environment.
18 | getTestBed().initTestEnvironment(
19 | BrowserDynamicTestingModule,
20 | platformBrowserDynamicTesting(), {
21 | teardown: { destroyAfterEach: false }
22 | }
23 | );
24 | // Then we find all the tests.
25 | const context = require.context('./', true, /\.spec\.ts$/);
26 | // And load the modules.
27 | context.keys().map(context);
28 |
--------------------------------------------------------------------------------
/e2e/protractor.conf.js:
--------------------------------------------------------------------------------
1 | // @ts-check
2 | // Protractor configuration file, see link for more information
3 | // https://github.com/angular/protractor/blob/master/lib/config.ts
4 |
5 | const { SpecReporter } = require('jasmine-spec-reporter');
6 |
7 | /**
8 | * @type { import("protractor").Config }
9 | */
10 | exports.config = {
11 | allScriptsTimeout: 11000,
12 | specs: [
13 | './src/**/*.e2e-spec.ts'
14 | ],
15 | capabilities: {
16 | browserName: 'chrome'
17 | },
18 | directConnect: true,
19 | baseUrl: 'http://localhost:4200/',
20 | framework: 'jasmine',
21 | jasmineNodeOpts: {
22 | showColors: true,
23 | defaultTimeoutInterval: 30000,
24 | print: function() {}
25 | },
26 | onPrepare() {
27 | require('ts-node').register({
28 | project: require('path').join(__dirname, './tsconfig.json')
29 | });
30 | jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } }));
31 | }
32 | };
--------------------------------------------------------------------------------
/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/angular-basic'),
20 | reports: ['html', 'lcovonly', 'text-summary'],
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 | restartOnFileChange: true,
31 | });
32 | };
33 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Angular basic
2 |
3 | [Azure Static Web Apps](https://docs.microsoft.com/azure/static-web-apps/overview) allows you to easily build [Angular](https://angular.io/) apps in minutes. Use this repo with the [Angular quickstart](https://docs.microsoft.com/azure/static-web-apps/getting-started?tabs=angular) to build and customize a new static site.
4 |
5 | This project was generated with [Angular CLI](https://github.com/angular/angular-cli).
6 |
7 | ## Project setup
8 |
9 | ```bash
10 | npm install
11 | ```
12 |
13 | ### Start the dev server
14 |
15 | ```bash
16 | npm run swa:start
17 | ```
18 |
19 | > Note: This command will use the local configuration file `swa-cli.config.json`.
20 |
21 | ### Run unit tests
22 |
23 | ```bash
24 | npm test
25 | ```
26 |
27 | ### Run e2e tests
28 |
29 | ```bash
30 | npm run e2e
31 | ```
32 |
33 | ### Lints and fixes files
34 |
35 | ```bash
36 | npm run lint
37 | ```
38 |
39 | ### Compiles and minifies for production
40 |
41 | ```bash
42 | npm run build
43 | ```
44 |
45 | ### Login to Azure
46 |
47 | ```bash
48 | npm run swa:login
49 | ```
50 |
51 | ### Deploy to Azure
52 |
53 | ```bash
54 | npm run swa:deploy
55 | ```
56 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "angular-basic",
3 | "version": "0.0.0",
4 | "scripts": {
5 | "ng": "ng",
6 | "start": "ng serve",
7 | "build": "ng build --configuration production",
8 | "test": "ng test",
9 | "lint": "ng lint",
10 | "e2e": "ng e2e",
11 | "swa:start": "swa start app",
12 | "swa:login": "swa deploy app",
13 | "swa:deploy": "swa login"
14 | },
15 | "private": true,
16 | "dependencies": {
17 | "@angular/animations": "~13.2.5",
18 | "@angular/common": "~13.2.5",
19 | "@angular/compiler": "~13.2.5",
20 | "@angular/core": "~13.2.5",
21 | "@angular/forms": "~13.2.5",
22 | "@angular/platform-browser": "~13.2.5",
23 | "@angular/platform-browser-dynamic": "~13.2.5",
24 | "@angular/router": "~13.2.5",
25 | "rxjs": "~6.6.6",
26 | "tslib": "^2.0.0",
27 | "zone.js": "~0.11.4"
28 | },
29 | "devDependencies": {
30 | "@angular-devkit/build-angular": "~13.2.5",
31 | "@angular/cli": "~13.2.5",
32 | "@angular/compiler-cli": "~13.2.5",
33 | "@angular/language-service": "~13.2.5",
34 | "@azure/static-web-apps-cli": "*",
35 | "@types/jasmine": "~3.6.0",
36 | "@types/jasminewd2": "~2.0.3",
37 | "@types/node": "^12.11.1",
38 | "codelyzer": "^6.0.0",
39 | "jasmine-core": "~3.6.0",
40 | "jasmine-spec-reporter": "~5.0.0",
41 | "karma": "~6.3.17",
42 | "karma-chrome-launcher": "~3.1.0",
43 | "karma-coverage-istanbul-reporter": "~3.0.2",
44 | "karma-jasmine": "~4.0.0",
45 | "karma-jasmine-html-reporter": "^1.5.0",
46 | "protractor": "~7.0.0",
47 | "ts-node": "~8.3.0",
48 | "tslint": "~6.1.0",
49 | "typescript": "~4.5.5"
50 | }
51 | }
52 |
--------------------------------------------------------------------------------
/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/guide/browser-support
15 | */
16 |
17 | /***************************************************************************************************
18 | * BROWSER POLYFILLS
19 | */
20 |
21 | /**
22 | * By default, zone.js will patch all possible macroTask and DomEvents
23 | * user can disable parts of macroTask/DomEvents patch by setting following flags
24 | * because those flags need to be set before `zone.js` being loaded, and webpack
25 | * will put import in the top of bundle, so user need to create a separate file
26 | * in this directory (for example: zone-flags.ts), and put the following flags
27 | * into that file, and then add the following code before importing zone.js.
28 | * import './zone-flags.ts';
29 | *
30 | * The flags allowed in zone-flags.ts are listed here.
31 | *
32 | * The following flags will work for all browsers.
33 | *
34 | * (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame
35 | * (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick
36 | * (window as any).__zone_symbol__UNPATCHED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames
37 | *
38 | * in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js
39 | * with the following flag, it will bypass `zone.js` patch for IE/Edge
40 | *
41 | * (window as any).__Zone_enable_cross_context_check = true;
42 | *
43 | */
44 |
45 | /***************************************************************************************************
46 | * Zone JS is required by default for Angular itself.
47 | */
48 | import 'zone.js'; // Included with Angular CLI.
49 |
50 |
51 | /***************************************************************************************************
52 | * APPLICATION IMPORTS
53 | */
54 |
--------------------------------------------------------------------------------
/angular.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3 | "cli": {
4 | "analytics": false
5 | },
6 | "version": 1,
7 | "newProjectRoot": "projects",
8 | "projects": {
9 | "angular-basic": {
10 | "projectType": "application",
11 | "schematics": {},
12 | "root": "",
13 | "sourceRoot": "src",
14 | "prefix": "app",
15 | "architect": {
16 | "build": {
17 | "builder": "@angular-devkit/build-angular:browser",
18 | "options": {
19 | "outputPath": "dist/angular-basic",
20 | "index": "src/index.html",
21 | "main": "src/main.ts",
22 | "polyfills": "src/polyfills.ts",
23 | "tsConfig": "tsconfig.app.json",
24 | "assets": ["src/favicon.ico", "src/assets"],
25 | "styles": ["src/styles.css"],
26 | "scripts": [],
27 | "vendorChunk": true,
28 | "extractLicenses": false,
29 | "buildOptimizer": false,
30 | "sourceMap": true,
31 | "optimization": false,
32 | "namedChunks": true
33 | },
34 | "configurations": {
35 | "production": {
36 | "fileReplacements": [
37 | {
38 | "replace": "src/environments/environment.ts",
39 | "with": "src/environments/environment.prod.ts"
40 | }
41 | ],
42 | "optimization": true,
43 | "outputHashing": "all",
44 | "sourceMap": false,
45 | "namedChunks": false,
46 | "extractLicenses": true,
47 | "vendorChunk": false,
48 | "buildOptimizer": true,
49 | "budgets": [
50 | {
51 | "type": "initial",
52 | "maximumWarning": "2mb",
53 | "maximumError": "5mb"
54 | },
55 | {
56 | "type": "anyComponentStyle",
57 | "maximumWarning": "6kb",
58 | "maximumError": "10kb"
59 | }
60 | ]
61 | }
62 | },
63 | "defaultConfiguration": ""
64 | },
65 | "serve": {
66 | "builder": "@angular-devkit/build-angular:dev-server",
67 | "options": {
68 | "browserTarget": "angular-basic:build"
69 | },
70 | "configurations": {
71 | "production": {
72 | "browserTarget": "angular-basic:build:production"
73 | }
74 | }
75 | },
76 | "extract-i18n": {
77 | "builder": "@angular-devkit/build-angular:extract-i18n",
78 | "options": {
79 | "browserTarget": "angular-basic:build"
80 | }
81 | },
82 | "test": {
83 | "builder": "@angular-devkit/build-angular:karma",
84 | "options": {
85 | "main": "src/test.ts",
86 | "polyfills": "src/polyfills.ts",
87 | "tsConfig": "tsconfig.spec.json",
88 | "karmaConfig": "karma.conf.js",
89 | "assets": ["src/favicon.ico", "src/assets"],
90 | "styles": ["src/styles.css"],
91 | "scripts": []
92 | }
93 | },
94 | "e2e": {
95 | "builder": "@angular-devkit/build-angular:protractor",
96 | "options": {
97 | "protractorConfig": "e2e/protractor.conf.js",
98 | "devServerTarget": "angular-basic:serve"
99 | },
100 | "configurations": {
101 | "production": {
102 | "devServerTarget": "angular-basic:serve:production"
103 | }
104 | }
105 | }
106 | }
107 | }
108 | },
109 | "defaultProject": "angular-basic"
110 | }
111 |
--------------------------------------------------------------------------------
/tslint.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "tslint:recommended",
3 | "rules": {
4 | "align": {
5 | "options": [
6 | "parameters",
7 | "statements"
8 | ]
9 | },
10 | "array-type": false,
11 | "arrow-parens": false,
12 | "arrow-return-shorthand": true,
13 | "deprecation": {
14 | "severity": "warning"
15 | },
16 | "component-class-suffix": true,
17 | "contextual-lifecycle": true,
18 | "curly": true,
19 | "directive-class-suffix": true,
20 | "directive-selector": [
21 | true,
22 | "attribute",
23 | "app",
24 | "camelCase"
25 | ],
26 | "component-selector": [
27 | true,
28 | "element",
29 | "app",
30 | "kebab-case"
31 | ],
32 | "eofline": true,
33 | "import-blacklist": [
34 | true,
35 | "rxjs/Rx"
36 | ],
37 | "import-spacing": true,
38 | "indent": {
39 | "options": [
40 | "spaces"
41 | ]
42 | },
43 | "interface-name": false,
44 | "max-classes-per-file": false,
45 | "max-line-length": [
46 | true,
47 | 140
48 | ],
49 | "member-access": false,
50 | "member-ordering": [
51 | true,
52 | {
53 | "order": [
54 | "static-field",
55 | "instance-field",
56 | "static-method",
57 | "instance-method"
58 | ]
59 | }
60 | ],
61 | "no-consecutive-blank-lines": false,
62 | "no-console": [
63 | true,
64 | "debug",
65 | "info",
66 | "time",
67 | "timeEnd",
68 | "trace"
69 | ],
70 | "no-empty": false,
71 | "no-inferrable-types": [
72 | true,
73 | "ignore-params"
74 | ],
75 | "no-non-null-assertion": true,
76 | "no-redundant-jsdoc": true,
77 | "no-switch-case-fall-through": true,
78 | "no-var-requires": false,
79 | "object-literal-key-quotes": [
80 | true,
81 | "as-needed"
82 | ],
83 | "object-literal-sort-keys": false,
84 | "ordered-imports": false,
85 | "quotemark": [
86 | true,
87 | "single"
88 | ],
89 | "trailing-comma": false,
90 | "no-conflicting-lifecycle": true,
91 | "no-host-metadata-property": true,
92 | "no-input-rename": true,
93 | "no-inputs-metadata-property": true,
94 | "no-output-native": true,
95 | "no-output-on-prefix": true,
96 | "no-output-rename": true,
97 | "semicolon": {
98 | "options": [
99 | "always"
100 | ]
101 | },
102 | "space-before-function-paren": {
103 | "options": {
104 | "anonymous": "never",
105 | "asyncArrow": "always",
106 | "constructor": "never",
107 | "method": "never",
108 | "named": "never"
109 | }
110 | },
111 | "no-outputs-metadata-property": true,
112 | "template-banana-in-box": true,
113 | "template-no-negated-async": true,
114 | "typedef-whitespace": {
115 | "options": [
116 | {
117 | "call-signature": "nospace",
118 | "index-signature": "nospace",
119 | "parameter": "nospace",
120 | "property-declaration": "nospace",
121 | "variable-declaration": "nospace"
122 | },
123 | {
124 | "call-signature": "onespace",
125 | "index-signature": "onespace",
126 | "parameter": "onespace",
127 | "property-declaration": "onespace",
128 | "variable-declaration": "onespace"
129 | }
130 | ]
131 | },
132 | "use-lifecycle-interface": true,
133 | "use-pipe-transform-interface": true,
134 | "variable-name": {
135 | "options": [
136 | "ban-keywords",
137 | "check-format",
138 | "allow-pascal-case"
139 | ]
140 | },
141 | "whitespace": {
142 | "options": [
143 | "check-branch",
144 | "check-decl",
145 | "check-operator",
146 | "check-separator",
147 | "check-type",
148 | "check-typecast"
149 | ]
150 | }
151 | },
152 | "rulesDirectory": [
153 | "codelyzer"
154 | ]
155 | }
--------------------------------------------------------------------------------