Skip to content

Commit 298ab03

Browse files
authored
Merge pull request #219 from webdeveric/chore/deps
Updated linting config
2 parents e564377 + 8569c4d commit 298ab03

17 files changed

Lines changed: 503 additions & 518 deletions

.eslintrc.json

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
"es6": true,
77
"node": true
88
},
9+
"parser": "@typescript-eslint/parser",
910
"parserOptions": {
10-
"project": ["./tsconfig.json"],
11-
"EXPERIMENTAL_useProjectService": true,
11+
"projectService": true,
1212
"ecmaFeatures": {
1313
"jsx": false
1414
}
@@ -28,6 +28,7 @@
2828
}
2929
},
3030
"rules": {
31+
"@typescript-eslint/no-unsafe-function-type": "off",
3132
"import/first": "error",
3233
"import/no-absolute-path": "error",
3334
"import/no-cycle": "error",
@@ -66,5 +67,13 @@
6667
}
6768
],
6869
"sort-imports": "off"
69-
}
70+
},
71+
"overrides": [
72+
{
73+
"files": "*.test-d.ts",
74+
"rules": {
75+
"@typescript-eslint/no-unused-vars": "off"
76+
}
77+
}
78+
]
7079
}

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
"url": "https://github.com/webdeveric/utils/issues"
6767
},
6868
"homepage": "https://github.com/webdeveric/utils/#readme",
69-
"packageManager": "pnpm@10.28.2+sha512.41872f037ad22f7348e3b1debbaf7e867cfd448f2726d9cf74c08f19507c31d2c8e7a11525b983febc2df640b5438dee6023ebb1f84ed43cc2d654d2bc326264",
69+
"packageManager": "pnpm@10.29.3+sha512.498e1fb4cca5aa06c1dcf2611e6fafc50972ffe7189998c409e90de74566444298ffe43e6cd2acdc775ba1aa7cc5e092a8b7054c811ba8c5770f84693d33d2dc",
7070
"scripts": {
7171
"clean": "rimraf ./dist/",
7272
"prebuild": "pnpm clean",
@@ -87,12 +87,12 @@
8787
"devDependencies": {
8888
"@commitlint/config-conventional": "^20.4.1",
8989
"@commitlint/types": "^20.4.0",
90-
"@types/node": "^22.19.8",
90+
"@types/node": "^22.19.11",
9191
"@vitest/coverage-v8": "^3.2.4",
92-
"@webdeveric/eslint-config-ts": "^0.11.0",
92+
"@webdeveric/eslint-config-ts": "^0.12.0",
9393
"@webdeveric/prettier-config": "^0.3.0",
9494
"commitlint": "^20.4.1",
95-
"commitlint-plugin-cspell": "^0.4.0",
95+
"commitlint-plugin-cspell": "^0.5.0",
9696
"conventional-changelog-conventionalcommits": "^9.1.0",
9797
"cspell": "^9.6.4",
9898
"eslint": "^8.57.1",
@@ -106,7 +106,7 @@
106106
"rimraf": "^6.1.2",
107107
"semantic-release": "^24.2.9",
108108
"typescript": "^5.9.3",
109-
"validate-package-exports": "^0.16.0",
109+
"validate-package-exports": "^0.18.0",
110110
"vitest": "^3.2.4"
111111
},
112112
"pnpm": {

pnpm-lock.yaml

Lines changed: 472 additions & 484 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
minimumReleaseAge: 2880 # 2 days
2+
minimumReleaseAgeExclude:
3+
- '@typescript-eslint/*'
4+
- '@webdeveric/eslint-config-ts'

src/assertion/assertIsFunction.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable @typescript-eslint/ban-types */
21
import { isFunction } from '../predicate/isFunction.js';
32

43
import { getError } from './getError.js';

src/describeInput.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export const describeInput = (input: unknown): string => {
2929
const url = new URL(input);
3030

3131
return `${url.protocol.replace(':', '')} URL${url.username || url.password ? ' with credentials' : ''}`;
32-
} catch (error) {
32+
} catch {
3333
return 'Invalid URL';
3434
}
3535
}

src/predicate/factory/shape.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable @typescript-eslint/ban-types */
21
import { hasAdditionalProperties } from '../../hasAdditionalProperties.js';
32
import { isAnyObject } from '../isAnyObject.js';
43

src/predicate/factory/simple.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable @typescript-eslint/ban-types */
21
import type { InferPredicateReturnType, TypePredicateFn } from '../../types/functions.js';
32

43
export type Simple<Type> = Type extends string

src/predicate/isFunction.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
/* eslint-disable @typescript-eslint/ban-types */
21
export const isFunction = (input: unknown): input is Function => typeof input === 'function';

src/redactCredentialsInURL.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export const redactCredentialsInURL = (
2121
}
2222

2323
return url.toString();
24-
} catch (error) {
24+
} catch {
2525
return String(input);
2626
}
2727
};

0 commit comments

Comments
 (0)