devops: set up package tsc build check (#56)
This commit is contained in:
parent
be195e93e6
commit
7c31381d76
4 changed files with 6 additions and 4 deletions
|
@ -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';
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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",
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
{
|
{
|
||||||
"extends": "astro/tsconfigs/strictest"
|
"extends": "astro/tsconfigs/strictest",
|
||||||
|
"exclude": ["./index.ts"]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue