@aidc-toolkit/dev
TypeScript icon, indicating that this package has built-in type declarations

0.9.5 • Public • Published

Development Package

The AIDC Toolkit dev package contains development artefacts only; it is not intended to be used as anything other than a development dependency.

TypeScript Configuration

All AIDC Toolkit packages are expected to be built the same way, which implies that they all have the same TypeScript configuration. This is supported by the tsconfig.json file in this package. Core changes should be managed in that file, with other packages declaring their own tsconfig.json as follows:

{
  "extends": "@aidc-toolkit/dev/tsconfig.json"
}

Options specific to the package may override or supplement core options if required.

ESLint Configuration

All AIDC Toolkit packages are expected to follow a common coding style (enforced by ESLint), which implies that they all have the same ESLint configuration. This is supported by the eslint.config.template.ts file in this package. Core changes should be managed in that file, with other packages declaring their own eslint.config.js file as follows:

import { esLintConfigAIDCToolkit } from "@aidc-toolkit/dev";

export default esLintConfigAIDCToolkit;

Rules specific to the package may override or supplement core rules if required. If so, the eslint.config.js file should be declared as follows:

import tseslint from "typescript-eslint";
import { esLintConfigAIDCToolkit } from "@aidc-toolkit/dev";
// Additional imports here as required.
// ...

export default tseslint.config(
    ...esLintConfigAIDCToolkit,
    // Additional rules here as required.
    // ...
);

ESLint requires the installation of the eslint package as a development dependency. Other development dependencies may be required if overriding or supplementing the core rules.

Dependencies (6)

Dev Dependencies (4)

Package Sidebar

Install

npm i @aidc-toolkit/dev

Weekly Downloads

158

Version

0.9.5

License

Apache-2.0

Unpacked Size

34.7 kB

Total Files

23

Last publish

Collaborators

  • kevindean