devops: set up package tsc build check (#56)

This commit is contained in:
Ayo Ayco 2022-10-06 16:46:44 +02:00 committed by GitHub
parent be195e93e6
commit 7c31381d76
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 4 deletions

View file

@ -9,7 +9,7 @@ import type {
export class FormControl { export class FormControl {
private _name = ''; private _name = '';
private _type?: FormControlType | undefined = 'text'; private _type: FormControlType = 'text';
private _value?: string | number | null | string[]; private _value?: string | number | null | string[];
private _label?: string; private _label?: string;
private _labelPosition?: 'right' | 'left' = 'left'; private _labelPosition?: 'right' | 'left' = 'left';

View file

@ -1,4 +1,4 @@
import type { FormControlBase } from '../types'; import type { FormControlBase } from './form-control-types';
import { FormControl } from './form-control'; import { FormControl } from './form-control';
export class FormGroup { export class FormGroup {

View file

@ -30,7 +30,8 @@
"test:watch": "mocha --watch --parallel --timeout 15000", "test:watch": "mocha --watch --parallel --timeout 15000",
"format": "prettier -w .", "format": "prettier -w .",
"lint": "eslint . --ext .ts,.js", "lint": "eslint . --ext .ts,.js",
"lint:fix": "eslint --fix . --ext .ts,.js" "lint:fix": "eslint --fix . --ext .ts,.js",
"build": "tsc --noEmit"
}, },
"devDependencies": { "devDependencies": {
"@types/chai": "^4.3.3", "@types/chai": "^4.3.3",

View file

@ -1,3 +1,4 @@
{ {
"extends": "astro/tsconfigs/strictest" "extends": "astro/tsconfigs/strictest",
"exclude": ["./index.ts"]
} }