diff --git a/.eslintrc.json b/.eslintrc.json index 1269690..b0ffb24 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,4 +1,7 @@ { + "env": { + "node": true + }, "parser": "@typescript-eslint/parser", "extends": [ "eslint:recommended", @@ -30,7 +33,8 @@ "jsdoc/check-param-names": "error", "jsdoc/check-property-names": "error", "jsdoc/check-tag-names": "error", - "jsdoc/no-types": "error", + "jsdoc/require-param-type": "warn", + "jsdoc/require-returns-type": "warn", "jsdoc/sort-tags": "error", "no-constant-condition": "off", "no-multi-spaces": "error", diff --git a/test/metadata.test.ts b/test/metadata.test.js similarity index 92% rename from test/metadata.test.ts rename to test/metadata.test.js index 9cd470d..05cae21 100644 --- a/test/metadata.test.ts +++ b/test/metadata.test.js @@ -2,8 +2,13 @@ import { promises as fs } from 'fs' import { describe, expect, it } from 'vitest' import { castBigInts, parquetMetadata } from '../src/metadata' -// Helper function to read .parquet file into ArrayBuffer -async function readFileToArrayBuffer(filePath: string): Promise { +/** + * Helper function to read .parquet file into ArrayBuffer + * + * @param {string} filePath + * @returns {Promise} + */ +async function readFileToArrayBuffer(filePath) { const buffer = await fs.readFile(filePath) return buffer.buffer.slice(buffer.byteOffset, buffer.byteOffset + buffer.byteLength) } diff --git a/test/package.test.ts b/test/package.test.js similarity index 100% rename from test/package.test.ts rename to test/package.test.js diff --git a/test/snappy.test.ts b/test/snappy.test.js similarity index 100% rename from test/snappy.test.ts rename to test/snappy.test.js diff --git a/test/thrift.test.ts b/test/thrift.test.js similarity index 100% rename from test/thrift.test.ts rename to test/thrift.test.js