@zthun/janitor-eslint-config 20.0.1 → 20.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13,8 +13,13 @@ export const html = defineConfig([
13
13
  {
14
14
  files: files(...ExtHtml),
15
15
  rules: {
16
- // Prettier defaults to 2 spaces, so this needs to as well.
17
- "@html-eslint/indent": ["error", 2],
16
+ // All of these rules conflict with prettier and that linter
17
+ // is the highest priority for formatting. So we don't need
18
+ // these rules turned on.
19
+ "@html-eslint/indent": "off",
20
+ "@html-eslint/no-extra-spacing-attrs": "off",
21
+ "@html-eslint/require-closing-tags": "off",
22
+ "@html-eslint/attrs-newline": "off",
18
23
  },
19
24
  },
20
25
  {
@@ -12,5 +12,6 @@ export const ignores = defineConfig([
12
12
  "**/.yarn",
13
13
  "**/*.husky",
14
14
  "**/lerna.json",
15
+ "**/cspell.json",
15
16
  ]),
16
17
  ]);
@@ -49,9 +49,21 @@ export const typescript = defineConfig([
49
49
  // be required to use any at some point. Forcing a non use of them
50
50
  // means you're spending a bunch of time play type gymnastics and to
51
51
  // hell with that.
52
- "@typescript-eslint/no-explicit-any": "off",
53
52
  "@typescript-eslint/no-namespace": "off",
54
53
 
54
+ // JavaScript is any by default; The sentiment here is understood
55
+ // to prefer unknown over any but there are times where any
56
+ // helps, especially if we don't have a typescript api for
57
+ // a 3rd party dependency. If something is declared as any,
58
+ // let's treat it as it is meant to be used. May revisit this
59
+ // decision later on, but for now, any is allowed.
60
+ "@typescript-eslint/no-explicit-any": "off",
61
+ "@typescript-eslint/no-unsafe-assignment": "off",
62
+ "@typescript-eslint/no-unsafe-argument": "off",
63
+ "@typescript-eslint/no-unsafe-call": "off",
64
+ "@typescript-eslint/no-unsafe-member-access": "off",
65
+ "@typescript-eslint/no-unsafe-return": "off",
66
+
55
67
  // Would be fine, but there's a bug in this where you have a function with
56
68
  // access arguments. Those constructors are often empty - so we want to let
57
69
  // a part of this one through.
@@ -70,6 +82,11 @@ export const typescript = defineConfig([
70
82
  "@typescript-eslint/no-empty-object-type": "off",
71
83
  "@typescript-eslint/no-empty-interface": "off",
72
84
 
85
+ // This rule conflicts with development styles like react which use hooks and
86
+ // often want to pass methods around without the assumption that it is attached
87
+ // to a this pointer.
88
+ "@typescript-eslint/unbound-method": "off",
89
+
73
90
  // You will need unsafe declaration merging if you are doing anything
74
91
  // with decorators as what often happens is that TypeScript cannot infer
75
92
  // the output type of a decorator. So this has to be on to deal with
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zthun/janitor-eslint-config",
3
- "version": "20.0.1",
3
+ "version": "20.0.3",
4
4
  "description": "A shared configuration for eslint for @zthun scoped projects.",
5
5
  "keywords": [
6
6
  "eslint",
@@ -42,7 +42,7 @@
42
42
  "typescript-eslint": "^8.58.0"
43
43
  },
44
44
  "devDependencies": {
45
- "@zthun/janitor-build-config": "^20.0.0",
45
+ "@zthun/janitor-build-config": "^20.0.2",
46
46
  "eslint": "^9.39.4",
47
47
  "prettier": "^3.8.1",
48
48
  "typescript": "~5.9.3",
@@ -63,5 +63,5 @@
63
63
  "access": "public"
64
64
  },
65
65
  "author": "Anthony Bonta",
66
- "gitHead": "2751f2fb1ee4a12298c1125281a6c27e922e3262"
66
+ "gitHead": "10c75a160057497eca34185883ae35753c0bc763"
67
67
  }