@nighttrax/eslint-config-tsx 12.0.0-beta.0 → 12.0.0-beta.1

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/CHANGELOG.md CHANGED
@@ -3,6 +3,13 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [12.0.0-beta.1](https://github.com/NiGhTTraX/eslint-config/compare/@nighttrax/eslint-config-tsx@12.0.0-beta.0...@nighttrax/eslint-config-tsx@12.0.0-beta.1) (2025-07-06)
7
+
8
+ ### Features
9
+
10
+ - **react:** Add a11y rules ([bd825d0](https://github.com/NiGhTTraX/eslint-config/commit/bd825d0f0ab75caba1dff3b4d93a44b45ae7748b))
11
+ - **react:** Don't enable stylistic React rules ([4a1d5e1](https://github.com/NiGhTTraX/eslint-config/commit/4a1d5e1a17a70e8cc2f9aa7bb74fbb19eff76b59))
12
+
6
13
  # [12.0.0-beta.0](https://github.com/NiGhTTraX/eslint-config/compare/@nighttrax/eslint-config-tsx@12.0.0-alpha.3...@nighttrax/eslint-config-tsx@12.0.0-beta.0) (2025-07-04)
7
14
 
8
15
  **Note:** Version bump only for package @nighttrax/eslint-config-tsx
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nighttrax/eslint-config-tsx",
3
- "version": "12.0.0-beta.0",
3
+ "version": "12.0.0-beta.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -19,8 +19,9 @@
19
19
  "url": "git+https://github.com/NiGhTTraX/eslint-config.git"
20
20
  },
21
21
  "dependencies": {
22
- "@nighttrax/eslint-config-ts": "12.0.0-beta.0",
22
+ "@nighttrax/eslint-config-ts": "12.0.0-beta.1",
23
23
  "@typescript-eslint/parser": "~8.35.1",
24
+ "eslint-plugin-jsx-a11y": "~6.10.2",
24
25
  "eslint-plugin-react": "~7.37.5",
25
26
  "eslint-plugin-react-hooks": "~5.2.0",
26
27
  "globals": "~16.3.0",
@@ -33,5 +34,5 @@
33
34
  "eslint": "~9.30.1",
34
35
  "prettier": "~3.6.2"
35
36
  },
36
- "gitHead": "08d414c017075a0630fae6c105089cbac5b024fd"
37
+ "gitHead": "18c0dc9bd552923c4b81c8e3c572d8a58fb653ff"
37
38
  }
package/react.mjs CHANGED
@@ -1,8 +1,9 @@
1
1
  import globals from "globals";
2
2
  import tsEslint from "typescript-eslint";
3
3
  import * as tsParser from "@typescript-eslint/parser";
4
- import pluginReact from "eslint-plugin-react";
4
+ import * as react from "eslint-plugin-react";
5
5
  import * as reactHooks from "eslint-plugin-react-hooks";
6
+ import * as jsxA11y from "eslint-plugin-jsx-a11y";
6
7
  import { nighttraxTS } from "@nighttrax/eslint-config-ts";
7
8
 
8
9
  export const nighttraxReact = tsEslint.config([
@@ -13,8 +14,10 @@ export const nighttraxReact = tsEslint.config([
13
14
  languageOptions: { globals: globals.browser, parser: tsParser },
14
15
  },
15
16
 
16
- pluginReact.configs.flat.all,
17
+ react.configs.flat.recommended,
18
+ react.configs.flat["jsx-runtime"],
17
19
  reactHooks.configs["recommended-latest"],
20
+ jsxA11y.flatConfigs.recommended,
18
21
 
19
22
  {
20
23
  settings: {
@@ -23,7 +26,6 @@ export const nighttraxReact = tsEslint.config([
23
26
  },
24
27
  },
25
28
  rules: {
26
- "react/react-in-jsx-scope": "off",
27
29
  "react/display-name": "off",
28
30
  "react/prefer-read-only-props": "off",
29
31
  "react/function-component-definition": "off",
@@ -40,12 +42,6 @@ export const nighttraxReact = tsEslint.config([
40
42
  "react/no-unused-prop-types": "off",
41
43
  "react/forbid-component-props": "off",
42
44
  "react/hook-use-state": "off",
43
-
44
- // Autofocus is said to disorient users with cognitive disabilities.
45
- // However, the same spec
46
- // (https://w3c.github.io/html/sec-forms.html#autofocusing-a-form-control-the-autofocus-attribute)
47
- // says that user agents should provide a way to disable autofocus behavior.
48
- "jsx-a11y/no-autofocus": "off",
49
45
  },
50
46
  },
51
47
  ]);