Skip to content

Commit

Permalink
src fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ljowen committed Sep 17, 2024
1 parent c12a132 commit d0ca149
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 9 deletions.
7 changes: 4 additions & 3 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
/* Variables */
"no-label-var": 1,
"no-unused-vars": [
1,
"warn",
{
"vars": "local",
"args": "none"
Expand All @@ -111,10 +111,11 @@
},
"overrides": [
{
"files": ["**/*.ts", "**/*.tsx"],
"files": ["*.ts", "**/*.tsx"],
"rules": {
// @TODO: revise these rules
"@typescript-eslint/consistent-type-assertions": "error",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
"warn",
{
Expand All @@ -125,7 +126,7 @@
],
"@typescript-eslint/ban-ts-comment": "warn",
"@typescript-eslint/no-loss-of-precision": "warn",
"@typescript-eslint/no-unsafe-declaration-merging": "warn",
"@typescript-eslint/no-unsafe-declaration-merging": "off",
"react-hooks/exhaustive-deps": "warn",
"react/prop-types": "warn"
}
Expand Down
2 changes: 1 addition & 1 deletion lib/Models/Catalog/Ckan/CkanItemReference.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export class CkanDatasetStratum extends LoadableStratum(
makeObservable(this);
}

duplicateLoadableStratum(newModel: BaseModel): this {
duplicateLoadableStratum(_newModel: BaseModel): this {
return new CkanDatasetStratum(
this.ckanItemReference,
this.ckanCatalogGroup
Expand Down
2 changes: 1 addition & 1 deletion lib/Table/TableColumn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -920,6 +920,6 @@ function toNumber(value: string): number | null {
return null;
}

function nullFunction(rowIndex: number) {
function nullFunction() {
return null;
}
2 changes: 1 addition & 1 deletion lib/Traits/Decorators/modelReferenceArrayTrait.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export interface ModelArrayTraitOptions extends TraitOptions {
factory?: ModelFactory;
}

export default function modelReferenceArrayTrait<T>(
export default function modelReferenceArrayTrait<_T>(
options: ModelArrayTraitOptions
) {
return function (target: any, propertyKey: string) {
Expand Down
2 changes: 1 addition & 1 deletion lib/Traits/Decorators/modelReferenceTrait.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export interface ModelTraitOptions extends TraitOptions {
factory?: ModelFactory;
}

export default function modelReferenceTrait<T>(options: ModelTraitOptions) {
export default function modelReferenceTrait<_T>(options: ModelTraitOptions) {
return function (target: any, propertyKey: string) {
const constructor = target.constructor;
if (!constructor.traits) {
Expand Down
2 changes: 1 addition & 1 deletion lib/Traits/Decorators/primitiveArrayTrait.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import Trait, { TraitOptions } from "../Trait";

type PrimitiveType = "string" | "number" | "boolean";

export interface PrimitiveArrayTraitOptions<T> extends TraitOptions {
export interface PrimitiveArrayTraitOptions<_T> extends TraitOptions {
type: PrimitiveType;
isNullable?: boolean;
}
Expand Down
2 changes: 1 addition & 1 deletion lib/Traits/Decorators/primitiveTrait.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import Trait, { TraitOptions } from "../Trait";

type PrimitiveType = "string" | "number" | "boolean";

export interface PrimitiveTraitOptions<T> extends TraitOptions {
export interface PrimitiveTraitOptions<_T> extends TraitOptions {
type: PrimitiveType;
isNullable?: boolean;
}
Expand Down

0 comments on commit d0ca149

Please sign in to comment.