Skip to content

Commit

Permalink
Update dependency @kristiandupont/dev-deps to v2.23.0 (#342)
Browse files Browse the repository at this point in the history
* Update dependency @kristiandupont/dev-deps to v2.23.0

* Fix linter issues

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Kristian Dupont <kristian@kristiandupont.com>
  • Loading branch information
renovate[bot] and kristiandupont committed Feb 21, 2024
1 parent 37e0840 commit 59565a8
Show file tree
Hide file tree
Showing 17 changed files with 39 additions and 38 deletions.
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/Config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ClientConfig } from "pg";
import type { ClientConfig } from "pg";

/**
* The configuration for schemalint.
Expand Down
2 changes: 1 addition & 1 deletion src/Rule.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Schema } from "extract-pg-schema";
import type { Schema } from "extract-pg-schema";

export type Issue = {
rule: string;
Expand Down
5 changes: 3 additions & 2 deletions src/engine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ import { extractSchemas } from "extract-pg-schema";
import path from "path";
import { indexBy, keys, prop, values } from "ramda";

import Config from "./Config";
import Rule, { Issue, Reporter } from "./Rule";
import type Config from "./Config";
import type { Issue, Reporter } from "./Rule";
import type Rule from "./Rule";
import * as builtinRules from "./rules";

type IgnoreMatcher = (rule: string, identifier: string) => boolean;
Expand Down
4 changes: 2 additions & 2 deletions src/rules/mandatoryColumns.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Schema } from "extract-pg-schema";
import type { Schema } from "extract-pg-schema";
import { describe, expect, it, vi } from "vitest";

import DeepPartial from "../tests/DeepPartial";
import type DeepPartial from "../tests/DeepPartial";
import { mandatoryColumns } from "./mandatoryColumns";

describe("mandatoryColumns", () => {
Expand Down
4 changes: 2 additions & 2 deletions src/rules/mandatoryColumns.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { TableColumn, TableDetails } from "extract-pg-schema";
import type { TableColumn, TableDetails } from "extract-pg-schema";
import * as R from "ramda";

import Rule from "../Rule";
import type Rule from "../Rule";

export const mandatoryColumns: Rule = {
name: "mandatory-columns",
Expand Down
4 changes: 2 additions & 2 deletions src/rules/nameCasing.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Schema } from "extract-pg-schema";
import type { Schema } from "extract-pg-schema";
import { describe, expect, it, test, vi } from "vitest";

import DeepPartial from "../tests/DeepPartial";
import type DeepPartial from "../tests/DeepPartial";
import { nameCasing } from "./nameCasing";

describe("nameCasing", () => {
Expand Down
4 changes: 2 additions & 2 deletions src/rules/nameCasing.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { detectCasing, recase } from "@kristiandupont/recase";
import {
import type {
TableColumn,
TableDetails,
ViewColumn,
ViewDetails,
} from "extract-pg-schema";

import Rule from "../Rule";
import type Rule from "../Rule";

export const nameCasing: Rule = {
name: "name-casing",
Expand Down
4 changes: 2 additions & 2 deletions src/rules/nameInflection.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Schema } from "extract-pg-schema";
import type { Schema } from "extract-pg-schema";
import { describe, expect, it, test, vi } from "vitest";

import DeepPartial from "../tests/DeepPartial";
import type DeepPartial from "../tests/DeepPartial";
import { nameInflection } from "./nameInflection";

describe("nameInflection", () => {
Expand Down
4 changes: 2 additions & 2 deletions src/rules/nameInflection.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { TableDetails, ViewDetails } from "extract-pg-schema";
import type { TableDetails, ViewDetails } from "extract-pg-schema";
import irregularPlurals from "irregular-plurals/irregular-plurals.json";
import * as R from "ramda";

import Rule from "../Rule";
import type Rule from "../Rule";

const singulars = R.keys(irregularPlurals);
const plurals = R.values(irregularPlurals);
Expand Down
4 changes: 2 additions & 2 deletions src/rules/references.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Schema } from "extract-pg-schema";
import type { Schema } from "extract-pg-schema";
import { describe, expect, it, test, vi } from "vitest";

import DeepPartial from "../tests/DeepPartial";
import type DeepPartial from "../tests/DeepPartial";
import { indexReferencingColumn, referenceActions } from "./references";

describe("indexReferencingColumn", () => {
Expand Down
4 changes: 2 additions & 2 deletions src/rules/references.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import {
import type {
ColumnReference,
TableColumn,
TableDetails,
TableIndex,
} from "extract-pg-schema";
import * as R from "ramda";

import Rule from "../Rule";
import type Rule from "../Rule";

export const indexReferencingColumn: Rule = {
name: "index-referencing-column",
Expand Down
4 changes: 2 additions & 2 deletions src/rules/requirePrimaryKey.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { TableDetails } from "extract-pg-schema";
import type { TableDetails } from "extract-pg-schema";

import Rule from "../Rule";
import type Rule from "../Rule";

export const requirePrimaryKey: Rule = {
name: "require-primary-key",
Expand Down
4 changes: 2 additions & 2 deletions src/rules/rowLevelSecurity.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Schema } from "extract-pg-schema";
import type { Schema } from "extract-pg-schema";
import { describe, expect, it, test, vi } from "vitest";

import DeepPartial from "../tests/DeepPartial";
import type DeepPartial from "../tests/DeepPartial";
import { rowLevelSecurity } from "./rowLevelSecurity";

describe("rowLevelSecurity", () => {
Expand Down
4 changes: 2 additions & 2 deletions src/rules/rowLevelSecurity.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { TableDetails } from "extract-pg-schema";
import type { TableDetails } from "extract-pg-schema";

import Rule from "../Rule";
import type Rule from "../Rule";

export const rowLevelSecurity: Rule = {
name: "row-level-security",
Expand Down
6 changes: 3 additions & 3 deletions src/rules/types.test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Schema } from "extract-pg-schema";
import type { Schema } from "extract-pg-schema";
import { describe, expect, it, vi } from "vitest";

import { Reporter } from "../Rule";
import DeepPartial from "../tests/DeepPartial";
import type { Reporter } from "../Rule";
import type DeepPartial from "../tests/DeepPartial";
import * as types from "./types";

const assertReport = (
Expand Down
4 changes: 2 additions & 2 deletions src/rules/types.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { TableColumn, TableDetails } from "extract-pg-schema";
import type { TableColumn, TableDetails } from "extract-pg-schema";

import Rule from "../Rule";
import type Rule from "../Rule";

export const preferJsonbToJson: Rule = {
name: "prefer-jsonb-to-json",
Expand Down

0 comments on commit 59565a8

Please sign in to comment.