@djangocfg/eslint-config 2.1.541 → 2.1.542

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.
package/base.js CHANGED
@@ -21,6 +21,25 @@ export const config = [
21
21
  "turbo/no-undeclared-env-vars": "warn",
22
22
  },
23
23
  },
24
+ {
25
+ rules: {
26
+ // A leading underscore is how this repo already writes "deliberately
27
+ // unused" — an interface method that must keep its signature, a caught
28
+ // error nobody inspects. `typescript-eslint`'s default knows nothing
29
+ // about that, so it reported the convention itself as a finding, and in
30
+ // a package linting with `--max-warnings 0` that made the intended
31
+ // spelling the failing one.
32
+ "@typescript-eslint/no-unused-vars": [
33
+ "warn",
34
+ {
35
+ argsIgnorePattern: "^_",
36
+ varsIgnorePattern: "^_",
37
+ caughtErrorsIgnorePattern: "^_",
38
+ destructuredArrayIgnorePattern: "^_",
39
+ },
40
+ ],
41
+ },
42
+ },
24
43
  {
25
44
  // Design-system token hygiene: forbid raw Tailwind color-scale classes
26
45
  // (bg-amber-500, text-emerald-600, border-red-500/40, …) in className /
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@djangocfg/eslint-config",
3
- "version": "2.1.541",
3
+ "version": "2.1.542",
4
4
  "description": "Shared ESLint configurations for Next.js, React, and TypeScript projects with best practices and Prettier integration",
5
5
  "keywords": [
6
6
  "eslint",
package/react-internal.js CHANGED
@@ -34,6 +34,12 @@ export const config = [
34
34
  ...pluginReactHooks.configs.recommended.rules,
35
35
  // React scope no longer necessary with new JSX transform.
36
36
  "react/react-in-jsx-scope": "off",
37
+ // Same reasoning, for TypeScript: `react/prop-types` checks for a runtime
38
+ // `propTypes` declaration, which is what a props TYPE already is here —
39
+ // statically, and more completely. Left on, it reports every typed
40
+ // component in the workspace as unvalidated, which trains readers to
41
+ // scroll past the lint output rather than read it.
42
+ "react/prop-types": "off",
37
43
  },
38
44
  },
39
45
  ];