Skip to content

Commit ea61958

Browse files
authored
Merge pull request #5 from sam-mfb/dep-updates
Dep updates
2 parents 4f75792 + 3eda979 commit ea61958

File tree

10 files changed

+9452
-1948
lines changed

10 files changed

+9452
-1948
lines changed

.eslintrc.js

Lines changed: 0 additions & 29 deletions
This file was deleted.

eslint.config.mjs

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
import eslint from "@eslint/js"
2+
import tseslint from "typescript-eslint"
3+
4+
export default tseslint.config(
5+
{
6+
ignores: ["**/*.js"]
7+
},
8+
eslint.configs.recommended,
9+
...tseslint.configs.strict,
10+
{
11+
rules: {
12+
"@typescript-eslint/consistent-type-definitions": [1, "type"],
13+
"@typescript-eslint/naming-convention": [
14+
"error",
15+
{
16+
selector: "parameter",
17+
format: ["camelCase"],
18+
leadingUnderscore: "allow"
19+
}
20+
],
21+
"@typescript-eslint/typedef": 0,
22+
"@typescript-eslint/explicit-function-return-type": [
23+
"warn",
24+
{
25+
allowExpressions: true,
26+
allowTypedFunctionExpressions: true,
27+
allowHigherOrderFunctions: false
28+
}
29+
],
30+
"@typescript-eslint/no-unused-vars": [
31+
"warn",
32+
{
33+
vars: "all",
34+
// Unused function arguments often indicate a mistake in JavaScript code. However in TypeScript code,
35+
// the compiler catches most of those mistakes, and unused arguments are fairly common for type signatures
36+
// that are overriding a base class method or implementing an interface.
37+
args: "none"
38+
}
39+
],
40+
"dot-notation": [
41+
"warn",
42+
{
43+
allowPattern: "^_"
44+
}
45+
]
46+
}
47+
}
48+
)

0 commit comments

Comments
 (0)