eslint-plugin-react-xtended 0.0.0 → 5.1.0-beta.0

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023 Rel1cx
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,15 +1,228 @@
1
- # tmp
1
+ <p align="center"><img src="https://eslint-react.xyz/logo.svg" alt="logo" width="150" /></p>
2
2
 
3
- To install dependencies:
3
+ <h1 align="center" alt="title">ESLint React</h1>
4
4
 
5
- ```bash
6
- bun install
5
+ [![Version](https://img.shields.io/npm/v/eslint-plugin-react-xtended?style=flat&colorA=111111&colorB=000000)](https://npmx.dev/package/eslint-plugin-react-xtended)
6
+ [![Downloads](https://img.shields.io/npm/dt/eslint-plugin-react-xtended.svg?style=flat&colorA=222222&colorB=000000)](https://npmx.dev/package/eslint-plugin-react-xtended)
7
+ [![License](https://img.shields.io/npm/l/eslint-plugin-react-xtended?style=flat&colorA=333333&colorB=000000)](https://github.com/Rel1cx/eslint-react/blob/main/LICENSE)
8
+ [![Build with](https://img.shields.io/badge/built_with-tsdown@0.21.7-000000?style=flat)](https://tsdown.dev)
9
+
10
+ 4-7x faster, composable ESLint rules for React and friends.
11
+
12
+ ## Table of Contents
13
+
14
+ - [Table of Contents](#table-of-contents)
15
+ - [Features](#features)
16
+ - [Public Packages](#public-packages)
17
+ - [Modular ESLint Plugins](#modular-eslint-plugins)
18
+ - [Unified ESLint Plugin](#unified-eslint-plugin)
19
+ - [Installation](#installation)
20
+ - [Install](#install)
21
+ - [Setup](#setup)
22
+ - [Presets](#presets)
23
+ - [Bare Bones](#bare-bones)
24
+ - [General Purpose](#general-purpose)
25
+ - [TypeScript Specialized](#typescript-specialized)
26
+ - [Other](#other)
27
+ - [Rules](#rules)
28
+ - [Benchmark](#benchmark)
29
+ - [FAQ](#faq)
30
+ - [Migration](#migration)
31
+ - [Changelog](#changelog)
32
+ - [Disclaimer](#disclaimer)
33
+ - [Sponsors](#sponsors)
34
+ - [Contributing](#contributing)
35
+ - [License](#license)
36
+
37
+ ## Features
38
+
39
+ - **Modern**: First-class support for **TypeScript**, **React 19**, and more.
40
+ - **Flexible**: Fully customizable rule severity levels, allowing you to **enforce** or **relax** rules as needed.
41
+ - **Performant**: Built with performance in mind, optimized for large codebases, [**4-7x faster**](https://github.com/Rel1cx/eslint-react-benchmark) than other ESLint plugins.
42
+ - **Context-aware linting**: Rules that understand the context of your code and [project configuration](https://eslint-react.xyz/docs/configuration/configure-project-config) to provide more **accurate** linting.
43
+
44
+ ## Public Packages
45
+
46
+ ### Modular ESLint Plugins
47
+
48
+ - [`eslint-plugin-react-x`](https://npmx.dev/package/eslint-plugin-react-x) - X rules (renderer-agnostic, compatible with x-platform).
49
+ - [`eslint-plugin-react-jsx`](https://npmx.dev/package/eslint-plugin-react-jsx) - React Flavored JSX rules.
50
+ - [`eslint-plugin-react-rsc`](https://npmx.dev/package/eslint-plugin-react-rsc) - Rules for React Server Components.
51
+ - [`eslint-plugin-react-dom`](https://npmx.dev/package/eslint-plugin-react-dom) - DOM-specific rules for React DOM.
52
+ - [`eslint-plugin-react-web-api`](https://npmx.dev/package/eslint-plugin-react-web-api) - Rules for interacting with Web APIs.
53
+ - [`eslint-plugin-react-naming-convention`](https://npmx.dev/package/eslint-plugin-react-naming-convention) - Naming convention rules.
54
+
55
+ ### Unified ESLint Plugin
56
+
57
+ - [`eslint-plugin-react-xtended`](https://npmx.dev/package/eslint-plugin-react-xtended) - A unified plugin that combines all individual plugins into one.
58
+
59
+ > [!NOTE]\
60
+ > Don't know which one to use? See our [FAQ](https://eslint-react.xyz/docs/faq#which-one-should-i-use-unified-plugin-or-individual-plugins) for guidance.
61
+
62
+ ## Installation
63
+
64
+ > [!NOTE]\
65
+ > ESLint React requires the following minimum versions:
66
+ >
67
+ > - Node.js: 22.0.0
68
+ > - ESLint: 10.0.0
69
+ > - TypeScript: 5.0.0
70
+
71
+ ### Install
72
+
73
+ ```sh
74
+ npm install --save-dev typescript-eslint eslint-plugin-react-xtended
7
75
  ```
8
76
 
9
- To run:
77
+ ### Setup
78
+
79
+ ```js
80
+ // eslint.config.js
81
+
82
+ import eslintJs from "@eslint/js";
83
+ import eslintReact from "eslint-plugin-react-xtended";
84
+ import { defineConfig } from "eslint/config";
85
+ import tseslint from "typescript-eslint";
86
+
87
+ export default defineConfig(
88
+ {
89
+ files: ["**/*.ts", "**/*.tsx"],
10
90
 
11
- ```bash
12
- bun run index.ts
91
+ // Extend recommended rule sets from:
92
+ // 1. ESLint JS's recommended rules
93
+ // 2. TypeScript ESLint recommended rules
94
+ // 3. ESLint React's recommended-typescript rules
95
+ extends: [
96
+ eslintJs.configs.recommended,
97
+ tseslint.configs.recommended,
98
+ eslintReact.configs["recommended-typescript"],
99
+ ],
100
+
101
+ // Configure language/parsing options
102
+ languageOptions: {
103
+ // Use TypeScript ESLint parser for TypeScript files
104
+ parser: tseslint.parser,
105
+ parserOptions: {
106
+ // Enable project service for better TypeScript integration
107
+ projectService: true,
108
+ tsconfigRootDir: import.meta.dirname,
109
+ },
110
+ },
111
+
112
+ // Custom rule overrides (modify rule levels or disable rules)
113
+ rules: {
114
+ "@eslint-react/no-missing-key": "warn",
115
+ },
116
+ },
117
+ );
13
118
  ```
14
119
 
15
- This project was created using `bun init` in bun v1.3.11. [Bun](https://bun.com) is a fast all-in-one JavaScript runtime.
120
+ [Full Installation Guide ](https://eslint-react.xyz/docs/getting-started/typescript)
121
+
122
+ ## Presets
123
+
124
+ ### Bare Bones
125
+
126
+ - `x`\
127
+ Enable rules for React.
128
+ - `jsx`\
129
+ Enable rules for React Flavored JSX.
130
+ - `rsc`\
131
+ Enable rules for React Server Components.
132
+ - `dom`\
133
+ Enable rules for React DOM.
134
+ - `web-api`\
135
+ Enable rules for interacting with Web APIs.
136
+
137
+ ### General Purpose
138
+
139
+ - `recommended`\
140
+ Enforce rules that are recommended by ESLint React for general-purpose React + React DOM projects.\
141
+ _This preset includes the `x`, `rsc`, `dom`, and `web-api` presets._
142
+
143
+ - `strict`\
144
+ Same as the `recommended` preset but enables additional strict rules.
145
+
146
+ ### TypeScript Specialized
147
+
148
+ - `recommended-typescript`\
149
+ Same as the `recommended` preset but disables rules that can be enforced by TypeScript.
150
+
151
+ - `recommended-type-checked`\
152
+ Same as the `recommended-typescript` preset but enables additional rules that require type information.
153
+
154
+ - `strict-typescript`\
155
+ Same as the `strict` preset but disables rules that can be enforced by TypeScript.
156
+
157
+ - `strict-type-checked`\
158
+ Same as the `strict-typescript` preset but enables additional rules that require type information.
159
+
160
+ ### Other
161
+
162
+ - `disable-jsx`\
163
+ Disable rules in the `jsx` preset.
164
+ - `disable-rsc`\
165
+ Disable rules in the `rsc` preset.
166
+ - `disable-dom`\
167
+ Disable rules in the `dom` preset.
168
+ - `disable-web-api`\
169
+ Disable rules in the `web-api` preset.
170
+ - `disable-experimental`\
171
+ Disable rules that have an "🧪 Experimental" feature flag.
172
+ - `disable-type-checked`\
173
+ Disable rules that require type information.
174
+ - `disable-conflict-eslint-plugin-react`\
175
+ Disable rules in `eslint-plugin-react` that conflict with rules in our plugins.
176
+ - `disable-conflict-eslint-plugin-react-hooks`\
177
+ Disable rules in `eslint-plugin-react-hooks` that conflict with rules in our plugins.
178
+ - `off`\
179
+ Disable all rules in this plugin except for debug rules.
180
+
181
+ [Full Presets List ↗](https://eslint-react.xyz/docs/presets)
182
+
183
+ ## Rules
184
+
185
+ [Rules ↗](https://eslint-react.xyz/docs/rules)
186
+
187
+ ## Benchmark
188
+
189
+ [Benchmark Results ↗](https://github.com/Rel1cx/eslint-react-benchmark)
190
+
191
+ ## FAQ
192
+
193
+ [Frequently Asked Questions ↗](https://eslint-react.xyz/docs/faq)
194
+
195
+ ## Migration
196
+
197
+ - [Migrating from eslint-plugin-react ↗](https://beta.eslint-react.xyz/docs/migrating-from-eslint-plugin-react)
198
+ - [Migrating from eslint-plugin-react-hooks ↗](https://beta.eslint-react.xyz/docs/migrating-from-eslint-plugin-react-hooks)
199
+
200
+ ## Changelog
201
+
202
+ [Changelog ↗](https://www.eslint-react.xyz/docs/changelog)
203
+
204
+ ## Disclaimer
205
+
206
+ This project is not affiliated with Meta Corporation or the [facebook/react](https://github.com/facebook/react) project or team, nor is it endorsed or sponsored by them.
207
+
208
+ This project is, and will remain, 90% of its code written by humans.
209
+
210
+ ## Sponsors
211
+
212
+ A huge thank you to our amazing sponsors who make this project possible.
213
+
214
+ <p align="center">
215
+ <a href="##">
216
+ <img src="https://eslint-react.xyz/sponsors.svg" alt="sponsors" />
217
+ </a>
218
+ </p>
219
+
220
+ ## Contributing
221
+
222
+ Contributions are welcome!
223
+
224
+ Please follow our [contributing guidelines](https://github.com/Rel1cx/eslint-react/tree/main/.github/CONTRIBUTING.md).
225
+
226
+ ## License
227
+
228
+ This project is licensed under the MIT License - see the [LICENSE](https://github.com/Rel1cx/eslint-react/tree/main/LICENSE) file for details.
@@ -0,0 +1,13 @@
1
+ import { ESLint, Linter } from "eslint";
2
+
3
+ //#region src/index.d.ts
4
+ type ConfigName = "all" | "disable-conflict-eslint-plugin-react" | "disable-conflict-eslint-plugin-react-hooks" | "disable-dom" | "disable-jsx" | "disable-rsc" | "disable-experimental" | "disable-type-checked" | "disable-web-api" | "dom" | "jsx" | "rsc" | "off" | "recommended" | "recommended-type-checked" | "recommended-typescript" | "strict" | "strict-type-checked" | "strict-typescript" | "web-api" | "x";
5
+ declare const finalPlugin: ESLint.Plugin & {
6
+ /**
7
+ * For more information about each preset, please refer to the documentation.
8
+ * @see https://eslint-react.xyz/docs/presets
9
+ */
10
+ configs: Record<ConfigName, Linter.Config>;
11
+ };
12
+ //#endregion
13
+ export { finalPlugin as default };
package/dist/index.js ADDED
@@ -0,0 +1,537 @@
1
+ import { DEFAULT_ESLINT_REACT_SETTINGS } from "@eslint-react/shared";
2
+ import reactX from "eslint-plugin-react-x";
3
+ import reactDomPlugin from "eslint-plugin-react-dom";
4
+ import reactJsxPlugin from "eslint-plugin-react-jsx";
5
+ import reactNamingConventionPlugin from "eslint-plugin-react-naming-convention";
6
+ import reactRscPlugin from "eslint-plugin-react-rsc";
7
+ import reactWebApiPlugin from "eslint-plugin-react-web-api";
8
+
9
+ //#region \0rolldown/runtime.js
10
+ var __defProp = Object.defineProperty;
11
+ var __exportAll = (all, no_symbols) => {
12
+ let target = {};
13
+ for (var name in all) {
14
+ __defProp(target, name, {
15
+ get: all[name],
16
+ enumerable: true
17
+ });
18
+ }
19
+ if (!no_symbols) {
20
+ __defProp(target, Symbol.toStringTag, { value: "Module" });
21
+ }
22
+ return target;
23
+ };
24
+
25
+ //#endregion
26
+ //#region src/configs/x.ts
27
+ var x_exports = /* @__PURE__ */ __exportAll({
28
+ name: () => name$21,
29
+ rules: () => rules$21,
30
+ settings: () => settings$8
31
+ });
32
+ const name$21 = "@eslint-react/x";
33
+ const rules$21 = {
34
+ "@eslint-react/component-hook-factories": "error",
35
+ "@eslint-react/error-boundaries": "error",
36
+ "@eslint-react/exhaustive-deps": "warn",
37
+ "@eslint-react/no-access-state-in-setstate": "error",
38
+ "@eslint-react/no-array-index-key": "warn",
39
+ "@eslint-react/no-children-count": "warn",
40
+ "@eslint-react/no-children-for-each": "warn",
41
+ "@eslint-react/no-children-map": "warn",
42
+ "@eslint-react/no-children-only": "warn",
43
+ "@eslint-react/no-children-to-array": "warn",
44
+ "@eslint-react/no-clone-element": "warn",
45
+ "@eslint-react/no-component-will-mount": "error",
46
+ "@eslint-react/no-component-will-receive-props": "error",
47
+ "@eslint-react/no-component-will-update": "error",
48
+ "@eslint-react/no-context-provider": "warn",
49
+ "@eslint-react/no-create-ref": "error",
50
+ "@eslint-react/no-direct-mutation-state": "error",
51
+ "@eslint-react/no-forward-ref": "warn",
52
+ "@eslint-react/no-missing-key": "error",
53
+ "@eslint-react/no-nested-component-definitions": "error",
54
+ "@eslint-react/no-nested-lazy-component-declarations": "error",
55
+ "@eslint-react/no-set-state-in-component-did-mount": "warn",
56
+ "@eslint-react/no-set-state-in-component-did-update": "warn",
57
+ "@eslint-react/no-set-state-in-component-will-update": "warn",
58
+ "@eslint-react/no-unnecessary-use-prefix": "warn",
59
+ "@eslint-react/no-unsafe-component-will-mount": "warn",
60
+ "@eslint-react/no-unsafe-component-will-receive-props": "warn",
61
+ "@eslint-react/no-unsafe-component-will-update": "warn",
62
+ "@eslint-react/no-unused-class-component-members": "warn",
63
+ "@eslint-react/no-use-context": "warn",
64
+ "@eslint-react/purity": "warn",
65
+ "@eslint-react/rules-of-hooks": "error",
66
+ "@eslint-react/set-state-in-effect": "warn",
67
+ "@eslint-react/set-state-in-render": "error",
68
+ "@eslint-react/unsupported-syntax": "error",
69
+ "@eslint-react/use-memo": "error",
70
+ "@eslint-react/use-state": "warn"
71
+ };
72
+ const settings$8 = { "react-x": DEFAULT_ESLINT_REACT_SETTINGS };
73
+
74
+ //#endregion
75
+ //#region src/configs/all.ts
76
+ var all_exports = /* @__PURE__ */ __exportAll({
77
+ name: () => name$20,
78
+ rules: () => rules$20,
79
+ settings: () => settings$7
80
+ });
81
+ const name$20 = "@eslint-react/all";
82
+ const rules$20 = {
83
+ "@eslint-react/component-hook-factories": "error",
84
+ "@eslint-react/error-boundaries": "error",
85
+ "@eslint-react/exhaustive-deps": "warn",
86
+ "@eslint-react/immutability": "error",
87
+ "@eslint-react/no-access-state-in-setstate": "error",
88
+ "@eslint-react/no-array-index-key": "warn",
89
+ "@eslint-react/no-children-count": "warn",
90
+ "@eslint-react/no-children-for-each": "warn",
91
+ "@eslint-react/no-children-map": "warn",
92
+ "@eslint-react/no-children-only": "warn",
93
+ "@eslint-react/no-children-to-array": "warn",
94
+ "@eslint-react/no-class-component": "warn",
95
+ "@eslint-react/no-clone-element": "warn",
96
+ "@eslint-react/no-component-will-mount": "error",
97
+ "@eslint-react/no-component-will-receive-props": "error",
98
+ "@eslint-react/no-component-will-update": "error",
99
+ "@eslint-react/no-context-provider": "warn",
100
+ "@eslint-react/no-create-ref": "error",
101
+ "@eslint-react/no-direct-mutation-state": "error",
102
+ "@eslint-react/no-duplicate-key": "error",
103
+ "@eslint-react/no-forward-ref": "warn",
104
+ "@eslint-react/no-missing-component-display-name": "warn",
105
+ "@eslint-react/no-missing-context-display-name": "warn",
106
+ "@eslint-react/no-missing-key": "error",
107
+ "@eslint-react/no-misused-capture-owner-stack": "error",
108
+ "@eslint-react/no-nested-component-definitions": "error",
109
+ "@eslint-react/no-nested-lazy-component-declarations": "error",
110
+ "@eslint-react/no-set-state-in-component-did-mount": "warn",
111
+ "@eslint-react/no-set-state-in-component-did-update": "warn",
112
+ "@eslint-react/no-set-state-in-component-will-update": "warn",
113
+ "@eslint-react/no-unnecessary-use-prefix": "warn",
114
+ "@eslint-react/no-unsafe-component-will-mount": "warn",
115
+ "@eslint-react/no-unsafe-component-will-receive-props": "warn",
116
+ "@eslint-react/no-unsafe-component-will-update": "warn",
117
+ "@eslint-react/no-unstable-context-value": "warn",
118
+ "@eslint-react/no-unstable-default-props": "warn",
119
+ "@eslint-react/no-unused-class-component-members": "warn",
120
+ "@eslint-react/no-use-context": "warn",
121
+ "@eslint-react/purity": "warn",
122
+ "@eslint-react/refs": "error",
123
+ "@eslint-react/rules-of-hooks": "error",
124
+ "@eslint-react/set-state-in-effect": "warn",
125
+ "@eslint-react/set-state-in-render": "error",
126
+ "@eslint-react/unsupported-syntax": "error",
127
+ "@eslint-react/use-memo": "error",
128
+ "@eslint-react/use-state": "warn",
129
+ "@eslint-react/jsx-no-children-prop": "warn",
130
+ "@eslint-react/jsx-no-children-prop-with-children": "error",
131
+ "@eslint-react/jsx-no-comment-textnodes": "warn",
132
+ "@eslint-react/jsx-no-key-after-spread": "error",
133
+ "@eslint-react/jsx-no-leaked-dollar": "warn",
134
+ "@eslint-react/jsx-no-leaked-semicolon": "warn",
135
+ "@eslint-react/jsx-no-namespace": "error",
136
+ "@eslint-react/jsx-no-useless-fragment": "warn",
137
+ "@eslint-react/rsc-function-definition": "error",
138
+ "@eslint-react/dom-no-dangerously-set-innerhtml": "warn",
139
+ "@eslint-react/dom-no-dangerously-set-innerhtml-with-children": "error",
140
+ "@eslint-react/dom-no-find-dom-node": "error",
141
+ "@eslint-react/dom-no-flush-sync": "error",
142
+ "@eslint-react/dom-no-hydrate": "error",
143
+ "@eslint-react/dom-no-missing-button-type": "warn",
144
+ "@eslint-react/dom-no-missing-iframe-sandbox": "warn",
145
+ "@eslint-react/dom-no-render": "error",
146
+ "@eslint-react/dom-no-render-return-value": "error",
147
+ "@eslint-react/dom-no-script-url": "warn",
148
+ "@eslint-react/dom-no-string-style-prop": "error",
149
+ "@eslint-react/dom-no-unknown-property": "warn",
150
+ "@eslint-react/dom-no-unsafe-iframe-sandbox": "warn",
151
+ "@eslint-react/dom-no-unsafe-target-blank": "warn",
152
+ "@eslint-react/dom-no-use-form-state": "warn",
153
+ "@eslint-react/dom-no-void-elements-with-children": "error",
154
+ "@eslint-react/web-api-no-leaked-event-listener": "warn",
155
+ "@eslint-react/web-api-no-leaked-interval": "warn",
156
+ "@eslint-react/web-api-no-leaked-resize-observer": "warn",
157
+ "@eslint-react/web-api-no-leaked-timeout": "warn",
158
+ "@eslint-react/naming-convention-context-name": "warn",
159
+ "@eslint-react/naming-convention-id-name": "warn",
160
+ "@eslint-react/naming-convention-ref-name": "warn"
161
+ };
162
+ const settings$7 = { ...settings$8 };
163
+
164
+ //#endregion
165
+ //#region src/configs/disable-conflict-eslint-plugin-react.ts
166
+ var disable_conflict_eslint_plugin_react_exports = /* @__PURE__ */ __exportAll({
167
+ name: () => name$19,
168
+ rules: () => rules$19
169
+ });
170
+ const name$19 = "@eslint-react/disable-conflict-eslint-plugin-react";
171
+ const rules$19 = reactX.configs["disable-conflict-eslint-plugin-react"].rules ?? {};
172
+
173
+ //#endregion
174
+ //#region src/configs/disable-conflict-eslint-plugin-react-hooks.ts
175
+ var disable_conflict_eslint_plugin_react_hooks_exports = /* @__PURE__ */ __exportAll({
176
+ name: () => name$18,
177
+ rules: () => rules$18
178
+ });
179
+ const name$18 = "@eslint-react/disable-conflict-eslint-plugin-react-hooks";
180
+ const rules$18 = reactX.configs["disable-conflict-eslint-plugin-react-hooks"].rules ?? {};
181
+
182
+ //#endregion
183
+ //#region src/configs/dom.ts
184
+ var dom_exports = /* @__PURE__ */ __exportAll({
185
+ name: () => name$17,
186
+ rules: () => rules$17
187
+ });
188
+ const name$17 = "@eslint-react/dom";
189
+ const rules$17 = {
190
+ "@eslint-react/dom-no-dangerously-set-innerhtml": "warn",
191
+ "@eslint-react/dom-no-dangerously-set-innerhtml-with-children": "error",
192
+ "@eslint-react/dom-no-find-dom-node": "error",
193
+ "@eslint-react/dom-no-flush-sync": "error",
194
+ "@eslint-react/dom-no-hydrate": "error",
195
+ "@eslint-react/dom-no-render": "error",
196
+ "@eslint-react/dom-no-render-return-value": "error",
197
+ "@eslint-react/dom-no-script-url": "warn",
198
+ "@eslint-react/dom-no-unsafe-iframe-sandbox": "warn",
199
+ "@eslint-react/dom-no-use-form-state": "error",
200
+ "@eslint-react/dom-no-void-elements-with-children": "error"
201
+ };
202
+
203
+ //#endregion
204
+ //#region src/configs/disable-dom.ts
205
+ var disable_dom_exports = /* @__PURE__ */ __exportAll({
206
+ name: () => name$16,
207
+ rules: () => rules$16
208
+ });
209
+ const name$16 = "@eslint-react/disable-dom";
210
+ const rules$16 = Object.fromEntries(Object.entries(rules$17).map(([key]) => [key, "off"]));
211
+
212
+ //#endregion
213
+ //#region src/configs/disable-experimental.ts
214
+ var disable_experimental_exports = /* @__PURE__ */ __exportAll({
215
+ name: () => name$15,
216
+ rules: () => rules$15
217
+ });
218
+ const name$15 = "@eslint-react/disable-experimental";
219
+ const rules$15 = {
220
+ "@eslint-react/immutability": "off",
221
+ "@eslint-react/no-duplicate-key": "off",
222
+ "@eslint-react/no-implicit-children": "off",
223
+ "@eslint-react/no-implicit-key": "off",
224
+ "@eslint-react/no-implicit-ref": "off",
225
+ "@eslint-react/no-misused-capture-owner-stack": "off",
226
+ "@eslint-react/no-unused-props": "off",
227
+ "@eslint-react/refs": "off",
228
+ "@eslint-react/set-state-in-render": "off",
229
+ "@eslint-react/jsx-no-key-after-spread": "off",
230
+ "@eslint-react/jsx-no-namespace": "off",
231
+ "@eslint-react/rsc-function-definition": "off"
232
+ };
233
+
234
+ //#endregion
235
+ //#region src/configs/jsx.ts
236
+ var jsx_exports = /* @__PURE__ */ __exportAll({
237
+ name: () => name$14,
238
+ rules: () => rules$14
239
+ });
240
+ const name$14 = "@eslint-react/jsx";
241
+ const rules$14 = {
242
+ "@eslint-react/jsx-no-children-prop": "warn",
243
+ "@eslint-react/jsx-no-children-prop-with-children": "error",
244
+ "@eslint-react/jsx-no-comment-textnodes": "warn",
245
+ "@eslint-react/jsx-no-key-after-spread": "error",
246
+ "@eslint-react/jsx-no-leaked-semicolon": "warn",
247
+ "@eslint-react/jsx-no-namespace": "error"
248
+ };
249
+
250
+ //#endregion
251
+ //#region src/configs/disable-jsx.ts
252
+ var disable_jsx_exports = /* @__PURE__ */ __exportAll({
253
+ name: () => name$13,
254
+ rules: () => rules$13
255
+ });
256
+ const name$13 = "@eslint-react/disable-jsx";
257
+ const rules$13 = Object.fromEntries(Object.entries(rules$14).map(([key]) => [key, "off"]));
258
+
259
+ //#endregion
260
+ //#region src/configs/rsc.ts
261
+ var rsc_exports = /* @__PURE__ */ __exportAll({
262
+ name: () => name$12,
263
+ rules: () => rules$12
264
+ });
265
+ const name$12 = "@eslint-react/rsc";
266
+ const rules$12 = { "@eslint-react/rsc-function-definition": "error" };
267
+
268
+ //#endregion
269
+ //#region src/configs/disable-rsc.ts
270
+ var disable_rsc_exports = /* @__PURE__ */ __exportAll({
271
+ name: () => name$11,
272
+ rules: () => rules$11
273
+ });
274
+ const name$11 = "@eslint-react/disable-rsc";
275
+ const rules$11 = Object.fromEntries(Object.entries(rules$12).map(([key]) => [key, "off"]));
276
+
277
+ //#endregion
278
+ //#region src/configs/disable-type-checked.ts
279
+ var disable_type_checked_exports = /* @__PURE__ */ __exportAll({
280
+ name: () => name$10,
281
+ rules: () => rules$10
282
+ });
283
+ const name$10 = "@eslint-react/disable-type-checked";
284
+ const rules$10 = {
285
+ "@eslint-react/no-implicit-children": "off",
286
+ "@eslint-react/no-implicit-key": "off",
287
+ "@eslint-react/no-implicit-ref": "off",
288
+ "@eslint-react/no-leaked-conditional-rendering": "off",
289
+ "@eslint-react/no-unused-props": "off"
290
+ };
291
+
292
+ //#endregion
293
+ //#region src/configs/web-api.ts
294
+ var web_api_exports = /* @__PURE__ */ __exportAll({
295
+ name: () => name$9,
296
+ rules: () => rules$9,
297
+ settings: () => settings$6
298
+ });
299
+ const name$9 = "@eslint-react/web-api";
300
+ const rules$9 = {
301
+ "@eslint-react/web-api-no-leaked-event-listener": "warn",
302
+ "@eslint-react/web-api-no-leaked-interval": "warn",
303
+ "@eslint-react/web-api-no-leaked-resize-observer": "warn",
304
+ "@eslint-react/web-api-no-leaked-timeout": "warn"
305
+ };
306
+ const settings$6 = { ...settings$8 };
307
+
308
+ //#endregion
309
+ //#region src/configs/disable-web-api.ts
310
+ var disable_web_api_exports = /* @__PURE__ */ __exportAll({
311
+ name: () => name$8,
312
+ rules: () => rules$8
313
+ });
314
+ const name$8 = "@eslint-react/disable-web-api";
315
+ const rules$8 = Object.fromEntries(Object.entries(rules$9).map(([key]) => [key, "off"]));
316
+
317
+ //#endregion
318
+ //#region src/configs/off.ts
319
+ var off_exports = /* @__PURE__ */ __exportAll({
320
+ name: () => name$7,
321
+ rules: () => rules$7
322
+ });
323
+ const name$7 = "@eslint-react/off";
324
+ const rules$7 = {
325
+ ...Object.fromEntries(Object.entries(rules$20).map(([key]) => [key, "off"])),
326
+ ...rules$10
327
+ };
328
+
329
+ //#endregion
330
+ //#region src/configs/recommended.ts
331
+ var recommended_exports = /* @__PURE__ */ __exportAll({
332
+ name: () => name$6,
333
+ rules: () => rules$6,
334
+ settings: () => settings$5
335
+ });
336
+ const name$6 = "@eslint-react/recommended";
337
+ const rules$6 = {
338
+ ...rules$21,
339
+ ...rules$14,
340
+ ...rules$12,
341
+ ...rules$17,
342
+ ...rules$9,
343
+ "@eslint-react/naming-convention-context-name": "warn",
344
+ "@eslint-react/naming-convention-id-name": "warn",
345
+ "@eslint-react/naming-convention-ref-name": "warn",
346
+ "@eslint-react/use-state": "warn"
347
+ };
348
+ const settings$5 = { ...settings$8 };
349
+
350
+ //#endregion
351
+ //#region src/configs/_ts.ts
352
+ /**
353
+ * Disables rules that are already handled by TypeScript
354
+ */
355
+ const rules$5 = {
356
+ "@eslint-react/dom-no-string-style-prop": "off",
357
+ "@eslint-react/dom-no-unknown-property": "off"
358
+ };
359
+
360
+ //#endregion
361
+ //#region src/configs/recommended-typescript.ts
362
+ var recommended_typescript_exports = /* @__PURE__ */ __exportAll({
363
+ name: () => name$5,
364
+ rules: () => rules$4,
365
+ settings: () => settings$4
366
+ });
367
+ const name$5 = "@eslint-react/recommended-typescript";
368
+ const rules$4 = {
369
+ ...rules$6,
370
+ ...rules$5
371
+ };
372
+ const settings$4 = { ...settings$5 };
373
+
374
+ //#endregion
375
+ //#region src/configs/recommended-type-checked.ts
376
+ var recommended_type_checked_exports = /* @__PURE__ */ __exportAll({
377
+ name: () => name$4,
378
+ rules: () => rules$3,
379
+ settings: () => settings$3
380
+ });
381
+ const name$4 = "@eslint-react/recommended-type-checked";
382
+ const rules$3 = {
383
+ ...rules$4,
384
+ "@eslint-react/no-leaked-conditional-rendering": "error"
385
+ };
386
+ const settings$3 = { ...settings$4 };
387
+
388
+ //#endregion
389
+ //#region src/configs/strict.ts
390
+ var strict_exports = /* @__PURE__ */ __exportAll({
391
+ name: () => name$3,
392
+ rules: () => rules$2,
393
+ settings: () => settings$2
394
+ });
395
+ const name$3 = "@eslint-react/strict";
396
+ const rules$2 = {
397
+ ...rules$6,
398
+ "@eslint-react/no-class-component": "error",
399
+ "@eslint-react/no-misused-capture-owner-stack": "error",
400
+ "@eslint-react/no-unstable-context-value": "warn",
401
+ "@eslint-react/no-unstable-default-props": "warn",
402
+ "@eslint-react/jsx-no-children-prop": "error",
403
+ "@eslint-react/jsx-no-useless-fragment": "warn",
404
+ "@eslint-react/dom-no-missing-button-type": "warn",
405
+ "@eslint-react/dom-no-missing-iframe-sandbox": "warn",
406
+ "@eslint-react/dom-no-unsafe-target-blank": "warn"
407
+ };
408
+ const settings$2 = { ...settings$5 };
409
+
410
+ //#endregion
411
+ //#region src/configs/strict-typescript.ts
412
+ var strict_typescript_exports = /* @__PURE__ */ __exportAll({
413
+ name: () => name$2,
414
+ rules: () => rules$1,
415
+ settings: () => settings$1
416
+ });
417
+ const name$2 = "@eslint-react/strict-typescript";
418
+ const rules$1 = {
419
+ ...rules$2,
420
+ ...rules$5
421
+ };
422
+ const settings$1 = { ...settings$2 };
423
+
424
+ //#endregion
425
+ //#region src/configs/strict-type-checked.ts
426
+ var strict_type_checked_exports = /* @__PURE__ */ __exportAll({
427
+ name: () => name$1,
428
+ rules: () => rules,
429
+ settings: () => settings
430
+ });
431
+ const name$1 = "@eslint-react/strict-type-checked";
432
+ const rules = {
433
+ ...rules$1,
434
+ "@eslint-react/no-leaked-conditional-rendering": "error",
435
+ "@eslint-react/no-unused-props": "warn"
436
+ };
437
+ const settings = { ...settings$1 };
438
+
439
+ //#endregion
440
+ //#region package.json
441
+ var name = "eslint-plugin-react-xtended";
442
+ var version = "5.1.0-beta.0";
443
+
444
+ //#endregion
445
+ //#region src/utils/type-of.ts
446
+ /**
447
+ * This is an enhanced version of the typeof operator to check the type of more complex values.
448
+ * In this case we just mind about arrays and objects. We can add more on demand.
449
+ * @param t the value to be checked
450
+ * @returns the type of the value
451
+ */
452
+ function typeOf(t) {
453
+ return Object.prototype.toString.call(t).replace(/^\[object (.+)\]$/, "$1").toLowerCase();
454
+ }
455
+
456
+ //#endregion
457
+ //#region src/utils/transform-keys.ts
458
+ /**
459
+ * This function is used to shallowly transform the keys of an object.
460
+ * It will only be transformed at runtime, so it's not type safe.
461
+ * @param obj the object to transform.
462
+ * @param transform the function to transform the keys from string to string.
463
+ * @returns the transformed object.
464
+ * @example transformKeys({ 'foo-bar': { 'fizz-buzz': true } }, camelCase)
465
+ * // { fooBar: { 'fizz-buzz': true } }
466
+ */
467
+ function transformKeys(obj, transform) {
468
+ if (typeOf(obj) !== "object") return obj;
469
+ const res = {};
470
+ for (const key in obj) res[transform(key)] = obj[key];
471
+ return res;
472
+ }
473
+
474
+ //#endregion
475
+ //#region src/utils/pad-keys-left.ts
476
+ function padKeysLeft(obj, left) {
477
+ return transformKeys(obj, (key) => `${left}${key}`);
478
+ }
479
+
480
+ //#endregion
481
+ //#region src/plugin.ts
482
+ const plugin = {
483
+ meta: {
484
+ name,
485
+ version
486
+ },
487
+ rules: {
488
+ ...reactX.rules,
489
+ ...padKeysLeft(reactX.rules, "x-"),
490
+ ...padKeysLeft(reactJsxPlugin.rules, "jsx-"),
491
+ ...padKeysLeft(reactRscPlugin.rules, "rsc-"),
492
+ ...padKeysLeft(reactDomPlugin.rules, "dom-"),
493
+ ...padKeysLeft(reactWebApiPlugin.rules, "web-api-"),
494
+ ...padKeysLeft(reactNamingConventionPlugin.rules, "naming-convention-")
495
+ }
496
+ };
497
+
498
+ //#endregion
499
+ //#region src/index.ts
500
+ function createConfig(base) {
501
+ return {
502
+ ...base,
503
+ plugins: {
504
+ ...base.plugins,
505
+ "@eslint-react": plugin
506
+ }
507
+ };
508
+ }
509
+ const finalPlugin = {
510
+ ...plugin,
511
+ configs: {
512
+ ["all"]: createConfig(all_exports),
513
+ ["disable-conflict-eslint-plugin-react"]: createConfig(disable_conflict_eslint_plugin_react_exports),
514
+ ["disable-conflict-eslint-plugin-react-hooks"]: createConfig(disable_conflict_eslint_plugin_react_hooks_exports),
515
+ ["disable-dom"]: createConfig(disable_dom_exports),
516
+ ["disable-experimental"]: createConfig(disable_experimental_exports),
517
+ ["disable-jsx"]: createConfig(disable_jsx_exports),
518
+ ["disable-rsc"]: createConfig(disable_rsc_exports),
519
+ ["disable-type-checked"]: createConfig(disable_type_checked_exports),
520
+ ["disable-web-api"]: createConfig(disable_web_api_exports),
521
+ ["dom"]: createConfig(dom_exports),
522
+ ["jsx"]: createConfig(jsx_exports),
523
+ ["off"]: createConfig(off_exports),
524
+ ["recommended"]: createConfig(recommended_exports),
525
+ ["recommended-type-checked"]: createConfig(recommended_type_checked_exports),
526
+ ["recommended-typescript"]: createConfig(recommended_typescript_exports),
527
+ ["rsc"]: createConfig(rsc_exports),
528
+ ["strict"]: createConfig(strict_exports),
529
+ ["strict-type-checked"]: createConfig(strict_type_checked_exports),
530
+ ["strict-typescript"]: createConfig(strict_typescript_exports),
531
+ ["web-api"]: createConfig(web_api_exports),
532
+ ["x"]: createConfig(x_exports)
533
+ }
534
+ };
535
+
536
+ //#endregion
537
+ export { finalPlugin as default };
package/package.json CHANGED
@@ -1,12 +1,82 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-xtended",
3
- "version": "0.0.0",
4
- "module": "index.ts",
3
+ "version": "5.1.0-beta.0",
4
+ "description": "A unified plugin that combines all individual plugins from the eslint-react monorepo into one.",
5
+ "keywords": [
6
+ "react",
7
+ "eslint",
8
+ "eslint-react",
9
+ "eslint-plugin",
10
+ "eslint-plugin-react-x",
11
+ "eslint-plugin-react-jsx",
12
+ "eslint-plugin-react-rsc",
13
+ "eslint-plugin-react-dom",
14
+ "eslint-plugin-react-web-api",
15
+ "eslint-plugin-react-naming-convention",
16
+ "eslint-plugin-react-xtended"
17
+ ],
18
+ "homepage": "https://github.com/Rel1cx/eslint-react",
19
+ "bugs": {
20
+ "url": "https://github.com/Rel1cx/eslint-react/issues"
21
+ },
22
+ "repository": {
23
+ "type": "git",
24
+ "url": "git+https://github.com/Rel1cx/eslint-react.git",
25
+ "directory": "packages/eslint-plugin-react-xtended"
26
+ },
27
+ "license": "MIT",
28
+ "author": "Rel1cx",
29
+ "sideEffects": false,
5
30
  "type": "module",
31
+ "exports": {
32
+ ".": {
33
+ "types": "./dist/index.d.ts",
34
+ "import": "./dist/index.js"
35
+ },
36
+ "./package.json": "./package.json"
37
+ },
38
+ "main": "./dist/index.js",
39
+ "module": "./dist/index.js",
40
+ "types": "./dist/index.d.ts",
41
+ "files": [
42
+ "dist",
43
+ "./package.json"
44
+ ],
45
+ "dependencies": {
46
+ "@typescript-eslint/scope-manager": "^8.58.1",
47
+ "@typescript-eslint/type-utils": "^8.58.1",
48
+ "@typescript-eslint/types": "^8.58.1",
49
+ "@typescript-eslint/utils": "^8.58.1",
50
+ "ts-api-utils": "^2.5.0",
51
+ "@eslint-react/shared": "5.1.0-beta.0",
52
+ "eslint-plugin-react-jsx": "5.1.0-beta.0",
53
+ "eslint-plugin-react-dom": "5.1.0-beta.0",
54
+ "eslint-plugin-react-naming-convention": "5.1.0-beta.0",
55
+ "eslint-plugin-react-rsc": "5.1.0-beta.0",
56
+ "eslint-plugin-react-web-api": "5.1.0-beta.0",
57
+ "eslint-plugin-react-x": "5.1.0-beta.0"
58
+ },
6
59
  "devDependencies": {
7
- "@types/bun": "latest"
60
+ "tsdown": "^0.21.7",
61
+ "@local/eff": "3.0.0-beta.72",
62
+ "@local/configs": "0.0.0"
8
63
  },
9
64
  "peerDependencies": {
10
- "typescript": "^5"
65
+ "eslint": "^10.2.0",
66
+ "typescript": "*"
67
+ },
68
+ "engines": {
69
+ "node": ">=22.0.0"
70
+ },
71
+ "publishConfig": {
72
+ "access": "public"
73
+ },
74
+ "inlinedDependencies": {
75
+ "@local/eff": "workspace:*"
76
+ },
77
+ "scripts": {
78
+ "build": "tsdown",
79
+ "lint:publish": "pnpm publint",
80
+ "lint:ts": "tsl"
11
81
  }
12
82
  }
package/CLAUDE.md DELETED
@@ -1,106 +0,0 @@
1
-
2
- Default to using Bun instead of Node.js.
3
-
4
- - Use `bun <file>` instead of `node <file>` or `ts-node <file>`
5
- - Use `bun test` instead of `jest` or `vitest`
6
- - Use `bun build <file.html|file.ts|file.css>` instead of `webpack` or `esbuild`
7
- - Use `bun install` instead of `npm install` or `yarn install` or `pnpm install`
8
- - Use `bun run <script>` instead of `npm run <script>` or `yarn run <script>` or `pnpm run <script>`
9
- - Use `bunx <package> <command>` instead of `npx <package> <command>`
10
- - Bun automatically loads .env, so don't use dotenv.
11
-
12
- ## APIs
13
-
14
- - `Bun.serve()` supports WebSockets, HTTPS, and routes. Don't use `express`.
15
- - `bun:sqlite` for SQLite. Don't use `better-sqlite3`.
16
- - `Bun.redis` for Redis. Don't use `ioredis`.
17
- - `Bun.sql` for Postgres. Don't use `pg` or `postgres.js`.
18
- - `WebSocket` is built-in. Don't use `ws`.
19
- - Prefer `Bun.file` over `node:fs`'s readFile/writeFile
20
- - Bun.$`ls` instead of execa.
21
-
22
- ## Testing
23
-
24
- Use `bun test` to run tests.
25
-
26
- ```ts#index.test.ts
27
- import { test, expect } from "bun:test";
28
-
29
- test("hello world", () => {
30
- expect(1).toBe(1);
31
- });
32
- ```
33
-
34
- ## Frontend
35
-
36
- Use HTML imports with `Bun.serve()`. Don't use `vite`. HTML imports fully support React, CSS, Tailwind.
37
-
38
- Server:
39
-
40
- ```ts#index.ts
41
- import index from "./index.html"
42
-
43
- Bun.serve({
44
- routes: {
45
- "/": index,
46
- "/api/users/:id": {
47
- GET: (req) => {
48
- return new Response(JSON.stringify({ id: req.params.id }));
49
- },
50
- },
51
- },
52
- // optional websocket support
53
- websocket: {
54
- open: (ws) => {
55
- ws.send("Hello, world!");
56
- },
57
- message: (ws, message) => {
58
- ws.send(message);
59
- },
60
- close: (ws) => {
61
- // handle close
62
- }
63
- },
64
- development: {
65
- hmr: true,
66
- console: true,
67
- }
68
- })
69
- ```
70
-
71
- HTML files can import .tsx, .jsx or .js files directly and Bun's bundler will transpile & bundle automatically. `<link>` tags can point to stylesheets and Bun's CSS bundler will bundle.
72
-
73
- ```html#index.html
74
- <html>
75
- <body>
76
- <h1>Hello, world!</h1>
77
- <script type="module" src="./frontend.tsx"></script>
78
- </body>
79
- </html>
80
- ```
81
-
82
- With the following `frontend.tsx`:
83
-
84
- ```tsx#frontend.tsx
85
- import React from "react";
86
- import { createRoot } from "react-dom/client";
87
-
88
- // import .css files directly and it works
89
- import './index.css';
90
-
91
- const root = createRoot(document.body);
92
-
93
- export default function Frontend() {
94
- return <h1>Hello, world!</h1>;
95
- }
96
-
97
- root.render(<Frontend />);
98
- ```
99
-
100
- Then, run index.ts
101
-
102
- ```sh
103
- bun --hot ./index.ts
104
- ```
105
-
106
- For more information, read the Bun API docs in `node_modules/bun-types/docs/**.mdx`.
package/bun.lock DELETED
@@ -1,26 +0,0 @@
1
- {
2
- "lockfileVersion": 1,
3
- "configVersion": 1,
4
- "workspaces": {
5
- "": {
6
- "name": "tmp",
7
- "devDependencies": {
8
- "@types/bun": "latest",
9
- },
10
- "peerDependencies": {
11
- "typescript": "^5",
12
- },
13
- },
14
- },
15
- "packages": {
16
- "@types/bun": ["@types/bun@1.3.12", "", { "dependencies": { "bun-types": "1.3.12" } }, "sha512-DBv81elK+/VSwXHDlnH3Qduw+KxkTIWi7TXkAeh24zpi5l0B2kUg9Ga3tb4nJaPcOFswflgi/yAvMVBPrxMB+A=="],
17
-
18
- "@types/node": ["@types/node@25.6.0", "", { "dependencies": { "undici-types": "~7.19.0" } }, "sha512-+qIYRKdNYJwY3vRCZMdJbPLJAtGjQBudzZzdzwQYkEPQd+PJGixUL5QfvCLDaULoLv+RhT3LDkwEfKaAkgSmNQ=="],
19
-
20
- "bun-types": ["bun-types@1.3.12", "", { "dependencies": { "@types/node": "*" } }, "sha512-HqOLj5PoFajAQciOMRiIZGNoKxDJSr6qigAttOX40vJuSp6DN/CxWp9s3C1Xwm4oH7ybueITwiaOcWXoYVoRkA=="],
21
-
22
- "typescript": ["typescript@5.9.3", "", { "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" } }, "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw=="],
23
-
24
- "undici-types": ["undici-types@7.19.2", "", {}, "sha512-qYVnV5OEm2AW8cJMCpdV20CDyaN3g0AjDlOGf1OW4iaDEx8MwdtChUp4zu4H0VP3nDRF/8RKWH+IPp9uW0YGZg=="],
25
- }
26
- }
package/index.ts DELETED
@@ -1 +0,0 @@
1
- console.log("Hello via Bun!");
package/tsconfig.json DELETED
@@ -1,29 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- // Environment setup & latest features
4
- "lib": ["ESNext"],
5
- "target": "ESNext",
6
- "module": "Preserve",
7
- "moduleDetection": "force",
8
- "jsx": "react-jsx",
9
- "allowJs": true,
10
-
11
- // Bundler mode
12
- "moduleResolution": "bundler",
13
- "allowImportingTsExtensions": true,
14
- "verbatimModuleSyntax": true,
15
- "noEmit": true,
16
-
17
- // Best practices
18
- "strict": true,
19
- "skipLibCheck": true,
20
- "noFallthroughCasesInSwitch": true,
21
- "noUncheckedIndexedAccess": true,
22
- "noImplicitOverride": true,
23
-
24
- // Some stricter flags (disabled by default)
25
- "noUnusedLocals": false,
26
- "noUnusedParameters": false,
27
- "noPropertyAccessFromIndexSignature": false
28
- }
29
- }