terra-draw
Advanced tools
Comparing version 1.0.0-beta.8 to 1.0.0-beta.9
@@ -71,3 +71,6 @@ import { StoreChangeHandler, GeoJSONStore, GeoJSONStoreFeatures, FeatureId } from "./store/store"; | ||
}; | ||
export type Validation = (feature: GeoJSONStoreFeatures, context: ValidationContext) => boolean; | ||
export type Validation = (feature: GeoJSONStoreFeatures, context: ValidationContext) => { | ||
valid: boolean; | ||
reason?: string; | ||
}; | ||
export type TerraDrawModeState = "unregistered" | "registered" | "started" | "drawing" | "selecting" | "stopped"; | ||
@@ -74,0 +77,0 @@ export interface TerraDrawCallbacks { |
import { TerraDrawBaseAdapter, BaseAdapterConfig } from "./adapters/common/base.adapter"; | ||
import { HexColorStyling, NumericStyling } from "./common"; | ||
import { HexColorStyling, NumericStyling, TerraDrawCallbacks } from "./common"; | ||
import { BaseModeOptions, TerraDrawBaseDrawMode } from "./modes/base.mode"; | ||
export { TerraDrawBaseDrawMode, TerraDrawBaseAdapter, BaseAdapterConfig, NumericStyling, HexColorStyling, BaseModeOptions, }; | ||
export { TerraDrawBaseDrawMode, TerraDrawBaseAdapter, BaseAdapterConfig, NumericStyling, HexColorStyling, BaseModeOptions, TerraDrawCallbacks, }; |
import { TerraDrawMouseEvent, TerraDrawAdapterStyling, TerraDrawKeyboardEvent, HexColorStyling, NumericStyling, Cursor } from "../../common"; | ||
import { TerraDrawBaseDrawMode, BaseModeOptions, CustomStyling } from "../base.mode"; | ||
import { GeoJSONStoreFeatures } from "../../store/store"; | ||
import { GeoJSONStoreFeatures, StoreValidation } from "../../store/store"; | ||
type TerraDrawPolygonModeKeyEvents = { | ||
@@ -56,4 +56,4 @@ cancel?: KeyboardEvent["key"] | null; | ||
styleFeature(feature: GeoJSONStoreFeatures): TerraDrawAdapterStyling; | ||
validateFeature(feature: unknown): feature is GeoJSONStoreFeatures; | ||
validateFeature(feature: unknown): StoreValidation; | ||
} | ||
export {}; |
@@ -43,3 +43,5 @@ import { BehaviorConfig, TerraDrawModeBehavior } from "./base.behavior"; | ||
register(config: TerraDrawModeRegisterConfig): void; | ||
validateFeature(feature: unknown): feature is GeoJSONStoreFeatures; | ||
validateFeature(feature: unknown): ReturnType<Validation>; | ||
private performFeatureValidation; | ||
protected validateModeFeature(feature: unknown, modeValidationFn: (feature: GeoJSONStoreFeatures) => ReturnType<Validation>): ReturnType<Validation>; | ||
abstract start(): void; | ||
@@ -46,0 +48,0 @@ abstract stop(): void; |
import { TerraDrawMouseEvent, TerraDrawAdapterStyling, TerraDrawKeyboardEvent, HexColorStyling, NumericStyling, Cursor, Projection } from "../../common"; | ||
import { GeoJSONStoreFeatures } from "../../store/store"; | ||
import { GeoJSONStoreFeatures, StoreValidation } from "../../store/store"; | ||
import { BaseModeOptions, CustomStyling, TerraDrawBaseDrawMode } from "../base.mode"; | ||
@@ -31,2 +31,3 @@ type TerraDrawCircleModeKeyEvents = { | ||
private startingRadiusKilometers; | ||
private cursorMovedAfterInitialCursorDown; | ||
/** | ||
@@ -64,5 +65,5 @@ * Create a new circle mode instance | ||
styleFeature(feature: GeoJSONStoreFeatures): TerraDrawAdapterStyling; | ||
validateFeature(feature: unknown): feature is GeoJSONStoreFeatures; | ||
validateFeature(feature: unknown): StoreValidation; | ||
private updateCircle; | ||
} | ||
export {}; |
import { TerraDrawMouseEvent, TerraDrawAdapterStyling, TerraDrawKeyboardEvent, HexColorStyling, NumericStyling, Cursor } from "../../common"; | ||
import { BaseModeOptions, CustomStyling, TerraDrawBaseDrawMode } from "../base.mode"; | ||
import { GeoJSONStoreFeatures } from "../../store/store"; | ||
import { GeoJSONStoreFeatures, StoreValidation } from "../../store/store"; | ||
type TerraDrawFreehandModeKeyEvents = { | ||
@@ -25,2 +25,4 @@ cancel: KeyboardEvent["key"] | null; | ||
preventPointsNearClose?: boolean; | ||
autoClose?: boolean; | ||
autoCloseTimeout?: number; | ||
keyEvents?: TerraDrawFreehandModeKeyEvents | null; | ||
@@ -38,2 +40,6 @@ cursors?: Cursors; | ||
private preventPointsNearClose; | ||
private autoClose; | ||
private autoCloseTimeout; | ||
private hasLeftStartingPoint; | ||
private preventNewFeature; | ||
constructor(options?: TerraDrawFreehandModeOptions<FreehandPolygonStyling>); | ||
@@ -63,4 +69,4 @@ private close; | ||
styleFeature(feature: GeoJSONStoreFeatures): TerraDrawAdapterStyling; | ||
validateFeature(feature: unknown): feature is GeoJSONStoreFeatures; | ||
validateFeature(feature: unknown): StoreValidation; | ||
} | ||
export {}; |
import { TerraDrawMouseEvent, TerraDrawAdapterStyling, TerraDrawKeyboardEvent, HexColorStyling, NumericStyling, Cursor } from "../../common"; | ||
import { BaseModeOptions, CustomStyling, TerraDrawBaseDrawMode } from "../base.mode"; | ||
import { BehaviorConfig } from "../base.behavior"; | ||
import { GeoJSONStoreFeatures } from "../../store/store"; | ||
import { GeoJSONStoreFeatures, StoreValidation } from "../../store/store"; | ||
type TerraDrawLineStringModeKeyEvents = { | ||
@@ -76,4 +76,4 @@ cancel: KeyboardEvent["key"] | null; | ||
styleFeature(feature: GeoJSONStoreFeatures): TerraDrawAdapterStyling; | ||
validateFeature(feature: unknown): feature is GeoJSONStoreFeatures; | ||
validateFeature(feature: unknown): StoreValidation; | ||
} | ||
export {}; |
import { TerraDrawMouseEvent, TerraDrawAdapterStyling, NumericStyling, HexColorStyling, Cursor } from "../../common"; | ||
import { GeoJSONStoreFeatures } from "../../store/store"; | ||
import { GeoJSONStoreFeatures, StoreValidation } from "../../store/store"; | ||
import { BaseModeOptions, CustomStyling, TerraDrawBaseDrawMode } from "../base.mode"; | ||
@@ -42,4 +42,4 @@ type PointModeStyling = { | ||
styleFeature(feature: GeoJSONStoreFeatures): TerraDrawAdapterStyling; | ||
validateFeature(feature: unknown): feature is GeoJSONStoreFeatures; | ||
validateFeature(feature: unknown): StoreValidation; | ||
} | ||
export {}; |
import { TerraDrawMouseEvent, TerraDrawAdapterStyling, TerraDrawKeyboardEvent, HexColorStyling, NumericStyling, Cursor } from "../../common"; | ||
import { TerraDrawBaseDrawMode, BaseModeOptions, CustomStyling } from "../base.mode"; | ||
import { BehaviorConfig } from "../base.behavior"; | ||
import { GeoJSONStoreFeatures } from "../../store/store"; | ||
import { GeoJSONStoreFeatures, StoreValidation } from "../../store/store"; | ||
type TerraDrawPolygonModeKeyEvents = { | ||
@@ -67,4 +67,4 @@ cancel?: KeyboardEvent["key"] | null; | ||
styleFeature(feature: GeoJSONStoreFeatures): TerraDrawAdapterStyling; | ||
validateFeature(feature: unknown): feature is GeoJSONStoreFeatures; | ||
validateFeature(feature: unknown): StoreValidation; | ||
} | ||
export {}; |
import { TerraDrawMouseEvent, TerraDrawAdapterStyling, TerraDrawKeyboardEvent, HexColorStyling, NumericStyling, Cursor } from "../../common"; | ||
import { GeoJSONStoreFeatures } from "../../store/store"; | ||
import { GeoJSONStoreFeatures, StoreValidation } from "../../store/store"; | ||
import { BaseModeOptions, CustomStyling, TerraDrawBaseDrawMode } from "../base.mode"; | ||
@@ -53,4 +53,4 @@ type TerraDrawRectangleModeKeyEvents = { | ||
styleFeature(feature: GeoJSONStoreFeatures): TerraDrawAdapterStyling; | ||
validateFeature(feature: unknown): feature is GeoJSONStoreFeatures; | ||
validateFeature(feature: unknown): StoreValidation; | ||
} | ||
export {}; |
@@ -5,2 +5,3 @@ import { HexColorStyling, NumericStyling, TerraDrawAdapterStyling } from "../../common"; | ||
import { GeoJSONStoreFeatures } from "../../terra-draw"; | ||
import { StoreValidation } from "../../store/store"; | ||
type RenderModeStyling = { | ||
@@ -51,4 +52,4 @@ pointColor: HexColorStyling; | ||
styleFeature(feature: GeoJSONStoreFeatures): TerraDrawAdapterStyling; | ||
validateFeature(feature: unknown): feature is GeoJSONStoreFeatures; | ||
validateFeature(feature: unknown): StoreValidation; | ||
} | ||
export {}; |
import { TerraDrawMouseEvent, TerraDrawAdapterStyling, TerraDrawKeyboardEvent, HexColorStyling, NumericStyling, Cursor } from "../../common"; | ||
import { TerraDrawBaseDrawMode, BaseModeOptions, CustomStyling } from "../base.mode"; | ||
import { GeoJSONStoreFeatures } from "../../store/store"; | ||
import { GeoJSONStoreFeatures, StoreValidation } from "../../store/store"; | ||
type TerraDrawSectorModeKeyEvents = { | ||
@@ -58,4 +58,4 @@ cancel?: KeyboardEvent["key"] | null; | ||
styleFeature(feature: GeoJSONStoreFeatures): TerraDrawAdapterStyling; | ||
validateFeature(feature: unknown): feature is GeoJSONStoreFeatures; | ||
validateFeature(feature: unknown): StoreValidation; | ||
} | ||
export {}; |
@@ -9,6 +9,6 @@ import { TerraDrawMouseEvent, Validation } from "../../../common"; | ||
readonly config: BehaviorConfig; | ||
private readonly featuresAtMouseEvent; | ||
private readonly featuresAtCursorEvent; | ||
private readonly selectionPoints; | ||
private readonly midPoints; | ||
constructor(config: BehaviorConfig, featuresAtMouseEvent: FeatureAtPointerEventBehavior, selectionPoints: SelectionPointBehavior, midPoints: MidPointBehavior); | ||
constructor(config: BehaviorConfig, featuresAtCursorEvent: FeatureAtPointerEventBehavior, selectionPoints: SelectionPointBehavior, midPoints: MidPointBehavior); | ||
private draggedFeatureId; | ||
@@ -15,0 +15,0 @@ private dragPosition; |
import { TerraDrawMouseEvent, TerraDrawAdapterStyling, TerraDrawKeyboardEvent, HexColorStyling, NumericStyling, Cursor } from "../../common"; | ||
import { TerraDrawBaseDrawMode, BaseModeOptions, CustomStyling } from "../base.mode"; | ||
import { GeoJSONStoreFeatures } from "../../store/store"; | ||
import { GeoJSONStoreFeatures, StoreValidation } from "../../store/store"; | ||
type TerraDrawSensorModeKeyEvents = { | ||
@@ -65,3 +65,3 @@ cancel?: KeyboardEvent["key"] | null; | ||
styleFeature(feature: GeoJSONStoreFeatures): TerraDrawAdapterStyling; | ||
validateFeature(feature: unknown): feature is GeoJSONStoreFeatures; | ||
validateFeature(feature: unknown): StoreValidation; | ||
private getDeltaBearing; | ||
@@ -68,0 +68,0 @@ private notInSector; |
@@ -1,2 +0,3 @@ | ||
import { FeatureId, GeoJSONStoreFeatures, IdStrategy } from "./store"; | ||
import { Validation } from "../common"; | ||
import { FeatureId, IdStrategy } from "./store"; | ||
export declare const StoreValidationErrors: { | ||
@@ -15,3 +16,8 @@ readonly FeatureHasNoId: "Feature has no id"; | ||
}; | ||
export declare function hasModeProperty(feature: unknown): feature is { | ||
properties: { | ||
mode: string; | ||
}; | ||
}; | ||
export declare function isValidTimestamp(timestamp: unknown): boolean; | ||
export declare function isValidStoreFeature(feature: unknown, isValidId: IdStrategy<FeatureId>["isValidId"]): feature is GeoJSONStoreFeatures; | ||
export declare function isValidStoreFeature(feature: unknown, isValidId: IdStrategy<FeatureId>["isValidId"]): ReturnType<Validation>; |
import { Feature, Point, Polygon, LineString } from "geojson"; | ||
import { Validation } from "../common"; | ||
type JSON = string | number | boolean | null | JSONArray | JSONObject; | ||
@@ -11,2 +12,5 @@ export interface JSONObject { | ||
export type GeoJSONStoreFeatures = Feature<GeoJSONStoreGeometries, DefinedProperties>; | ||
export type StoreValidation = { | ||
id?: FeatureId; | ||
} & ReturnType<Validation>; | ||
type StoreChangeEvents = "delete" | "create" | "update" | "styling"; | ||
@@ -37,3 +41,3 @@ export type StoreChangeHandler = (ids: FeatureId[], change: StoreChangeEvents) => void; | ||
has(id: FeatureId): boolean; | ||
load(data: GeoJSONStoreFeatures[], featureValidation?: (feature: unknown, tracked?: boolean) => boolean): void; | ||
load(data: GeoJSONStoreFeatures[], featureValidation?: (feature: unknown, tracked?: boolean) => StoreValidation): StoreValidation[]; | ||
search(bbox: BBoxPolygon, filter?: (feature: GeoJSONStoreFeatures) => boolean): GeoJSONStoreFeatures[]; | ||
@@ -40,0 +44,0 @@ registerOnChange(onChange: StoreChangeHandler): void; |
@@ -17,3 +17,3 @@ import { TerraDrawGoogleMapsAdapter } from "./adapters/google-maps.adapter"; | ||
import { TerraDrawSelectMode } from "./modes/select/select.mode"; | ||
import { FeatureId, GeoJSONStoreFeatures, IdStrategy } from "./store/store"; | ||
import { FeatureId, GeoJSONStoreFeatures, IdStrategy, StoreValidation } from "./store/store"; | ||
import { BehaviorConfig } from "./modes/base.behavior"; | ||
@@ -27,2 +27,3 @@ import { ValidateMinAreaSquareMeters } from "./validations/min-size.validation"; | ||
import * as TerraDrawExtend from "./extend"; | ||
import { ValidationReasons } from "./validation-reasons"; | ||
type FinishListener = (id: FeatureId, context: OnFinishContext) => void; | ||
@@ -156,11 +157,11 @@ type ChangeListener = (ids: FeatureId[], type: string) => void; | ||
/** | ||
* A method for adding features to the store. This method will validate the features. | ||
* Features must match one of the modes enabled in the instance. | ||
* @param mode | ||
* @param features | ||
* @returns | ||
* A method for adding features to the store. This method will validate the features | ||
* returning an array of validation results. Features must match one of the modes enabled | ||
* in the instance. | ||
* @param features - an array of GeoJSON features | ||
* @returns an array of validation results | ||
* | ||
* @beta | ||
*/ | ||
addFeatures(features: GeoJSONStoreFeatures[]): void; | ||
addFeatures(features: GeoJSONStoreFeatures[]): StoreValidation[]; | ||
/** | ||
@@ -224,2 +225,2 @@ * A method starting Terra Draw. It put the instance into a started state, and | ||
} | ||
export { TerraDraw, TerraDrawSelectMode, TerraDrawPointMode, TerraDrawLineStringMode, TerraDrawPolygonMode, TerraDrawCircleMode, TerraDrawFreehandMode, TerraDrawRenderMode, TerraDrawRectangleMode, TerraDrawAngledRectangleMode, TerraDrawSectorMode, TerraDrawSensorMode, TerraDrawGoogleMapsAdapter, TerraDrawMapboxGLAdapter, TerraDrawLeafletAdapter, TerraDrawMapLibreGLAdapter, TerraDrawOpenLayersAdapter, TerraDrawArcGISMapsSDKAdapter, TerraDrawExtend, BehaviorConfig, GeoJSONStoreFeatures, HexColor, TerraDrawMouseEvent, TerraDrawAdapterStyling, TerraDrawKeyboardEvent, TerraDrawChanges, TerraDrawStylingFunction, Project, Unproject, SetCursor, GetLngLatFromEvent, ValidateMinAreaSquareMeters, ValidateMaxAreaSquareMeters, ValidateNotSelfIntersecting, }; | ||
export { TerraDraw, TerraDrawSelectMode, TerraDrawPointMode, TerraDrawLineStringMode, TerraDrawPolygonMode, TerraDrawCircleMode, TerraDrawFreehandMode, TerraDrawRenderMode, TerraDrawRectangleMode, TerraDrawAngledRectangleMode, TerraDrawSectorMode, TerraDrawSensorMode, TerraDrawGoogleMapsAdapter, TerraDrawMapboxGLAdapter, TerraDrawLeafletAdapter, TerraDrawMapLibreGLAdapter, TerraDrawOpenLayersAdapter, TerraDrawArcGISMapsSDKAdapter, TerraDrawExtend, BehaviorConfig, GeoJSONStoreFeatures, HexColor, TerraDrawMouseEvent, TerraDrawAdapterStyling, TerraDrawKeyboardEvent, TerraDrawChanges, TerraDrawStylingFunction, Project, Unproject, SetCursor, GetLngLatFromEvent, ValidateMinAreaSquareMeters, ValidateMaxAreaSquareMeters, ValidateNotSelfIntersecting, ValidationReasons, }; |
@@ -0,2 +1,5 @@ | ||
import { Validation } from "../common"; | ||
import { GeoJSONStoreFeatures } from "../terra-draw"; | ||
export declare function ValidateLineStringFeature(feature: GeoJSONStoreFeatures, coordinatePrecision: number): boolean; | ||
export declare const ValidationReasonFeatureIsNotALineString = "Feature is not a LineString"; | ||
export declare const ValidationReasonFeatureHasLessThanTwoCoordinates = "Feature has less than 2 coordinates"; | ||
export declare function ValidateLineStringFeature(feature: GeoJSONStoreFeatures, coordinatePrecision: number): ReturnType<Validation>; |
@@ -0,2 +1,4 @@ | ||
import { Validation } from "../common"; | ||
import { GeoJSONStoreFeatures } from "../terra-draw"; | ||
export declare const ValidateMaxAreaSquareMeters: (feature: GeoJSONStoreFeatures, maxSize: number) => boolean; | ||
export declare const ValidationMaxAreaSquareMetersReason = "Feature is larger than the maximum area"; | ||
export declare const ValidateMaxAreaSquareMeters: (feature: GeoJSONStoreFeatures, maxSize: number) => ReturnType<Validation>; |
@@ -0,2 +1,4 @@ | ||
import { Validation } from "../common"; | ||
import { GeoJSONStoreFeatures } from "../terra-draw"; | ||
export declare const ValidateMinAreaSquareMeters: (feature: GeoJSONStoreFeatures, minSize: number) => boolean; | ||
export declare const ValidationReasonFeatureLessThanMinSize = "Feature is smaller than the minimum area"; | ||
export declare const ValidateMinAreaSquareMeters: (feature: GeoJSONStoreFeatures, minSize: number) => ReturnType<Validation>; |
import { GeoJSONStoreFeatures } from "../terra-draw"; | ||
export declare const ValidateNotSelfIntersecting: (feature: GeoJSONStoreFeatures) => boolean; | ||
import { Validation } from "../common"; | ||
export declare const ValidationReasonFeatureNotPolygonOrLineString = "Feature is not a Polygon or LineString"; | ||
export declare const ValidationReasonFeatureSelfIntersects = "Feature intersects itself"; | ||
export declare const ValidateNotSelfIntersecting: (feature: GeoJSONStoreFeatures) => ReturnType<Validation>; |
@@ -0,2 +1,5 @@ | ||
import { Validation } from "../common"; | ||
import { GeoJSONStoreFeatures } from "../terra-draw"; | ||
export declare function ValidatePointFeature(feature: GeoJSONStoreFeatures, coordinatePrecision: number): boolean; | ||
export declare const ValidationReasonFeatureNotPoint = "Feature is not a Point"; | ||
export declare const ValidationReasonFeatureInvalidCoordinates = "Feature has invalid coordinates"; | ||
export declare function ValidatePointFeature(feature: GeoJSONStoreFeatures, coordinatePrecision: number): ReturnType<Validation>; |
import { GeoJSONStoreFeatures } from "../terra-draw"; | ||
export declare function ValidatePolygonFeature(feature: GeoJSONStoreFeatures, coordinatePrecision: number): boolean; | ||
export declare function ValidateNonIntersectingPolygonFeature(feature: GeoJSONStoreFeatures, coordinatePrecision: number): boolean; | ||
import { Validation } from "../common"; | ||
export declare const ValidationReasonFeatureNotPolygon = "Feature is not a Polygon"; | ||
export declare const ValidationReasonFeatureHasHoles = "Feature has holes"; | ||
export declare const ValidationReasonFeatureLessThanFourCoordinates = "Feature has less than 4 coordinates"; | ||
export declare const ValidationReasonFeatureHasInvalidCoordinates = "Feature has invalid coordinates"; | ||
export declare const ValidationReasonFeatureCoordinatesNotClosed = "Feature coordinates are not closed"; | ||
export declare function ValidatePolygonFeature(feature: GeoJSONStoreFeatures, coordinatePrecision: number): ReturnType<Validation>; | ||
export declare function ValidateNonIntersectingPolygonFeature(feature: GeoJSONStoreFeatures, coordinatePrecision: number): ReturnType<Validation>; |
@@ -21,3 +21,3 @@ { | ||
"ts-loader": "9.5.1", | ||
"typescript": "5.5.2", | ||
"typescript": "5.6.3", | ||
"webpack": "5.73.0", | ||
@@ -24,0 +24,0 @@ "webpack-cli": "4.10.0", |
{ | ||
"name": "terra-draw", | ||
"version": "1.0.0-beta.8", | ||
"version": "1.0.0-beta.9", | ||
"description": "Frictionless map drawing across mapping provider", | ||
@@ -18,6 +18,6 @@ "scripts": { | ||
"test:nocheck:coverage": "jest --config jest.nocheck.config.ts --coverage", | ||
"lint": "eslint --ext .ts src/", | ||
"lint:quiet": "eslint --ext .ts --quiet src/", | ||
"lint:fix": "eslint --fix --ext .ts src/", | ||
"lint:fix:quiet": "eslint --fix --quiet --ext .ts src/", | ||
"lint": "eslint src/", | ||
"lint:quiet": "eslint --quiet src/", | ||
"lint:fix": "eslint --fix src/", | ||
"lint:fix:quiet": "eslint --fix --quiet src/", | ||
"format": "prettier --ignore-path .gitignore --write \"**/*.+(js|ts|json)\"", | ||
@@ -64,10 +64,10 @@ "format:quiet": "prettier --ignore-path .gitignore --write \"**/*.+(js|ts|json)\" --log-level=silent", | ||
"@types/jest": "29.5.12", | ||
"@types/leaflet": "^1.9.12", | ||
"@types/leaflet": "1.9.12", | ||
"@types/mapbox-gl": "2.7.3", | ||
"@types/rbush": "3.0.0", | ||
"@typescript-eslint/eslint-plugin": "7.14.1", | ||
"@typescript-eslint/parser": "7.14.1", | ||
"eslint": "8.57.0", | ||
"eslint-config-prettier": "9.0.0", | ||
"eslint-plugin-prettier": "5.0.0", | ||
"@typescript-eslint/eslint-plugin": "8.17.0", | ||
"@typescript-eslint/parser": "8.17.0", | ||
"eslint": "9.1.0", | ||
"eslint-config-prettier": "9.1.0", | ||
"eslint-plugin-prettier": "5.2.1", | ||
"husky": "7.0.0", | ||
@@ -87,4 +87,4 @@ "jest": "29.7.0", | ||
"tsx": "4.7.2", | ||
"typedoc": "^0.26.6", | ||
"typescript": "5.5.2" | ||
"typedoc": "0.26.11", | ||
"typescript": "5.6.3" | ||
}, | ||
@@ -96,16 +96,2 @@ "commitlint": { | ||
}, | ||
"eslintConfig": { | ||
"parser": "@typescript-eslint/parser", | ||
"plugins": [ | ||
"@typescript-eslint" | ||
], | ||
"rules": { | ||
"@typescript-eslint/no-empty-function": "warn", | ||
"@typescript-eslint/no-explicit-any": "warn" | ||
}, | ||
"extends": [ | ||
"plugin:@typescript-eslint/recommended", | ||
"prettier" | ||
] | ||
}, | ||
"prettier": { | ||
@@ -112,0 +98,0 @@ "printWidth": 80, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
3542899
111
10178