@nighttrax/eslint-config-tsx 12.0.0-beta.2 → 12.0.0-beta.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.
- package/package.json +9 -7
- package/src/react.mjs +44 -0
- package/CHANGELOG.md +0 -111
- package/react.mjs +0 -53
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nighttrax/eslint-config-tsx",
|
|
3
|
-
"version": "12.0.0-beta.
|
|
3
|
+
"version": "12.0.0-beta.3",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -13,25 +13,27 @@
|
|
|
13
13
|
],
|
|
14
14
|
"author": "Andrei Picus <NiGhTTraX@users.noreply.github.com>",
|
|
15
15
|
"license": "MIT",
|
|
16
|
-
"main": "react.mjs",
|
|
16
|
+
"main": "src/react.mjs",
|
|
17
|
+
"files": [
|
|
18
|
+
"src"
|
|
19
|
+
],
|
|
17
20
|
"repository": {
|
|
18
21
|
"type": "git",
|
|
19
22
|
"url": "git+https://github.com/NiGhTTraX/eslint-config.git"
|
|
20
23
|
},
|
|
21
24
|
"dependencies": {
|
|
22
|
-
"@typescript-eslint/parser": "~8.35.1",
|
|
23
25
|
"eslint-plugin-jsx-a11y": "~6.10.2",
|
|
24
26
|
"eslint-plugin-react": "~7.37.5",
|
|
25
27
|
"eslint-plugin-react-hooks": "~5.2.0",
|
|
26
|
-
"
|
|
27
|
-
"typescript-eslint": "~8.35.1",
|
|
28
|
-
"@nighttrax/eslint-config-ts": "12.0.0-beta.2"
|
|
28
|
+
"@nighttrax/eslint-config-ts": "12.0.0-beta.3"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
31
|
"eslint": "^9.0.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
+
"@types/react": "~19.1.8",
|
|
34
35
|
"eslint": "~9.30.1",
|
|
35
|
-
"prettier": "~3.6.2"
|
|
36
|
+
"prettier": "~3.6.2",
|
|
37
|
+
"react": "~19.1.0"
|
|
36
38
|
}
|
|
37
39
|
}
|
package/src/react.mjs
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import react from "eslint-plugin-react";
|
|
2
|
+
import jsxA11y from "eslint-plugin-jsx-a11y";
|
|
3
|
+
import * as reactHooks from "eslint-plugin-react-hooks";
|
|
4
|
+
import { nighttraxTS } from "@nighttrax/eslint-config-ts";
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* @param {import('typescript-eslint').InfiniteDepthConfigWithExtends[]} configs
|
|
8
|
+
*/
|
|
9
|
+
export const nighttraxReact = (...configs) =>
|
|
10
|
+
nighttraxTS([
|
|
11
|
+
react.configs.flat.recommended,
|
|
12
|
+
react.configs.flat["jsx-runtime"],
|
|
13
|
+
reactHooks.configs["recommended-latest"],
|
|
14
|
+
jsxA11y.flatConfigs.recommended,
|
|
15
|
+
|
|
16
|
+
{
|
|
17
|
+
settings: {
|
|
18
|
+
react: {
|
|
19
|
+
version: "detect",
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
rules: {
|
|
23
|
+
// This usually warns for memoized or forwardRef-ed components, which is fine.
|
|
24
|
+
"react/display-name": "off",
|
|
25
|
+
"react/function-component-definition": [
|
|
26
|
+
"error",
|
|
27
|
+
{
|
|
28
|
+
namedComponents: "arrow-function",
|
|
29
|
+
unnamedComponents: "arrow-function",
|
|
30
|
+
},
|
|
31
|
+
],
|
|
32
|
+
"react/jsx-handler-names": [
|
|
33
|
+
"error",
|
|
34
|
+
{
|
|
35
|
+
eventHandlerPrefix: "on",
|
|
36
|
+
eventHandlerPropPrefix: "on",
|
|
37
|
+
},
|
|
38
|
+
],
|
|
39
|
+
"react/jsx-no-leaked-render": "error",
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
|
|
43
|
+
...configs,
|
|
44
|
+
]);
|
package/CHANGELOG.md
DELETED
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
# Change Log
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file.
|
|
4
|
-
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
-
|
|
6
|
-
# [12.0.0-beta.2](https://github.com/NiGhTTraX/eslint-config/compare/@nighttrax/eslint-config-tsx@12.0.0-beta.1...@nighttrax/eslint-config-tsx@12.0.0-beta.2) (2025-07-10)
|
|
7
|
-
|
|
8
|
-
### Bug Fixes
|
|
9
|
-
|
|
10
|
-
- **react:** Fix imports ([7afa29d](https://github.com/NiGhTTraX/eslint-config/commit/7afa29d6c9cb1be3b6b34f081c3171aae481238e))
|
|
11
|
-
|
|
12
|
-
### Features
|
|
13
|
-
|
|
14
|
-
- **ts,tsx:** Export config helpers ([ae77cda](https://github.com/NiGhTTraX/eslint-config/commit/ae77cdacf76e80427b0e8fcc5618622d83c0b21b))
|
|
15
|
-
|
|
16
|
-
# [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)
|
|
17
|
-
|
|
18
|
-
### Features
|
|
19
|
-
|
|
20
|
-
- **react:** Add a11y rules ([bd825d0](https://github.com/NiGhTTraX/eslint-config/commit/bd825d0f0ab75caba1dff3b4d93a44b45ae7748b))
|
|
21
|
-
- **react:** Don't enable stylistic React rules ([4a1d5e1](https://github.com/NiGhTTraX/eslint-config/commit/4a1d5e1a17a70e8cc2f9aa7bb74fbb19eff76b59))
|
|
22
|
-
|
|
23
|
-
# [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)
|
|
24
|
-
|
|
25
|
-
**Note:** Version bump only for package @nighttrax/eslint-config-tsx
|
|
26
|
-
|
|
27
|
-
# [12.0.0-alpha.3](https://github.com/NiGhTTraX/eslint-config/compare/@nighttrax/eslint-config-tsx@12.0.0-alpha.2...@nighttrax/eslint-config-tsx@12.0.0-alpha.3) (2023-04-17)
|
|
28
|
-
|
|
29
|
-
### Bug Fixes
|
|
30
|
-
|
|
31
|
-
- **deps:** update typescript-eslint monorepo to ~5.57.0 ([339bfcb](https://github.com/NiGhTTraX/eslint-config/commit/339bfcb1e325f4d3ce1dc4c614d6518d48113c18))
|
|
32
|
-
|
|
33
|
-
# [12.0.0-alpha.2](https://github.com/NiGhTTraX/eslint-config/compare/@nighttrax/eslint-config-tsx@12.0.0-alpha.1...@nighttrax/eslint-config-tsx@12.0.0-alpha.2) (2023-03-20)
|
|
34
|
-
|
|
35
|
-
**Note:** Version bump only for package @nighttrax/eslint-config-tsx
|
|
36
|
-
|
|
37
|
-
# [12.0.0-alpha.1](https://github.com/NiGhTTraX/eslint-config/compare/@nighttrax/eslint-config-tsx@12.0.0-alpha.0...@nighttrax/eslint-config-tsx@12.0.0-alpha.1) (2023-03-20)
|
|
38
|
-
|
|
39
|
-
**Note:** Version bump only for package @nighttrax/eslint-config-tsx
|
|
40
|
-
|
|
41
|
-
# [10.0.0](https://github.com/NiGhTTraX/eslint-config/compare/@nighttrax/eslint-config-tsx@10.0.0-beta.2...@nighttrax/eslint-config-tsx@10.0.0) (2022-08-25)
|
|
42
|
-
|
|
43
|
-
### Bug Fixes
|
|
44
|
-
|
|
45
|
-
- **deps:** update dependency eslint-import-resolver-typescript to ~2.7.0 ([aa68548](https://github.com/NiGhTTraX/eslint-config/commit/aa68548080ce73b548e72500924d0043cdc74ac4))
|
|
46
|
-
- **deps:** update dependency eslint-import-resolver-typescript to ~3.2.0 ([1b7f887](https://github.com/NiGhTTraX/eslint-config/commit/1b7f8874a5f7db3c4d391535397ba157f112d307))
|
|
47
|
-
- **deps:** update dependency eslint-import-resolver-typescript to ~3.3.0 ([948363f](https://github.com/NiGhTTraX/eslint-config/commit/948363f2365dfaa209da18aa0b86ce3076da9579))
|
|
48
|
-
- **deps:** update dependency eslint-import-resolver-typescript to ~3.4.0 ([a45981a](https://github.com/NiGhTTraX/eslint-config/commit/a45981a6148644ffd82f7c1f741b611fc02d2200))
|
|
49
|
-
- **deps:** update dependency eslint-import-resolver-typescript to ~3.5.0 ([fd9b586](https://github.com/NiGhTTraX/eslint-config/commit/fd9b58690eeb9bf5124e3cb0af3d3aebb391fb5d))
|
|
50
|
-
- **deps:** update dependency eslint-import-resolver-typescript to v3 ([8cc5d9d](https://github.com/NiGhTTraX/eslint-config/commit/8cc5d9da548f22a2f25815a2ccf3cbec5d068129))
|
|
51
|
-
- **deps:** update dependency eslint-plugin-import to ~2.26.0 ([34d1654](https://github.com/NiGhTTraX/eslint-config/commit/34d16541be02de0367f190ed2ccedcc8c2d5799c))
|
|
52
|
-
- **deps:** update dependency eslint-plugin-jsx-a11y to ~6.6.0 ([62597e2](https://github.com/NiGhTTraX/eslint-config/commit/62597e2ba8a23f7b02795c47b5c23955770a0ecf))
|
|
53
|
-
- **deps:** update dependency eslint-plugin-prettier to ~4.1.0 ([1641c19](https://github.com/NiGhTTraX/eslint-config/commit/1641c19471618e5c775c53c9f5d3393320d754bc))
|
|
54
|
-
- **deps:** update dependency eslint-plugin-prettier to ~4.2.0 ([371b98f](https://github.com/NiGhTTraX/eslint-config/commit/371b98fbb445f693984614807084c06f6f15dcc0))
|
|
55
|
-
- **deps:** update dependency eslint-plugin-react to ~7.29.0 ([748a74c](https://github.com/NiGhTTraX/eslint-config/commit/748a74cf6b04dc02fd823cee50e1a1fa0d76e9f3))
|
|
56
|
-
- **deps:** update dependency eslint-plugin-react to ~7.30.0 ([de82c5f](https://github.com/NiGhTTraX/eslint-config/commit/de82c5fde798bd2e33adaf02aca39fe7e4ac4507))
|
|
57
|
-
- **deps:** update dependency eslint-plugin-react to ~7.31.0 ([c29b065](https://github.com/NiGhTTraX/eslint-config/commit/c29b0658d3f3a118e8fcc27a2af44c8fe429c24a))
|
|
58
|
-
- **deps:** update dependency eslint-plugin-react-hooks to ~4.4.0 ([7850328](https://github.com/NiGhTTraX/eslint-config/commit/7850328d5b69f1abf63304b5319e2765523a7fbb))
|
|
59
|
-
- **deps:** update dependency eslint-plugin-react-hooks to ~4.5.0 ([884bf63](https://github.com/NiGhTTraX/eslint-config/commit/884bf63de0f32704468b63995f129c15f842925e))
|
|
60
|
-
- **deps:** update dependency eslint-plugin-react-hooks to ~4.6.0 ([7e8637b](https://github.com/NiGhTTraX/eslint-config/commit/7e8637be31e8ed40f527f7b83991fc5cdfa75210))
|
|
61
|
-
- **deps:** update dependency prettier to ~2.6.0 ([66702f3](https://github.com/NiGhTTraX/eslint-config/commit/66702f3d5a0285b4d511ccd8e0983a1584e9b161))
|
|
62
|
-
- **deps:** update dependency prettier to ~2.7.0 ([dd152e0](https://github.com/NiGhTTraX/eslint-config/commit/dd152e093f072b99bff914b2b3066a7eba5119f1))
|
|
63
|
-
- **deps:** update typescript-eslint monorepo to ~5.10.0 ([6bea838](https://github.com/NiGhTTraX/eslint-config/commit/6bea838ed1e094aed6b5a060b4e8b50ef6f154bb))
|
|
64
|
-
- **deps:** update typescript-eslint monorepo to ~5.11.0 ([e39b801](https://github.com/NiGhTTraX/eslint-config/commit/e39b80183fb6b3f34ffbff628e4ef4b93bfb4351))
|
|
65
|
-
- **deps:** update typescript-eslint monorepo to ~5.12.0 ([420d4fc](https://github.com/NiGhTTraX/eslint-config/commit/420d4fcfcb156ff243ec673717f5fdc6b80d19ea))
|
|
66
|
-
- **deps:** update typescript-eslint monorepo to ~5.13.0 ([fd2881b](https://github.com/NiGhTTraX/eslint-config/commit/fd2881b8e089d823146d65583596869a02fa0d0f))
|
|
67
|
-
- **deps:** update typescript-eslint monorepo to ~5.14.0 ([93e1041](https://github.com/NiGhTTraX/eslint-config/commit/93e1041c93ad47430811970c0a841c6dfe042e44))
|
|
68
|
-
- **deps:** update typescript-eslint monorepo to ~5.15.0 ([fe2fa10](https://github.com/NiGhTTraX/eslint-config/commit/fe2fa1014597010222b26ee71fe7ec853bdf9503))
|
|
69
|
-
- **deps:** update typescript-eslint monorepo to ~5.16.0 ([f4c9cf4](https://github.com/NiGhTTraX/eslint-config/commit/f4c9cf4ad284dbd71b67ec663e945b5c9d2691c7))
|
|
70
|
-
- **deps:** update typescript-eslint monorepo to ~5.17.0 ([1c8fa70](https://github.com/NiGhTTraX/eslint-config/commit/1c8fa705640ac5166abe7db1e3c01ae079966f19))
|
|
71
|
-
- **deps:** update typescript-eslint monorepo to ~5.18.0 ([4a1f2a1](https://github.com/NiGhTTraX/eslint-config/commit/4a1f2a1ef0a57c181018b9ed8954d1a1e4fe109c))
|
|
72
|
-
- **deps:** update typescript-eslint monorepo to ~5.19.0 ([ca55f11](https://github.com/NiGhTTraX/eslint-config/commit/ca55f118cb1ac809b136e06ad986a88469cbecd0))
|
|
73
|
-
- **deps:** update typescript-eslint monorepo to ~5.20.0 ([d400a4c](https://github.com/NiGhTTraX/eslint-config/commit/d400a4caf65ddd4790e546f99fa0b58946960bdb))
|
|
74
|
-
- **deps:** update typescript-eslint monorepo to ~5.21.0 ([b9a21c7](https://github.com/NiGhTTraX/eslint-config/commit/b9a21c7dc3478bf2501a3c623eea65ec1235be8d))
|
|
75
|
-
- **deps:** update typescript-eslint monorepo to ~5.22.0 ([a4a245a](https://github.com/NiGhTTraX/eslint-config/commit/a4a245a30fc4ce94e7338175e686dee12b21fc04))
|
|
76
|
-
- **deps:** update typescript-eslint monorepo to ~5.25.0 ([d6853bd](https://github.com/NiGhTTraX/eslint-config/commit/d6853bdc38267461b8815023601a8c31bd2f4e8e))
|
|
77
|
-
- **deps:** update typescript-eslint monorepo to ~5.26.0 ([2b350f3](https://github.com/NiGhTTraX/eslint-config/commit/2b350f36b178ad5473d6239f58b907f159cf84d5))
|
|
78
|
-
- **deps:** update typescript-eslint monorepo to ~5.27.0 ([09201f9](https://github.com/NiGhTTraX/eslint-config/commit/09201f993430c314fd8435ffd8b16205e52f7eeb))
|
|
79
|
-
- **deps:** update typescript-eslint monorepo to ~5.28.0 ([546d2c4](https://github.com/NiGhTTraX/eslint-config/commit/546d2c420feece937ad57e50402d652883317cdd))
|
|
80
|
-
- **deps:** update typescript-eslint monorepo to ~5.29.0 ([4e504a7](https://github.com/NiGhTTraX/eslint-config/commit/4e504a71e60f03ba9109509286ced399f9efafe9))
|
|
81
|
-
- **deps:** update typescript-eslint monorepo to ~5.30.0 ([18e9958](https://github.com/NiGhTTraX/eslint-config/commit/18e9958b89d70c392c8655781bd10ab9381c904d))
|
|
82
|
-
- **deps:** update typescript-eslint monorepo to ~5.31.0 ([867b97a](https://github.com/NiGhTTraX/eslint-config/commit/867b97a8b7db0a7c9afe6c380b4a29ba7d769ecc))
|
|
83
|
-
- **deps:** update typescript-eslint monorepo to ~5.32.0 ([b86e191](https://github.com/NiGhTTraX/eslint-config/commit/b86e191c4c6937182cafdff95a6bc7de5c9583bc))
|
|
84
|
-
- **deps:** update typescript-eslint monorepo to ~5.33.0 ([fc5ce21](https://github.com/NiGhTTraX/eslint-config/commit/fc5ce21da0fda498ee4707e80ec28f7dd750959f))
|
|
85
|
-
- **deps:** update typescript-eslint monorepo to ~5.34.0 ([6d2ffdd](https://github.com/NiGhTTraX/eslint-config/commit/6d2ffdd9240c0a3bc881aa3c8772106a8238f0f6))
|
|
86
|
-
- **deps:** update typescript-eslint monorepo to ~5.35.0 ([7d6d91f](https://github.com/NiGhTTraX/eslint-config/commit/7d6d91f66713cd79aee142c1df53c2a479e7890e))
|
|
87
|
-
- **deps:** update typescript-eslint monorepo to ~5.9.0 ([3ff65f2](https://github.com/NiGhTTraX/eslint-config/commit/3ff65f285351f0b6ae33fd9e481fb7d1a339ed14))
|
|
88
|
-
|
|
89
|
-
## [8.0.5](https://github.com/NiGhTTraX/eslint-config/compare/@nighttrax/eslint-config-tsx@8.0.4...@nighttrax/eslint-config-tsx@8.0.5) (2021-02-21)
|
|
90
|
-
|
|
91
|
-
**Note:** Version bump only for package @nighttrax/eslint-config-tsx
|
|
92
|
-
|
|
93
|
-
## [8.0.4](https://github.com/NiGhTTraX/eslint-config/compare/@nighttrax/eslint-config-tsx@8.0.3...@nighttrax/eslint-config-tsx@8.0.4) (2021-01-27)
|
|
94
|
-
|
|
95
|
-
**Note:** Version bump only for package @nighttrax/eslint-config-tsx
|
|
96
|
-
|
|
97
|
-
## [8.0.3](https://github.com/NiGhTTraX/eslint-config/compare/@nighttrax/eslint-config-tsx@8.0.2...@nighttrax/eslint-config-tsx@8.0.3) (2021-01-24)
|
|
98
|
-
|
|
99
|
-
**Note:** Version bump only for package @nighttrax/eslint-config-tsx
|
|
100
|
-
|
|
101
|
-
## [8.0.2](https://github.com/NiGhTTraX/eslint-config/compare/@nighttrax/eslint-config-tsx@8.0.1...@nighttrax/eslint-config-tsx@8.0.2) (2021-01-11)
|
|
102
|
-
|
|
103
|
-
**Note:** Version bump only for package @nighttrax/eslint-config-tsx
|
|
104
|
-
|
|
105
|
-
## [8.0.1](https://github.com/NiGhTTraX/eslint-config/compare/@nighttrax/eslint-config-tsx@8.0.0...@nighttrax/eslint-config-tsx@8.0.1) (2021-01-08)
|
|
106
|
-
|
|
107
|
-
**Note:** Version bump only for package @nighttrax/eslint-config-tsx
|
|
108
|
-
|
|
109
|
-
# [8.0.0](https://github.com/NiGhTTraX/eslint-config/compare/@nighttrax/eslint-config-tsx@8.0.0-alpha.0...@nighttrax/eslint-config-tsx@8.0.0) (2021-01-07)
|
|
110
|
-
|
|
111
|
-
**Note:** Version bump only for package @nighttrax/eslint-config-tsx
|
package/react.mjs
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import globals from "globals";
|
|
2
|
-
import tsEslint from "typescript-eslint";
|
|
3
|
-
import * as tsParser from "@typescript-eslint/parser";
|
|
4
|
-
import react from "eslint-plugin-react";
|
|
5
|
-
import jsxA11y from "eslint-plugin-jsx-a11y";
|
|
6
|
-
import * as reactHooks from "eslint-plugin-react-hooks";
|
|
7
|
-
import { nighttraxTS } from "@nighttrax/eslint-config-ts";
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* @param {import('typescript-eslint').InfiniteDepthConfigWithExtends[]} configs
|
|
11
|
-
*/
|
|
12
|
-
export const nighttraxReact = (...configs) =>
|
|
13
|
-
tsEslint.config([
|
|
14
|
-
nighttraxTS(),
|
|
15
|
-
|
|
16
|
-
{
|
|
17
|
-
files: ["**/*.{js,mjs,cjs,ts,jsx,tsx}"],
|
|
18
|
-
languageOptions: { globals: globals.browser, parser: tsParser },
|
|
19
|
-
},
|
|
20
|
-
|
|
21
|
-
react.configs.flat.recommended,
|
|
22
|
-
react.configs.flat["jsx-runtime"],
|
|
23
|
-
reactHooks.configs["recommended-latest"],
|
|
24
|
-
jsxA11y.flatConfigs.recommended,
|
|
25
|
-
|
|
26
|
-
{
|
|
27
|
-
settings: {
|
|
28
|
-
react: {
|
|
29
|
-
version: "detect",
|
|
30
|
-
},
|
|
31
|
-
},
|
|
32
|
-
rules: {
|
|
33
|
-
"react/display-name": "off",
|
|
34
|
-
"react/prefer-read-only-props": "off",
|
|
35
|
-
"react/function-component-definition": "off",
|
|
36
|
-
"react/no-multi-comp": "off",
|
|
37
|
-
"react/jsx-filename-extension": "off",
|
|
38
|
-
"react/jsx-max-depth": "off",
|
|
39
|
-
"react/jsx-no-bind": "off",
|
|
40
|
-
"react/require-default-props": "off",
|
|
41
|
-
"react/jsx-sort-props": "off",
|
|
42
|
-
"react/jsx-no-literals": "off", // TODO: enable for translations
|
|
43
|
-
"react/destructuring-assignment": "off",
|
|
44
|
-
"react/jsx-props-no-spreading": "off",
|
|
45
|
-
"react/jsx-handler-names": "off",
|
|
46
|
-
"react/no-unused-prop-types": "off",
|
|
47
|
-
"react/forbid-component-props": "off",
|
|
48
|
-
"react/hook-use-state": "off",
|
|
49
|
-
},
|
|
50
|
-
},
|
|
51
|
-
|
|
52
|
-
...configs,
|
|
53
|
-
]);
|