Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions apps/clearance_ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"scripts": {
"build": "next build",
"dev": "dotenv -e ../../.env -- next dev",
"lint": "next lint",
"lint": "eslint .",
"start": "next start",
"test": "jest --verbose",
"test:watch": "jest --watchAll --verbose",
Expand Down Expand Up @@ -74,7 +74,7 @@
"@testing-library/react": "16.3.1",
"@types/js-yaml": "4.0.9",
"@types/node": "24.10.4",
"@types/react": "19.2.0",
"@types/react": "19.2.7",
"@types/react-copy-to-clipboard": "5.0.7",
"@types/spdx-expression-parse": "3.0.5",
"dotenv-cli": "^11.0.0",
Expand Down
2 changes: 0 additions & 2 deletions apps/clearance_ui/src/@types/table-core.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ declare module "@tanstack/table-core" {
// Meta data for the table and columns that is accessible in the DataTable
// component, the columns object and different cell components.

// eslint-disable-next-line @typescript-eslint/no-unused-vars
interface TableMeta<TData extends RowData> {
// Keeps track of the rows that are being edited to enable showing
// the editable cell components.
Expand All @@ -28,7 +27,6 @@ declare module "@tanstack/table-core" {
updateOriginalData: (rowId: number) => void;
}

// eslint-disable-next-line @typescript-eslint/no-unused-vars
interface ColumnMeta<TData extends RowData, TValue> {
// The type of the column, used to determine the type of the cell
type?: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ export function DataTable<TData, TValue>({
parseAsString,
);
// The setPageIndex cannot be recognized as a callable expression without the pageIndex, so it
// is added here and an eslint-disable-next-line is added to ignore the unused variable
// eslint-disable-next-line @typescript-eslint/no-unused-vars
// is added here.
const [pageIndex, setPageIndex] = useQueryState(
"pageIndex",
parseAsInteger.withDefault(1),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ export function DataTable<TData, TValue>({
parseAsString,
);
// The setPageIndex cannot be recognized as a callable expression without the pageIndex, so it
// is added here and an eslint-disable-next-line is added to ignore the unused variable
// eslint-disable-next-line @typescript-eslint/no-unused-vars
// is added here.
const [pageIndex, setPageIndex] = useQueryState(
"pageIndex",
parseAsInteger.withDefault(1),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ export function DataTable<TData, TValue>({
parseAsString,
);
// The setPageIndex cannot be recognized as a callable expression without the pageIndex, so it
// is added here and an eslint-disable-next-line is added to ignore the unused variable
// eslint-disable-next-line @typescript-eslint/no-unused-vars
// is added here.
const [pageIndex, setPageIndex] = useQueryState(
"pageIndex",
parseAsInteger.withDefault(1),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ export function DataTable<TData, TValue>({
}: DataTableProps<TData, TValue>) {
const [name, setName] = useQueryState("name", parseAsString);
// The setPageIndex cannot be recognized as a callable expression without the pageIndex, so it
// is added here and an eslint-disable-next-line is added to ignore the unused variable
// eslint-disable-next-line @typescript-eslint/no-unused-vars
// is added here.
const [pageIndex, setPageIndex] = useQueryState(
"pageIndex",
parseAsInteger.withDefault(1),
Expand Down
2 changes: 0 additions & 2 deletions apps/clearance_ui/src/helpers/decomposeLicenses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ export function decomposeLicenses(spdxExpressions: Set<string>): Set<string> {
const parsedInfo = parseSPDX(spdxExpression);
const licenses = extractLicenses(parsedInfo);
allLicenses.push(...licenses);
// Disable eslint rule for unused variable as the error needs to be caught, but not used.
// eslint-disable-next-line @typescript-eslint/no-unused-vars
} catch (e) {
allLicenses.push(spdxExpression);
}
Expand Down
2 changes: 0 additions & 2 deletions apps/clearance_ui/src/schemes/spdx_schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ export const concludedLicenseExpressionSPDXSchema = z
try {
parseSPDX(value);
return true;
// Disable eslint rule for unused variable as the error needs to be caught, but not used.
// eslint-disable-next-line @typescript-eslint/no-unused-vars
} catch (e) {
return false;
}
Expand Down
Loading
Loading