Skip to content

Commit b3f1672

Browse files
committed
- Add lint, packaging rules
1 parent 2936033 commit b3f1672

File tree

3 files changed

+34
-2
lines changed

3 files changed

+34
-2
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import js from "@eslint/js";
2+
import tsPlugin from "@typescript-eslint/eslint-plugin";
3+
import tsParser from "@typescript-eslint/parser";
4+
5+
/** @type {import("eslint").Linter.Config[]} */
6+
export default [
7+
js.configs.recommended,
8+
{
9+
files: ["**/*.ts", "**/*.tsx"],
10+
languageOptions: {
11+
parser: tsParser,
12+
parserOptions: {
13+
sourceType: "module",
14+
ecmaVersion: "latest",
15+
}
16+
},
17+
plugins: {
18+
"@typescript-eslint": tsPlugin,
19+
},
20+
rules: {
21+
"no-redeclare": "off",
22+
},
23+
},
24+
];
25+

libs/js/oracledb/langchain-oracledb/package.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
"lint:dpdm": "dpdm --skip-dynamic-imports circular --exit-code circular:1 --no-warning --no-tree src/*.ts src/**/*.ts",
2121
"lint": "pnpm lint:eslint && pnpm lint:dpdm",
2222
"lint:fix": "pnpm lint:eslint --fix && pnpm lint:dpdm",
23+
"pack:dry": "pnpm build && npm pack --dry-run",
24+
"pack": "pnpm build && npm pack",
25+
"publish": "pnpm build && npm publish",
2326
"clean": "rm -rf .turbo dist/",
2427
"test": "vitest run",
2528
"test:watch": "vitest",
@@ -43,18 +46,22 @@
4346
},
4447
"devDependencies": {
4548
"@cfworker/json-schema": "^4.1.1",
49+
"@eslint/js": "^9.39.1",
4650
"@jest/globals": "^29.5.0",
4751
"@langchain/core": "^1.0.0",
4852
"@langchain/textsplitters": "^1.0.0",
4953
"@swc/jest": "^0.2.29",
5054
"@tsconfig/recommended": "^1.0.3",
5155
"@types/oracledb": "^6.6.0",
56+
"@typescript-eslint/eslint-plugin": "^8.48.1",
57+
"@typescript-eslint/parser": "^8.48.1",
5258
"@vitest/coverage-v8": "^3.2.4",
5359
"dotenv": "^16.6.1",
5460
"dpdm": "^3.14.0",
55-
"eslint": "^9.34.0",
61+
"eslint": "^9",
5662
"jest": "^29.5.0",
5763
"jest-environment-node": "^29.6.4",
64+
"jiti": "^2.6.1",
5865
"prettier": "^2.8.3",
5966
"rollup": "^4.5.2",
6067
"ts-jest": "^29.1.0",

libs/js/oracledb/langchain-oracledb/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"extends": "@tsconfig/recommended",
33
"compilerOptions": {
4-
"outDir": "../dist",
4+
"outDir": "./dist",
55
"rootDir": "./src",
66
"target": "ES2021",
77
"lib": ["ES2021", "ES2022.Object", "DOM"],

0 commit comments

Comments
 (0)