Skip to content

Commit

Permalink
config tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
TateB committed Oct 24, 2023
1 parent 9bb0650 commit e394cb1
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 13 deletions.
11 changes: 10 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,17 @@
"plugins": ["@typescript-eslint", "prettier"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.eslint.json"
"project": "./tsconfig.json"
},
"ignorePatterns": ["tests/**/*"],
"overrides": [
{
"parserOptions": {
"project": "./tests/tsconfig.json"
},
"files": ["tests/**/*"]
}
],
"rules": {
"no-console": "off",
"prettier/prettier": "error",
Expand Down
Binary file modified bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"@types/mocha": "^8.2.0",
"@types/node": "^14.14.22",
"@types/node-fetch": "^2.5.8",
"bun-types": "^1.0.3",
"bun-types": "^1.0.7",
"eslint": "^8.52.0",
"eslint-config-airbnb-typescript": "^17.1.0",
"eslint-config-prettier": "^9.0.0",
Expand Down
9 changes: 9 additions & 0 deletions tests/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": "../tsconfig.json",
"include": ["../src/**/*", "./**/*.ts"],
"compilerOptions": {
"types": [
"bun-types" // add Bun global
]
}
}
8 changes: 8 additions & 0 deletions tsconfig.base.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"compilerOptions": {
"module": "commonjs",
"target": "es2015",
"skipLibCheck": true,
"types": ["./src/@types/dns-packet"]
}
}
4 changes: 0 additions & 4 deletions tsconfig.eslint.json

This file was deleted.

9 changes: 2 additions & 7 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
{
"extends": "./tsconfig.base.json",
"compilerOptions": {
"module": "commonjs",
"target": "es2015",
"declaration": true,
"skipLibCheck": true,
"outDir": "./dist",
"types": [
"bun-types", // add Bun global
"./src/@types/dns-packet"
]
"types": ["node"]
},
"include": ["src/**/*"]
}

0 comments on commit e394cb1

Please sign in to comment.