Skip to content

Commit

Permalink
feat: Update Typescript config
Browse files Browse the repository at this point in the history
  • Loading branch information
Karol committed Jan 4, 2025
1 parent a227275 commit e2b7f5c
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
5 changes: 3 additions & 2 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ export default [
// Setting the parser to TypeScript parser
parser: tsParser,
parserOptions: {
// Specifying the path to the TypeScript configuration file
project: "./tsconfig.json",
// Specifying the path to the TypeScript configuration file, we use a
// custom one to fix tests parsing.
project: "./tsconfig.eslint.json",
},
},
rules: {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"build": "pnpm run clean && tsc",
"clean": "rm -rf ./dist",
"generate": "tsx ./ts-signatures-generator",
"lint": "eslint .",
"lint": "eslint ./src",
"prepack": "pnpm run build",
"test": "vitest ./src --run",
"test:watch": "vitest ./src",
Expand Down
5 changes: 5 additions & 0 deletions tsconfig.eslint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"extends": "./tsconfig.json",
"include": ["src/**/*"], // Include all source files, including tests
"exclude": ["node_modules", "dist"] // Clear the exclude list to ensure tests are included
}
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
"*": ["*", "src/*"]
}
},
"include": ["src/index.ts", "src/**/*.ts", "src/**/*.spec.ts"],
"exclude": ["node_modules", "dist"]
"include": ["src/index.ts"],
"exclude": ["node_modules", "dist", "src/**/*.spec.ts"]
}

0 comments on commit e2b7f5c

Please sign in to comment.