@zthun/janitor-eslint-config 20.0.0 → 20.0.2

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
  {
@@ -11,5 +11,7 @@ export const ignores = defineConfig([
11
11
  // Generated
12
12
  "**/.yarn",
13
13
  "**/*.husky",
14
+ "**/lerna.json",
15
+ "**/cspell.json",
14
16
  ]),
15
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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zthun/janitor-eslint-config",
3
- "version": "20.0.0",
3
+ "version": "20.0.2",
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": "301c78d6aeace701c8ad4c9605b94afacad33955"
66
+ "gitHead": "43e33274895e22fd9e8df666e9de7bfca2b68c2e"
67
67
  }