GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - ng-alain/ng-alain-codelyzer: A set of tslint rules for static code analysis of ng-alain projects.

BranchesTags
Open more actions menu

Latest commit

 

History

3 Commits
3 Commits

Folders and files

NameName
Last commit message
Last commit date
.vscode
.vscode
 
 
src
src
 
 
test
test
 
 
.editorconfig
.editorconfig
 
 
.gitignore
.gitignore
 
 
.prettierignore
.prettierignore
 
 
.prettierrc
.prettierrc
 
 
.travis.yml
.travis.yml
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
package.json
package.json
 
 
tsconfig-release.json
tsconfig-release.json
 
 
tsconfig.json
tsconfig.json
 
 
tslint.json
tslint.json
 
 

Repository files navigation

ng-alain-codelyzer Build Status NPM version

A set of tslint rules for static code analysis of ng-alain projects.

How to use?

Install ng-alain-codelyzer:

# via npm
npm i ng-alain-codelyzer --save-dev
# via yarn
yarn add -D ng-alain-codelyzer

Using ng-alain-codelyzer from node_modules directory:

{
  "rulesDirectory": [
    "node_modules/ng-alain-codelyzer"
  ],
  "rules": {
    "use-path-mapping": [true, ["@core", "@shared"]]
  }
}

Next you can create a component file in the src/app/routes directory with name component.ts and the following content:

import { I18NService } from '../core/i18n/i18n.service';

As last step you can execute all the rules against your code with tslint:

./node_modules/.bin/tslint -c tslint.json src/app/routes/component.ts

You should see the following output:

ERROR: src/app/routes/component.ts[1, 30]: Should be imported using `@core`

Subdirectories

If you want to support subdirectory import styles:

import { I18NService } from '@core/i18n/i18n.service';

Configured as:

{
  "use-path-mapping": [true, ["@core/*", "@shared"]]
}

License

MIT

About

A set of tslint rules for static code analysis of ng-alain projects.

ng-alain.com

Topics

angularcodelyzerdelonlintng-alainstyle-guidetslint

Resources

Readme
MIT license
Activity
Custom properties

Stars

12 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.