0.12.0 • Published 3 months ago

ts-archlint v0.12.0

Weekly downloads
-
License
MIT
Repository
-
Last release
3 months ago

Archlint

Simple linter for enforcing architecture rules in typescript.

Usage

  • Install via npm install --save-dev ts-archlint
  • Create a folder .archlint to store the JSON-description(s) of the architecture
  • Create the JSON-descriptions in this folder (see below)
  • Run via node ./node_modules/ts-archlint/dist/index.js

File structure

Example

{
  "$schema": "../node_modules/ts-archlint/dist/schema.json",
  "name": "technical-layers",
  "failOnUnassigned": true,
  "exclude": [
    "node_modules**",
    "**.spec.ts"
  ],
  "artifacts": [
    {
      "name": "module",
      "include": [
        "**/*.module.ts"
      ],
      "mayUseAllBelow": true
    },
    {
      "name": "component",
      "include": [
        "**/component/**"
      ],
      "mayUse": [
        "service",
        "domain"
      ]
    },
    {
      "name": "service",
      "include": [
        "**/service/**"
      ],
      "mayUse": "domain"
    },
    {
      "name": "domain",
      "include": "**/domain/**",
      "mayBeUsedFromAllAbove": true
    }
  ]
}
0.12.0

3 months ago

0.11.1

3 months ago

0.11.2

3 months ago

0.10.0

3 months ago

0.11.0

3 months ago

0.9.0

3 months ago

0.8.1

3 months ago

0.8.0

3 months ago

0.3.0

11 months ago

0.2.1

11 months ago

0.2.0

11 months ago

0.5.0

10 months ago

0.4.1

11 months ago

0.4.0

11 months ago

0.3.1

11 months ago

0.6.0

8 months ago

0.4.2

10 months ago

0.1.0

1 year ago