├── .editorconfig ├── .gitattributes ├── .github └── workflows │ └── npm-publish.yml ├── .gitignore ├── LICENSE ├── README.md ├── angular.json ├── karma.conf.js ├── ng-package.json ├── package.json ├── src ├── lib │ ├── ngx-font-size.component.html │ ├── ngx-font-size.component.scss │ ├── ngx-font-size.component.spec.ts │ ├── ngx-font-size.component.ts │ └── ngx-font-size.module.ts ├── public-api.ts └── test.ts ├── tsconfig.json ├── tsconfig.lib.json ├── tsconfig.lib.prod.json ├── tsconfig.spec.json └── tslint.json /.editorconfig: -------------------------------------------------------------------------------- 1 | # Editor configuration, see https://editorconfig.org 2 | root = true 3 | 4 | [*] 5 | charset = utf-8 6 | indent_style = space 7 | indent_size = 4 8 | insert_final_newline = true 9 | trim_trailing_whitespace = true 10 | 11 | [*.md] 12 | max_line_length = off 13 | trim_trailing_whitespace = false 14 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | -------------------------------------------------------------------------------- /.github/workflows/npm-publish.yml: -------------------------------------------------------------------------------- 1 | name: npm-publish 2 | on: push 3 | 4 | jobs: 5 | publish: 6 | runs-on: ubuntu-latest 7 | steps: 8 | - uses: actions/checkout@v1 9 | - uses: actions/setup-node@v1 10 | with: 11 | node-version: 10 12 | - run: npm install 13 | - uses: JS-DevTools/npm-publish@v1 14 | with: 15 | token: ${{ secrets.NPM_TOKEN }} 16 | -------------------------------------------------------------------------------- /.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 | 8 | # dependencies 9 | /node_modules 10 | 11 | # profiling files 12 | chrome-profiler-events*.json 13 | speed-measure-plugin*.json 14 | 15 | # IDEs and editors 16 | /.idea 17 | 18 | # misc 19 | /.sass-cache 20 | /connect.lock 21 | /coverage 22 | /libpeerconnection.log 23 | npm-debug.log 24 | yarn-error.log 25 | testem.log 26 | /typings 27 | 28 | # System Files 29 | .DS_Store 30 | Thumbs.db 31 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2020 Wadie 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # ngx-font-size [![npm version](http://img.shields.io/npm/v/ngx-font-size.svg)](https://npmjs.org/package/ngx-font-size) [![StackBlitz](https://img.shields.io/badge/stackblitz-online-orange.svg)](https://stackblitz.com/edit/ngx-font-size) 2 | 3 | > An Angular component for web accessibility that allows the visitor to toggle between font sizes on the app. 4 | 5 | ## Available options 6 | 7 | `mdSize` is set to be the default font size. 8 | 9 | Option | Description 10 | :---:|--- 11 | iconColor | The color of the toggle icons. 12 | selectedColor | The color of the selected icon. 13 | lgSize | A string that represents the *large* font size in px/rem/... 14 | mdSize | A string that represents the *medium* font size in px/rem/... 15 | smSize | A string that represents the *small* font size in px/rem/... 16 | 17 | ## Install 18 | 19 | ```bash 20 | $ npm install ngx-font-size --save 21 | ``` 22 | 23 | ## Usage 24 | 25 | From your Angular `AppModule`: 26 | 27 | ```typescript 28 | import { BrowserModule } from '@angular/platform-browser'; 29 | import { NgModule } from '@angular/core'; 30 | 31 | import { AppComponent } from './app.component'; 32 | 33 | // Import the library 34 | import { NgxFontSizeModule } from 'ngx-font-size'; 35 | 36 | @NgModule({ 37 | declarations: [ 38 | AppComponent 39 | ], 40 | imports: [ 41 | BrowserModule, 42 | NgxFontSizeModule // <-- Add this line 43 | ], 44 | providers: [], 45 | bootstrap: [AppComponent] 46 | }) 47 | export class AppModule { } 48 | ``` 49 | 50 | Once the library is imported, you can use its component in your Angular application: 51 | 52 | ```xml 53 | 54 |

55 | {{title}} 56 |

57 | 64 | ``` 65 | 66 | [StackBlitz Demo](https://stackblitz.com/edit/ngx-font-size) 67 | 68 | ## License 69 | 70 | MIT © [Wadie](https://github.com/wadie) 71 | -------------------------------------------------------------------------------- /angular.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "./node_modules/@angular/cli/lib/config/schema.json", 3 | "version": 1, 4 | "newProjectRoot": "./", 5 | "projects": { 6 | "ngx-font-size": { 7 | "projectType": "library", 8 | "root": "./", 9 | "sourceRoot": "src", 10 | "prefix": "lib", 11 | "architect": { 12 | "build": { 13 | "builder": "@angular-devkit/build-angular:ng-packagr", 14 | "options": { 15 | "tsConfig": "tsconfig.lib.json", 16 | "project": "ng-package.json" 17 | }, 18 | "configurations": { 19 | "production": { 20 | "tsConfig": "tsconfig.lib.prod.json" 21 | } 22 | } 23 | }, 24 | "test": { 25 | "builder": "@angular-devkit/build-angular:karma", 26 | "options": { 27 | "main": "src/test.ts", 28 | "tsConfig": "tsconfig.spec.json", 29 | "karmaConfig": "karma.conf.js" 30 | } 31 | }, 32 | "lint": { 33 | "builder": "@angular-devkit/build-angular:tslint", 34 | "options": { 35 | "tsConfig": [ 36 | "tsconfig.lib.json", 37 | "tsconfig.spec.json" 38 | ], 39 | "exclude": [ 40 | "**/node_modules/**" 41 | ] 42 | } 43 | } 44 | } 45 | } 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /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/ngx-font-size'), 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 | -------------------------------------------------------------------------------- /ng-package.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "./node_modules/ng-packagr/ng-package.schema.json", 3 | "dest": "./dist", 4 | "lib": { 5 | "entryFile": "src/public-api.ts" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ngx-font-size", 3 | "version": "1.0.7", 4 | "scripts": { 5 | "build": "ng build ngx-font-size", 6 | "build:release": "ng build ngx-font-size --prod", 7 | "build:watch": "ng build ngx-font-size --watch", 8 | "ng": "ng", 9 | "lint": "ng lint", 10 | "release": "npm run build:release && npm publish dist/", 11 | "release:beta": "npm run build:release && npm publish dist/ --tag beta", 12 | "start": "ng serve", 13 | "test": "ng test" 14 | }, 15 | "main": "src/public-api.ts", 16 | "repository": { 17 | "type": "git", 18 | "url": "https://www.github.com/wadie/ngx-font-size" 19 | }, 20 | "author": { 21 | "name": "Wadie", 22 | "email": "1206307+wadie@users.noreply.github.com" 23 | }, 24 | "keywords": [ 25 | "angular", 26 | "angular component", 27 | "font size" 28 | ], 29 | "license": "MIT", 30 | "bugs": { 31 | "url": "https://www.github.com/wadie/ngx-font-size/issues" 32 | }, 33 | "peerDependencies": {}, 34 | "dependencies": { 35 | "tslib": "^2.3.1" 36 | }, 37 | "devDependencies": { 38 | "@angular-devkit/build-angular": "^14.1.1", 39 | "@angular/animations": "^14.1.1", 40 | "@angular/cli": "^14.1.1", 41 | "@angular/common": "^14.1.1", 42 | "@angular/compiler": "^14.1.1", 43 | "@angular/compiler-cli": "^14.1.1", 44 | "@angular/core": "^14.1.1", 45 | "@angular/forms": "^14.1.1", 46 | "@angular/language-service": "^14.1.1", 47 | "@angular/platform-browser": "^14.1.1", 48 | "@angular/platform-browser-dynamic": "^14.1.1", 49 | "@angular/router": "^14.1.1", 50 | "@types/jasmine": "~3.10.3", 51 | "@types/jasminewd2": "~2.0.10", 52 | "@types/node": "^17.0.20", 53 | "codelyzer": "^6.0.2", 54 | "jasmine-core": "~4.0.1", 55 | "jasmine-spec-reporter": "~7.0.0", 56 | "karma": "~6.3.16", 57 | "karma-chrome-launcher": "~3.1.0", 58 | "karma-coverage-istanbul-reporter": "~3.0.3", 59 | "karma-jasmine": "~4.0.1", 60 | "karma-jasmine-html-reporter": "^1.7.0", 61 | "ng-packagr": "^14.1.0", 62 | "rxjs": "^7.5.4", 63 | "ts-node": "~10.5.0", 64 | "tslint": "~6.1.0", 65 | "typescript": "~4.7.4", 66 | "zone.js": "~0.11.4" 67 | } 68 | } 69 | -------------------------------------------------------------------------------- /src/lib/ngx-font-size.component.html: -------------------------------------------------------------------------------- 1 |
2 |
3 | A 4 |
5 | 6 |
7 | A 8 |
9 | 10 |
11 | A 12 |
13 |
14 | -------------------------------------------------------------------------------- /src/lib/ngx-font-size.component.scss: -------------------------------------------------------------------------------- 1 | $iconColor: var(--icon-color); 2 | $selectedColor: var(--selected-color); 3 | $font-size: var(--font-size); 4 | 5 | * { 6 | font-size: $font-size; 7 | } 8 | 9 | .fontSizeIcons { 10 | display: flex; 11 | align-items: space-between; 12 | cursor: pointer; 13 | } 14 | 15 | .fontSizeIcons > div { 16 | margin-right: 1.5px; 17 | margin-left: 1.5px; 18 | } 19 | 20 | .selected { 21 | color: $selectedColor; 22 | } 23 | -------------------------------------------------------------------------------- /src/lib/ngx-font-size.component.spec.ts: -------------------------------------------------------------------------------- 1 | import { async, ComponentFixture, TestBed } from '@angular/core/testing'; 2 | import { NgxFontSizeComponent } from './ngx-font-size.component'; 3 | 4 | describe('NgxFontsizeComponent', () => { 5 | let component: NgxFontSizeComponent; 6 | let fixture: ComponentFixture; 7 | 8 | beforeEach(async(() => { 9 | TestBed.configureTestingModule({ 10 | declarations: [NgxFontSizeComponent] 11 | }) 12 | .compileComponents(); 13 | })); 14 | 15 | beforeEach(() => { 16 | fixture = TestBed.createComponent(NgxFontSizeComponent); 17 | component = fixture.componentInstance; 18 | fixture.detectChanges(); 19 | }); 20 | 21 | it('should create', () => { 22 | expect(component).toBeTruthy(); 23 | }); 24 | }); 25 | -------------------------------------------------------------------------------- /src/lib/ngx-font-size.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, Input, ViewEncapsulation, OnInit } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'ngx-font-size', 5 | templateUrl: './ngx-font-size.component.html', 6 | styleUrls: ['./ngx-font-size.component.scss'], 7 | encapsulation: ViewEncapsulation.None 8 | }) 9 | export class NgxFontSizeComponent implements OnInit { 10 | 11 | public selectedFont = 'md'; 12 | public fontSize: string; 13 | public lgSize: string; 14 | public mdSize: string; 15 | public smSize: string; 16 | public iconColor: string; 17 | public selectedColor: string; 18 | 19 | ngOnInit() { 20 | this.toggleFontIcon(this.selectedFont); 21 | this.setStyling(this.iconColor, this.selectedColor, this.fontSize); // Set default settings 22 | } 23 | 24 | setStyling(iconColor: string, selectedColor: string, fontSize: string) { 25 | document.documentElement.style.setProperty('--icon-color', iconColor); 26 | document.documentElement.style.setProperty('--selected-color', selectedColor); 27 | document.documentElement.style.setProperty('--font-size', fontSize); 28 | } 29 | 30 | @Input('iconColor') 31 | public set seticonColor(iconColor: string) { 32 | this.iconColor = iconColor; 33 | } 34 | 35 | @Input('selectedColor') 36 | public set setselectedColor(selectedColor: string) { 37 | this.selectedColor = selectedColor; 38 | } 39 | 40 | @Input('lgSize') 41 | public set setlgSize(lgSize: string) { 42 | this.lgSize = lgSize; 43 | } 44 | 45 | @Input('mdSize') 46 | public set setmdSize(mdSize: string) { 47 | this.mdSize = mdSize; 48 | } 49 | 50 | @Input('smSize') 51 | public set setsmSize(smSize: string) { 52 | this.smSize = smSize; 53 | } 54 | 55 | toggleFontIcon(size) { 56 | switch (size) { 57 | case 'lg': { 58 | this.selectedFont = 'lg'; 59 | this.fontSize = this.lgSize; 60 | break; 61 | } 62 | case 'md': { 63 | this.selectedFont = 'md'; 64 | this.fontSize = this.mdSize; 65 | break; 66 | } 67 | case 'sm': { 68 | this.selectedFont = 'sm'; 69 | this.fontSize = this.smSize; 70 | break; 71 | } 72 | default: { 73 | this.selectedFont = 'md'; 74 | this.fontSize = this.mdSize; 75 | } 76 | } 77 | this.setStyling(this.iconColor, this.selectedColor, this.fontSize); 78 | } 79 | } 80 | -------------------------------------------------------------------------------- /src/lib/ngx-font-size.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { NgxFontSizeComponent } from './ngx-font-size.component'; 3 | import { CommonModule } from '@angular/common'; 4 | 5 | @NgModule({ 6 | declarations: [ 7 | NgxFontSizeComponent, 8 | ], 9 | imports: [ 10 | CommonModule, 11 | ], 12 | exports: [ 13 | NgxFontSizeComponent 14 | ] 15 | }) 16 | export class NgxFontSizeModule { 17 | } 18 | -------------------------------------------------------------------------------- /src/public-api.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Public API Surface of ngx-font-size 3 | */ 4 | 5 | export * from './lib/ngx-font-size.component'; 6 | export * from './lib/ngx-font-size.module'; 7 | -------------------------------------------------------------------------------- /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/dist/zone'; 4 | import 'zone.js/dist/zone-testing'; 5 | import { getTestBed } from '@angular/core/testing'; 6 | import { 7 | BrowserDynamicTestingModule, 8 | platformBrowserDynamicTesting 9 | } from '@angular/platform-browser-dynamic/testing'; 10 | 11 | declare const require: { 12 | context(path: string, deep?: boolean, filter?: RegExp): { 13 | keys(): string[]; 14 | (id: string): T; 15 | }; 16 | }; 17 | 18 | // First, initialize the Angular testing environment. 19 | getTestBed().initTestEnvironment( 20 | BrowserDynamicTestingModule, 21 | platformBrowserDynamicTesting() 22 | ); 23 | // Then we find all the tests. 24 | const context = require.context('./', true, /\.spec\.ts$/); 25 | // And load the modules. 26 | context.keys().map(context); 27 | -------------------------------------------------------------------------------- /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": "es2020", 14 | "typeRoots": [ 15 | "node_modules/@types" 16 | ], 17 | "lib": [ 18 | "es2018", 19 | "dom" 20 | ], 21 | "paths": { 22 | "ngx-font-size": [ 23 | "dist/ngx-font-size/ngx-font-size", 24 | "dist/ngx-font-size" 25 | ] 26 | } 27 | }, 28 | "angularCompilerOptions": { 29 | "fullTemplateTypeCheck": true, 30 | "strictInjectionParameters": true, 31 | "enableIvy": false 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /tsconfig.lib.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "./out-tsc/lib", 5 | "declarationMap": true, 6 | "target": "es2020", 7 | "declaration": true, 8 | "inlineSources": true, 9 | "types": [], 10 | "lib": [ 11 | "dom", 12 | "es2018" 13 | ] 14 | }, 15 | "angularCompilerOptions": { 16 | "skipTemplateCodegen": true, 17 | "strictMetadataEmit": true, 18 | "enableResourceInlining": true 19 | }, 20 | "exclude": [ 21 | "src/test.ts", 22 | "**/*.spec.ts" 23 | ] 24 | } 25 | -------------------------------------------------------------------------------- /tsconfig.lib.prod.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.lib.json", 3 | "compilerOptions": { 4 | "declarationMap": false 5 | }, 6 | "angularCompilerOptions": { 7 | "enableIvy": false 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /tslint.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "tslint:recommended", 3 | "rulesDirectory": [ 4 | "codelyzer" 5 | ], 6 | "rules": { 7 | "align": { 8 | "options": [ 9 | "parameters", 10 | "statements" 11 | ] 12 | }, 13 | "array-type": false, 14 | "arrow-parens": false, 15 | "arrow-return-shorthand": true, 16 | "deprecation": { 17 | "severity": "warning" 18 | }, 19 | "import-blacklist": [ 20 | true, 21 | "rxjs/Rx" 22 | ], 23 | "interface-name": false, 24 | "curly": true, 25 | "max-classes-per-file": false, 26 | "max-line-length": [ 27 | true, 28 | { 29 | "limit": 140, 30 | "ignore-pattern": "^import |^export {(.*?)}" 31 | } 32 | ], 33 | "member-access": false, 34 | "eofline": true, 35 | "member-ordering": [ 36 | true, 37 | { 38 | "order": [ 39 | "static-field", 40 | "instance-field", 41 | "static-method", 42 | "instance-method" 43 | ] 44 | } 45 | ], 46 | "import-spacing": true, 47 | "indent": { 48 | "options": [ 49 | "spaces" 50 | ] 51 | }, 52 | "no-consecutive-blank-lines": false, 53 | "no-console": [ 54 | true, 55 | "debug", 56 | "info", 57 | "time", 58 | "timeEnd", 59 | "trace" 60 | ], 61 | "no-empty": false, 62 | "no-inferrable-types": [ 63 | true, 64 | "ignore-params" 65 | ], 66 | "no-non-null-assertion": true, 67 | "no-redundant-jsdoc": true, 68 | "no-switch-case-fall-through": true, 69 | "no-var-requires": false, 70 | "object-literal-key-quotes": [ 71 | true, 72 | "as-needed" 73 | ], 74 | "object-literal-sort-keys": false, 75 | "ordered-imports": false, 76 | "quotemark": [ 77 | true, 78 | "single" 79 | ], 80 | "trailing-comma": false, 81 | "component-class-suffix": true, 82 | "contextual-lifecycle": true, 83 | "directive-class-suffix": true, 84 | "no-conflicting-lifecycle": true, 85 | "no-host-metadata-property": true, 86 | "no-input-rename": true, 87 | "no-inputs-metadata-property": true, 88 | "no-output-native": true, 89 | "no-output-on-prefix": true, 90 | "no-output-rename": true, 91 | "no-outputs-metadata-property": true, 92 | "template-banana-in-box": true, 93 | "semicolon": { 94 | "options": [ 95 | "always" 96 | ] 97 | }, 98 | "space-before-function-paren": { 99 | "options": { 100 | "anonymous": "never", 101 | "asyncArrow": "always", 102 | "constructor": "never", 103 | "method": "never", 104 | "named": "never" 105 | } 106 | }, 107 | "template-no-negated-async": true, 108 | "use-lifecycle-interface": true, 109 | "use-pipe-transform-interface": true, 110 | "typedef-whitespace": { 111 | "options": [ 112 | { 113 | "call-signature": "nospace", 114 | "index-signature": "nospace", 115 | "parameter": "nospace", 116 | "property-declaration": "nospace", 117 | "variable-declaration": "nospace" 118 | }, 119 | { 120 | "call-signature": "onespace", 121 | "index-signature": "onespace", 122 | "parameter": "onespace", 123 | "property-declaration": "onespace", 124 | "variable-declaration": "onespace" 125 | } 126 | ] 127 | }, 128 | "directive-selector": [ 129 | true, 130 | "attribute", 131 | "lib", 132 | "camelCase" 133 | ], 134 | "component-selector": [ 135 | true, 136 | "element", 137 | "lib", 138 | "kebab-case" 139 | ], 140 | "variable-name": { 141 | "options": [ 142 | "ban-keywords", 143 | "check-format", 144 | "allow-pascal-case" 145 | ] 146 | }, 147 | "whitespace": { 148 | "options": [ 149 | "check-branch", 150 | "check-decl", 151 | "check-operator", 152 | "check-separator", 153 | "check-type", 154 | "check-typecast" 155 | ] 156 | } 157 | } 158 | } 159 | --------------------------------------------------------------------------------