@jsse/eslint-config 0.7.1 → 0.7.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.
- package/CHANGELOG.md +6 -0
- package/dist/{chunk-CSNpwdVU.js → chunk-N93fKeF6.js} +1 -1
- package/dist/cli.js +1 -1
- package/dist/{const-7b74P6Qm.js → const-Xv2V3w-8.js} +1 -1
- package/dist/index.d.ts +96 -62
- package/dist/index.js +81 -29
- package/package.json +22 -23
package/CHANGELOG.md
CHANGED
|
@@ -6,7 +6,7 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
6
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
7
|
var __getProtoOf = Object.getPrototypeOf;
|
|
8
8
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
-
var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
9
|
+
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
10
10
|
var __exportAll = (all, no_symbols) => {
|
|
11
11
|
let target = {};
|
|
12
12
|
for (var name in all) __defProp(target, name, {
|
package/dist/cli.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as VERSION, t as DEBUG$1 } from "./const-
|
|
1
|
+
import { r as VERSION, t as DEBUG$1 } from "./const-Xv2V3w-8.js";
|
|
2
2
|
import process$1 from "node:process";
|
|
3
3
|
import fs from "node:fs";
|
|
4
4
|
//#region node_modules/.pnpm/cac@7.0.0/node_modules/cac/dist/index.js
|
package/dist/index.d.ts
CHANGED
|
@@ -11,14 +11,14 @@ import pluginPnpm from "eslint-plugin-pnpm";
|
|
|
11
11
|
import pluginUnicorn from "eslint-plugin-unicorn";
|
|
12
12
|
import pluginUnusedImports from "eslint-plugin-unused-imports";
|
|
13
13
|
import * as _$eslint from "eslint";
|
|
14
|
-
import { Linter
|
|
14
|
+
import { Linter } from "eslint";
|
|
15
15
|
import { FlatGitignoreOptions } from "eslint-config-flat-gitignore";
|
|
16
16
|
import * as _$eslint_plugin_react0 from "eslint-plugin-react";
|
|
17
17
|
import * as _$_eslint_markdown0 from "@eslint/markdown";
|
|
18
18
|
import * as _$_stylistic_eslint_plugin0 from "@stylistic/eslint-plugin";
|
|
19
19
|
|
|
20
20
|
//#region src/_generated/version.d.ts
|
|
21
|
-
declare const VERSION = "0.7.
|
|
21
|
+
declare const VERSION = "0.7.2";
|
|
22
22
|
//#endregion
|
|
23
23
|
//#region src/_generated/dts/builtins.d.ts
|
|
24
24
|
interface BuiltinsRuleOptions {
|
|
@@ -5617,6 +5617,7 @@ type PerfectionistSortClasses = {
|
|
|
5617
5617
|
matchesAstSelector?: string;
|
|
5618
5618
|
};
|
|
5619
5619
|
useExperimentalDependencyDetection?: boolean;
|
|
5620
|
+
newlinesBetweenOverloadSignatures?: "ignore" | number;
|
|
5620
5621
|
ignoreCallbackDependenciesPatterns?: ({
|
|
5621
5622
|
pattern: string;
|
|
5622
5623
|
flags?: string;
|
|
@@ -6980,6 +6981,7 @@ type PerfectionistSortModules = [] | [{
|
|
|
6980
6981
|
})[];
|
|
6981
6982
|
newlinesBetween?: "ignore" | number;
|
|
6982
6983
|
useExperimentalDependencyDetection?: boolean;
|
|
6984
|
+
newlinesBetweenOverloadSignatures?: "ignore" | number;
|
|
6983
6985
|
partitionByComment?: boolean | (({
|
|
6984
6986
|
pattern: string;
|
|
6985
6987
|
flags?: string;
|
|
@@ -7960,24 +7962,24 @@ interface PrettierRuleOptions {}
|
|
|
7960
7962
|
//#endregion
|
|
7961
7963
|
//#region src/_generated/dts/react.d.ts
|
|
7962
7964
|
interface ReactRuleOptions {
|
|
7963
|
-
/**
|
|
7964
|
-
* Verifies that automatic effect dependencies are compiled if opted-in
|
|
7965
|
-
*/
|
|
7966
|
-
"react-hooks/automatic-effect-dependencies"?: Linter.RuleEntry<ReactHooksAutomaticEffectDependencies$1>;
|
|
7967
7965
|
/**
|
|
7968
7966
|
* Validates against calling capitalized functions/methods instead of using JSX
|
|
7967
|
+
* @see https://react.dev/reference/eslint-plugin-react-hooks/lints/capitalized-calls
|
|
7969
7968
|
*/
|
|
7970
7969
|
"react-hooks/capitalized-calls"?: Linter.RuleEntry<ReactHooksCapitalizedCalls$1>;
|
|
7971
7970
|
/**
|
|
7972
|
-
*
|
|
7971
|
+
* Deprecated: this rule has been removed in 7.1.0.
|
|
7972
|
+
* @deprecated
|
|
7973
7973
|
*/
|
|
7974
|
-
"react-hooks/component-hook-factories"?: Linter.RuleEntry<
|
|
7974
|
+
"react-hooks/component-hook-factories"?: Linter.RuleEntry<[]>;
|
|
7975
7975
|
/**
|
|
7976
7976
|
* Validates the compiler configuration options
|
|
7977
|
+
* @see https://react.dev/reference/eslint-plugin-react-hooks/lints/config
|
|
7977
7978
|
*/
|
|
7978
7979
|
"react-hooks/config"?: Linter.RuleEntry<ReactHooksConfig$1>;
|
|
7979
7980
|
/**
|
|
7980
7981
|
* Validates usage of error boundaries instead of try/catch for errors in child components
|
|
7982
|
+
* @see https://react.dev/reference/eslint-plugin-react-hooks/lints/error-boundaries
|
|
7981
7983
|
*/
|
|
7982
7984
|
"react-hooks/error-boundaries"?: Linter.RuleEntry<ReactHooksErrorBoundaries$1>;
|
|
7983
7985
|
/**
|
|
@@ -7986,59 +7988,78 @@ interface ReactRuleOptions {
|
|
|
7986
7988
|
*/
|
|
7987
7989
|
"react-hooks/exhaustive-deps"?: Linter.RuleEntry<ReactHooksExhaustiveDeps$1>;
|
|
7988
7990
|
/**
|
|
7989
|
-
* Validates
|
|
7991
|
+
* Validates that effect dependencies are exhaustive and without extraneous values
|
|
7992
|
+
* @see https://react.dev/reference/eslint-plugin-react-hooks/lints/exhaustive-effect-dependencies
|
|
7990
7993
|
*/
|
|
7991
|
-
"react-hooks/
|
|
7994
|
+
"react-hooks/exhaustive-effect-dependencies"?: Linter.RuleEntry<ReactHooksExhaustiveEffectDependencies$1>;
|
|
7992
7995
|
/**
|
|
7993
|
-
* Validates usage of
|
|
7996
|
+
* Validates usage of fbt
|
|
7997
|
+
* @see https://react.dev/reference/eslint-plugin-react-hooks/lints/fbt
|
|
7994
7998
|
*/
|
|
7995
|
-
"react-hooks/
|
|
7999
|
+
"react-hooks/fbt"?: Linter.RuleEntry<ReactHooksFbt$1>;
|
|
7996
8000
|
/**
|
|
7997
8001
|
* Validates configuration of [gating mode](https://react.dev/reference/react-compiler/gating)
|
|
8002
|
+
* @see https://react.dev/reference/eslint-plugin-react-hooks/lints/gating
|
|
7998
8003
|
*/
|
|
7999
8004
|
"react-hooks/gating"?: Linter.RuleEntry<ReactHooksGating$1>;
|
|
8000
8005
|
/**
|
|
8001
8006
|
* Validates against assignment/mutation of globals during render, part of ensuring that [side effects must render outside of render](https://react.dev/reference/rules/components-and-hooks-must-be-pure#side-effects-must-run-outside-of-render)
|
|
8007
|
+
* @see https://react.dev/reference/eslint-plugin-react-hooks/lints/globals
|
|
8002
8008
|
*/
|
|
8003
8009
|
"react-hooks/globals"?: Linter.RuleEntry<ReactHooksGlobals$1>;
|
|
8004
8010
|
/**
|
|
8005
8011
|
* Validates the rules of hooks
|
|
8012
|
+
* @see https://react.dev/reference/eslint-plugin-react-hooks/lints/hooks
|
|
8006
8013
|
*/
|
|
8007
8014
|
"react-hooks/hooks"?: Linter.RuleEntry<ReactHooksHooks$1>;
|
|
8008
8015
|
/**
|
|
8009
8016
|
* Validates against mutating props, state, and other values that [are immutable](https://react.dev/reference/rules/components-and-hooks-must-be-pure#props-and-state-are-immutable)
|
|
8017
|
+
* @see https://react.dev/reference/eslint-plugin-react-hooks/lints/immutability
|
|
8010
8018
|
*/
|
|
8011
8019
|
"react-hooks/immutability"?: Linter.RuleEntry<ReactHooksImmutability$1>;
|
|
8012
8020
|
/**
|
|
8013
8021
|
* Validates against usage of libraries which are incompatible with memoization (manual or automatic)
|
|
8022
|
+
* @see https://react.dev/reference/eslint-plugin-react-hooks/lints/incompatible-library
|
|
8014
8023
|
*/
|
|
8015
8024
|
"react-hooks/incompatible-library"?: Linter.RuleEntry<ReactHooksIncompatibleLibrary$1>;
|
|
8016
8025
|
/**
|
|
8017
8026
|
* Internal invariants
|
|
8027
|
+
* @see https://react.dev/reference/eslint-plugin-react-hooks/lints/invariant
|
|
8018
8028
|
*/
|
|
8019
8029
|
"react-hooks/invariant"?: Linter.RuleEntry<ReactHooksInvariant$1>;
|
|
8030
|
+
/**
|
|
8031
|
+
* Validates that useMemo() and useCallback() specify comprehensive dependencies without extraneous values. See [`useMemo()` docs](https://react.dev/reference/react/useMemo) for more information.
|
|
8032
|
+
* @see https://react.dev/reference/eslint-plugin-react-hooks/lints/memo-dependencies
|
|
8033
|
+
*/
|
|
8034
|
+
"react-hooks/memo-dependencies"?: Linter.RuleEntry<ReactHooksMemoDependencies$1>;
|
|
8020
8035
|
/**
|
|
8021
8036
|
* Validates that effect dependencies are memoized
|
|
8037
|
+
* @see https://react.dev/reference/eslint-plugin-react-hooks/lints/memoized-effect-dependencies
|
|
8022
8038
|
*/
|
|
8023
8039
|
"react-hooks/memoized-effect-dependencies"?: Linter.RuleEntry<ReactHooksMemoizedEffectDependencies$1>;
|
|
8024
8040
|
/**
|
|
8025
8041
|
* Validates against deriving values from state in an effect
|
|
8042
|
+
* @see https://react.dev/reference/eslint-plugin-react-hooks/lints/no-deriving-state-in-effects
|
|
8026
8043
|
*/
|
|
8027
8044
|
"react-hooks/no-deriving-state-in-effects"?: Linter.RuleEntry<ReactHooksNoDerivingStateInEffects$1>;
|
|
8028
8045
|
/**
|
|
8029
8046
|
* Validates that existing manual memoized is preserved by the compiler. React Compiler will only compile components and hooks if its inference [matches or exceeds the existing manual memoization](https://react.dev/learn/react-compiler/introduction#what-should-i-do-about-usememo-usecallback-and-reactmemo)
|
|
8047
|
+
* @see https://react.dev/reference/eslint-plugin-react-hooks/lints/preserve-manual-memoization
|
|
8030
8048
|
*/
|
|
8031
8049
|
"react-hooks/preserve-manual-memoization"?: Linter.RuleEntry<ReactHooksPreserveManualMemoization$1>;
|
|
8032
8050
|
/**
|
|
8033
8051
|
* Validates that [components/hooks are pure](https://react.dev/reference/rules/components-and-hooks-must-be-pure) by checking that they do not call known-impure functions
|
|
8052
|
+
* @see https://react.dev/reference/eslint-plugin-react-hooks/lints/purity
|
|
8034
8053
|
*/
|
|
8035
8054
|
"react-hooks/purity"?: Linter.RuleEntry<ReactHooksPurity$1>;
|
|
8036
8055
|
/**
|
|
8037
8056
|
* Validates correct usage of refs, not reading/writing during render. See the "pitfalls" section in [`useRef()` usage](https://react.dev/reference/react/useRef#usage)
|
|
8057
|
+
* @see https://react.dev/reference/eslint-plugin-react-hooks/lints/refs
|
|
8038
8058
|
*/
|
|
8039
8059
|
"react-hooks/refs"?: Linter.RuleEntry<ReactHooksRefs$1>;
|
|
8040
8060
|
/**
|
|
8041
8061
|
* Validates against suppression of other rules
|
|
8062
|
+
* @see https://react.dev/reference/eslint-plugin-react-hooks/lints/rule-suppression
|
|
8042
8063
|
*/
|
|
8043
8064
|
"react-hooks/rule-suppression"?: Linter.RuleEntry<ReactHooksRuleSuppression$1>;
|
|
8044
8065
|
/**
|
|
@@ -8047,35 +8068,43 @@ interface ReactRuleOptions {
|
|
|
8047
8068
|
*/
|
|
8048
8069
|
"react-hooks/rules-of-hooks"?: Linter.RuleEntry<ReactHooksRulesOfHooks$1>;
|
|
8049
8070
|
/**
|
|
8050
|
-
* Validates against calling setState synchronously in an effect
|
|
8071
|
+
* Validates against calling setState synchronously in an effect. This can indicate non-local derived data, a derived event pattern, or improper external data synchronization.
|
|
8072
|
+
* @see https://react.dev/reference/eslint-plugin-react-hooks/lints/set-state-in-effect
|
|
8051
8073
|
*/
|
|
8052
8074
|
"react-hooks/set-state-in-effect"?: Linter.RuleEntry<ReactHooksSetStateInEffect$1>;
|
|
8053
8075
|
/**
|
|
8054
8076
|
* Validates against setting state during render, which can trigger additional renders and potential infinite render loops
|
|
8077
|
+
* @see https://react.dev/reference/eslint-plugin-react-hooks/lints/set-state-in-render
|
|
8055
8078
|
*/
|
|
8056
8079
|
"react-hooks/set-state-in-render"?: Linter.RuleEntry<ReactHooksSetStateInRender$1>;
|
|
8057
8080
|
/**
|
|
8058
8081
|
* Validates that components are static, not recreated every render. Components that are recreated dynamically can reset state and trigger excessive re-rendering
|
|
8082
|
+
* @see https://react.dev/reference/eslint-plugin-react-hooks/lints/static-components
|
|
8059
8083
|
*/
|
|
8060
8084
|
"react-hooks/static-components"?: Linter.RuleEntry<ReactHooksStaticComponents$1>;
|
|
8061
8085
|
/**
|
|
8062
8086
|
* Validates against invalid syntax
|
|
8087
|
+
* @see https://react.dev/reference/eslint-plugin-react-hooks/lints/syntax
|
|
8063
8088
|
*/
|
|
8064
8089
|
"react-hooks/syntax"?: Linter.RuleEntry<ReactHooksSyntax$1>;
|
|
8065
8090
|
/**
|
|
8066
8091
|
* Unimplemented features
|
|
8092
|
+
* @see https://react.dev/reference/eslint-plugin-react-hooks/lints/todo
|
|
8067
8093
|
*/
|
|
8068
8094
|
"react-hooks/todo"?: Linter.RuleEntry<ReactHooksTodo$1>;
|
|
8069
8095
|
/**
|
|
8070
8096
|
* Validates against syntax that we do not plan to support in React Compiler
|
|
8097
|
+
* @see https://react.dev/reference/eslint-plugin-react-hooks/lints/unsupported-syntax
|
|
8071
8098
|
*/
|
|
8072
8099
|
"react-hooks/unsupported-syntax"?: Linter.RuleEntry<ReactHooksUnsupportedSyntax$1>;
|
|
8073
8100
|
/**
|
|
8074
8101
|
* Validates usage of the useMemo() hook against common mistakes. See [`useMemo()` docs](https://react.dev/reference/react/useMemo) for more information.
|
|
8102
|
+
* @see https://react.dev/reference/eslint-plugin-react-hooks/lints/use-memo
|
|
8075
8103
|
*/
|
|
8076
8104
|
"react-hooks/use-memo"?: Linter.RuleEntry<ReactHooksUseMemo$1>;
|
|
8077
8105
|
/**
|
|
8078
8106
|
* Validates that useMemos always return a value and that the result of the useMemo is used by the component/hook. See [`useMemo()` docs](https://react.dev/reference/react/useMemo) for more information.
|
|
8107
|
+
* @see https://react.dev/reference/eslint-plugin-react-hooks/lints/void-use-memo
|
|
8079
8108
|
*/
|
|
8080
8109
|
"react-hooks/void-use-memo"?: Linter.RuleEntry<ReactHooksVoidUseMemo$1>;
|
|
8081
8110
|
"react-refresh/only-export-components"?: Linter.RuleEntry<ReactRefreshOnlyExportComponents>;
|
|
@@ -8598,15 +8627,9 @@ interface ReactRuleOptions {
|
|
|
8598
8627
|
"react/void-dom-elements-no-children"?: Linter.RuleEntry<[]>;
|
|
8599
8628
|
}
|
|
8600
8629
|
/* ======= Declarations ======= */
|
|
8601
|
-
// ----- react-hooks/
|
|
8602
|
-
type ReactHooksAutomaticEffectDependencies$1 = [] | [{
|
|
8603
|
-
[k: string]: unknown | undefined;
|
|
8604
|
-
}]; // ----- react-hooks/capitalized-calls -----
|
|
8630
|
+
// ----- react-hooks/capitalized-calls -----
|
|
8605
8631
|
type ReactHooksCapitalizedCalls$1 = [] | [{
|
|
8606
8632
|
[k: string]: unknown | undefined;
|
|
8607
|
-
}]; // ----- react-hooks/component-hook-factories -----
|
|
8608
|
-
type ReactHooksComponentHookFactories$1 = [] | [{
|
|
8609
|
-
[k: string]: unknown | undefined;
|
|
8610
8633
|
}]; // ----- react-hooks/config -----
|
|
8611
8634
|
type ReactHooksConfig$1 = [] | [{
|
|
8612
8635
|
[k: string]: unknown | undefined;
|
|
@@ -8619,12 +8642,12 @@ type ReactHooksExhaustiveDeps$1 = [] | [{
|
|
|
8619
8642
|
enableDangerousAutofixThisMayCauseInfiniteLoops?: boolean;
|
|
8620
8643
|
experimental_autoDependenciesHooks?: string[];
|
|
8621
8644
|
requireExplicitEffectDeps?: boolean;
|
|
8645
|
+
}]; // ----- react-hooks/exhaustive-effect-dependencies -----
|
|
8646
|
+
type ReactHooksExhaustiveEffectDependencies$1 = [] | [{
|
|
8647
|
+
[k: string]: unknown | undefined;
|
|
8622
8648
|
}]; // ----- react-hooks/fbt -----
|
|
8623
8649
|
type ReactHooksFbt$1 = [] | [{
|
|
8624
8650
|
[k: string]: unknown | undefined;
|
|
8625
|
-
}]; // ----- react-hooks/fire -----
|
|
8626
|
-
type ReactHooksFire$1 = [] | [{
|
|
8627
|
-
[k: string]: unknown | undefined;
|
|
8628
8651
|
}]; // ----- react-hooks/gating -----
|
|
8629
8652
|
type ReactHooksGating$1 = [] | [{
|
|
8630
8653
|
[k: string]: unknown | undefined;
|
|
@@ -8643,6 +8666,9 @@ type ReactHooksIncompatibleLibrary$1 = [] | [{
|
|
|
8643
8666
|
}]; // ----- react-hooks/invariant -----
|
|
8644
8667
|
type ReactHooksInvariant$1 = [] | [{
|
|
8645
8668
|
[k: string]: unknown | undefined;
|
|
8669
|
+
}]; // ----- react-hooks/memo-dependencies -----
|
|
8670
|
+
type ReactHooksMemoDependencies$1 = [] | [{
|
|
8671
|
+
[k: string]: unknown | undefined;
|
|
8646
8672
|
}]; // ----- react-hooks/memoized-effect-dependencies -----
|
|
8647
8673
|
type ReactHooksMemoizedEffectDependencies$1 = [] | [{
|
|
8648
8674
|
[k: string]: unknown | undefined;
|
|
@@ -9088,24 +9114,24 @@ type ReactStylePropObject = [] | [{
|
|
|
9088
9114
|
//#endregion
|
|
9089
9115
|
//#region src/_generated/dts/react-hooks.d.ts
|
|
9090
9116
|
interface ReactHooksRuleOptions {
|
|
9091
|
-
/**
|
|
9092
|
-
* Verifies that automatic effect dependencies are compiled if opted-in
|
|
9093
|
-
*/
|
|
9094
|
-
"react-hooks/automatic-effect-dependencies"?: Linter.RuleEntry<ReactHooksAutomaticEffectDependencies>;
|
|
9095
9117
|
/**
|
|
9096
9118
|
* Validates against calling capitalized functions/methods instead of using JSX
|
|
9119
|
+
* @see https://react.dev/reference/eslint-plugin-react-hooks/lints/capitalized-calls
|
|
9097
9120
|
*/
|
|
9098
9121
|
"react-hooks/capitalized-calls"?: Linter.RuleEntry<ReactHooksCapitalizedCalls>;
|
|
9099
9122
|
/**
|
|
9100
|
-
*
|
|
9123
|
+
* Deprecated: this rule has been removed in 7.1.0.
|
|
9124
|
+
* @deprecated
|
|
9101
9125
|
*/
|
|
9102
|
-
"react-hooks/component-hook-factories"?: Linter.RuleEntry<
|
|
9126
|
+
"react-hooks/component-hook-factories"?: Linter.RuleEntry<[]>;
|
|
9103
9127
|
/**
|
|
9104
9128
|
* Validates the compiler configuration options
|
|
9129
|
+
* @see https://react.dev/reference/eslint-plugin-react-hooks/lints/config
|
|
9105
9130
|
*/
|
|
9106
9131
|
"react-hooks/config"?: Linter.RuleEntry<ReactHooksConfig>;
|
|
9107
9132
|
/**
|
|
9108
9133
|
* Validates usage of error boundaries instead of try/catch for errors in child components
|
|
9134
|
+
* @see https://react.dev/reference/eslint-plugin-react-hooks/lints/error-boundaries
|
|
9109
9135
|
*/
|
|
9110
9136
|
"react-hooks/error-boundaries"?: Linter.RuleEntry<ReactHooksErrorBoundaries>;
|
|
9111
9137
|
/**
|
|
@@ -9114,59 +9140,78 @@ interface ReactHooksRuleOptions {
|
|
|
9114
9140
|
*/
|
|
9115
9141
|
"react-hooks/exhaustive-deps"?: Linter.RuleEntry<ReactHooksExhaustiveDeps>;
|
|
9116
9142
|
/**
|
|
9117
|
-
* Validates
|
|
9143
|
+
* Validates that effect dependencies are exhaustive and without extraneous values
|
|
9144
|
+
* @see https://react.dev/reference/eslint-plugin-react-hooks/lints/exhaustive-effect-dependencies
|
|
9118
9145
|
*/
|
|
9119
|
-
"react-hooks/
|
|
9146
|
+
"react-hooks/exhaustive-effect-dependencies"?: Linter.RuleEntry<ReactHooksExhaustiveEffectDependencies>;
|
|
9120
9147
|
/**
|
|
9121
|
-
* Validates usage of
|
|
9148
|
+
* Validates usage of fbt
|
|
9149
|
+
* @see https://react.dev/reference/eslint-plugin-react-hooks/lints/fbt
|
|
9122
9150
|
*/
|
|
9123
|
-
"react-hooks/
|
|
9151
|
+
"react-hooks/fbt"?: Linter.RuleEntry<ReactHooksFbt>;
|
|
9124
9152
|
/**
|
|
9125
9153
|
* Validates configuration of [gating mode](https://react.dev/reference/react-compiler/gating)
|
|
9154
|
+
* @see https://react.dev/reference/eslint-plugin-react-hooks/lints/gating
|
|
9126
9155
|
*/
|
|
9127
9156
|
"react-hooks/gating"?: Linter.RuleEntry<ReactHooksGating>;
|
|
9128
9157
|
/**
|
|
9129
9158
|
* Validates against assignment/mutation of globals during render, part of ensuring that [side effects must render outside of render](https://react.dev/reference/rules/components-and-hooks-must-be-pure#side-effects-must-run-outside-of-render)
|
|
9159
|
+
* @see https://react.dev/reference/eslint-plugin-react-hooks/lints/globals
|
|
9130
9160
|
*/
|
|
9131
9161
|
"react-hooks/globals"?: Linter.RuleEntry<ReactHooksGlobals>;
|
|
9132
9162
|
/**
|
|
9133
9163
|
* Validates the rules of hooks
|
|
9164
|
+
* @see https://react.dev/reference/eslint-plugin-react-hooks/lints/hooks
|
|
9134
9165
|
*/
|
|
9135
9166
|
"react-hooks/hooks"?: Linter.RuleEntry<ReactHooksHooks>;
|
|
9136
9167
|
/**
|
|
9137
9168
|
* Validates against mutating props, state, and other values that [are immutable](https://react.dev/reference/rules/components-and-hooks-must-be-pure#props-and-state-are-immutable)
|
|
9169
|
+
* @see https://react.dev/reference/eslint-plugin-react-hooks/lints/immutability
|
|
9138
9170
|
*/
|
|
9139
9171
|
"react-hooks/immutability"?: Linter.RuleEntry<ReactHooksImmutability>;
|
|
9140
9172
|
/**
|
|
9141
9173
|
* Validates against usage of libraries which are incompatible with memoization (manual or automatic)
|
|
9174
|
+
* @see https://react.dev/reference/eslint-plugin-react-hooks/lints/incompatible-library
|
|
9142
9175
|
*/
|
|
9143
9176
|
"react-hooks/incompatible-library"?: Linter.RuleEntry<ReactHooksIncompatibleLibrary>;
|
|
9144
9177
|
/**
|
|
9145
9178
|
* Internal invariants
|
|
9179
|
+
* @see https://react.dev/reference/eslint-plugin-react-hooks/lints/invariant
|
|
9146
9180
|
*/
|
|
9147
9181
|
"react-hooks/invariant"?: Linter.RuleEntry<ReactHooksInvariant>;
|
|
9182
|
+
/**
|
|
9183
|
+
* Validates that useMemo() and useCallback() specify comprehensive dependencies without extraneous values. See [`useMemo()` docs](https://react.dev/reference/react/useMemo) for more information.
|
|
9184
|
+
* @see https://react.dev/reference/eslint-plugin-react-hooks/lints/memo-dependencies
|
|
9185
|
+
*/
|
|
9186
|
+
"react-hooks/memo-dependencies"?: Linter.RuleEntry<ReactHooksMemoDependencies>;
|
|
9148
9187
|
/**
|
|
9149
9188
|
* Validates that effect dependencies are memoized
|
|
9189
|
+
* @see https://react.dev/reference/eslint-plugin-react-hooks/lints/memoized-effect-dependencies
|
|
9150
9190
|
*/
|
|
9151
9191
|
"react-hooks/memoized-effect-dependencies"?: Linter.RuleEntry<ReactHooksMemoizedEffectDependencies>;
|
|
9152
9192
|
/**
|
|
9153
9193
|
* Validates against deriving values from state in an effect
|
|
9194
|
+
* @see https://react.dev/reference/eslint-plugin-react-hooks/lints/no-deriving-state-in-effects
|
|
9154
9195
|
*/
|
|
9155
9196
|
"react-hooks/no-deriving-state-in-effects"?: Linter.RuleEntry<ReactHooksNoDerivingStateInEffects>;
|
|
9156
9197
|
/**
|
|
9157
9198
|
* Validates that existing manual memoized is preserved by the compiler. React Compiler will only compile components and hooks if its inference [matches or exceeds the existing manual memoization](https://react.dev/learn/react-compiler/introduction#what-should-i-do-about-usememo-usecallback-and-reactmemo)
|
|
9199
|
+
* @see https://react.dev/reference/eslint-plugin-react-hooks/lints/preserve-manual-memoization
|
|
9158
9200
|
*/
|
|
9159
9201
|
"react-hooks/preserve-manual-memoization"?: Linter.RuleEntry<ReactHooksPreserveManualMemoization>;
|
|
9160
9202
|
/**
|
|
9161
9203
|
* Validates that [components/hooks are pure](https://react.dev/reference/rules/components-and-hooks-must-be-pure) by checking that they do not call known-impure functions
|
|
9204
|
+
* @see https://react.dev/reference/eslint-plugin-react-hooks/lints/purity
|
|
9162
9205
|
*/
|
|
9163
9206
|
"react-hooks/purity"?: Linter.RuleEntry<ReactHooksPurity>;
|
|
9164
9207
|
/**
|
|
9165
9208
|
* Validates correct usage of refs, not reading/writing during render. See the "pitfalls" section in [`useRef()` usage](https://react.dev/reference/react/useRef#usage)
|
|
9209
|
+
* @see https://react.dev/reference/eslint-plugin-react-hooks/lints/refs
|
|
9166
9210
|
*/
|
|
9167
9211
|
"react-hooks/refs"?: Linter.RuleEntry<ReactHooksRefs>;
|
|
9168
9212
|
/**
|
|
9169
9213
|
* Validates against suppression of other rules
|
|
9214
|
+
* @see https://react.dev/reference/eslint-plugin-react-hooks/lints/rule-suppression
|
|
9170
9215
|
*/
|
|
9171
9216
|
"react-hooks/rule-suppression"?: Linter.RuleEntry<ReactHooksRuleSuppression>;
|
|
9172
9217
|
/**
|
|
@@ -9175,48 +9220,50 @@ interface ReactHooksRuleOptions {
|
|
|
9175
9220
|
*/
|
|
9176
9221
|
"react-hooks/rules-of-hooks"?: Linter.RuleEntry<ReactHooksRulesOfHooks>;
|
|
9177
9222
|
/**
|
|
9178
|
-
* Validates against calling setState synchronously in an effect
|
|
9223
|
+
* Validates against calling setState synchronously in an effect. This can indicate non-local derived data, a derived event pattern, or improper external data synchronization.
|
|
9224
|
+
* @see https://react.dev/reference/eslint-plugin-react-hooks/lints/set-state-in-effect
|
|
9179
9225
|
*/
|
|
9180
9226
|
"react-hooks/set-state-in-effect"?: Linter.RuleEntry<ReactHooksSetStateInEffect>;
|
|
9181
9227
|
/**
|
|
9182
9228
|
* Validates against setting state during render, which can trigger additional renders and potential infinite render loops
|
|
9229
|
+
* @see https://react.dev/reference/eslint-plugin-react-hooks/lints/set-state-in-render
|
|
9183
9230
|
*/
|
|
9184
9231
|
"react-hooks/set-state-in-render"?: Linter.RuleEntry<ReactHooksSetStateInRender>;
|
|
9185
9232
|
/**
|
|
9186
9233
|
* Validates that components are static, not recreated every render. Components that are recreated dynamically can reset state and trigger excessive re-rendering
|
|
9234
|
+
* @see https://react.dev/reference/eslint-plugin-react-hooks/lints/static-components
|
|
9187
9235
|
*/
|
|
9188
9236
|
"react-hooks/static-components"?: Linter.RuleEntry<ReactHooksStaticComponents>;
|
|
9189
9237
|
/**
|
|
9190
9238
|
* Validates against invalid syntax
|
|
9239
|
+
* @see https://react.dev/reference/eslint-plugin-react-hooks/lints/syntax
|
|
9191
9240
|
*/
|
|
9192
9241
|
"react-hooks/syntax"?: Linter.RuleEntry<ReactHooksSyntax>;
|
|
9193
9242
|
/**
|
|
9194
9243
|
* Unimplemented features
|
|
9244
|
+
* @see https://react.dev/reference/eslint-plugin-react-hooks/lints/todo
|
|
9195
9245
|
*/
|
|
9196
9246
|
"react-hooks/todo"?: Linter.RuleEntry<ReactHooksTodo>;
|
|
9197
9247
|
/**
|
|
9198
9248
|
* Validates against syntax that we do not plan to support in React Compiler
|
|
9249
|
+
* @see https://react.dev/reference/eslint-plugin-react-hooks/lints/unsupported-syntax
|
|
9199
9250
|
*/
|
|
9200
9251
|
"react-hooks/unsupported-syntax"?: Linter.RuleEntry<ReactHooksUnsupportedSyntax>;
|
|
9201
9252
|
/**
|
|
9202
9253
|
* Validates usage of the useMemo() hook against common mistakes. See [`useMemo()` docs](https://react.dev/reference/react/useMemo) for more information.
|
|
9254
|
+
* @see https://react.dev/reference/eslint-plugin-react-hooks/lints/use-memo
|
|
9203
9255
|
*/
|
|
9204
9256
|
"react-hooks/use-memo"?: Linter.RuleEntry<ReactHooksUseMemo>;
|
|
9205
9257
|
/**
|
|
9206
9258
|
* Validates that useMemos always return a value and that the result of the useMemo is used by the component/hook. See [`useMemo()` docs](https://react.dev/reference/react/useMemo) for more information.
|
|
9259
|
+
* @see https://react.dev/reference/eslint-plugin-react-hooks/lints/void-use-memo
|
|
9207
9260
|
*/
|
|
9208
9261
|
"react-hooks/void-use-memo"?: Linter.RuleEntry<ReactHooksVoidUseMemo>;
|
|
9209
9262
|
}
|
|
9210
9263
|
/* ======= Declarations ======= */
|
|
9211
|
-
// ----- react-hooks/
|
|
9212
|
-
type ReactHooksAutomaticEffectDependencies = [] | [{
|
|
9213
|
-
[k: string]: unknown | undefined;
|
|
9214
|
-
}]; // ----- react-hooks/capitalized-calls -----
|
|
9264
|
+
// ----- react-hooks/capitalized-calls -----
|
|
9215
9265
|
type ReactHooksCapitalizedCalls = [] | [{
|
|
9216
9266
|
[k: string]: unknown | undefined;
|
|
9217
|
-
}]; // ----- react-hooks/component-hook-factories -----
|
|
9218
|
-
type ReactHooksComponentHookFactories = [] | [{
|
|
9219
|
-
[k: string]: unknown | undefined;
|
|
9220
9267
|
}]; // ----- react-hooks/config -----
|
|
9221
9268
|
type ReactHooksConfig = [] | [{
|
|
9222
9269
|
[k: string]: unknown | undefined;
|
|
@@ -9229,12 +9276,12 @@ type ReactHooksExhaustiveDeps = [] | [{
|
|
|
9229
9276
|
enableDangerousAutofixThisMayCauseInfiniteLoops?: boolean;
|
|
9230
9277
|
experimental_autoDependenciesHooks?: string[];
|
|
9231
9278
|
requireExplicitEffectDeps?: boolean;
|
|
9279
|
+
}]; // ----- react-hooks/exhaustive-effect-dependencies -----
|
|
9280
|
+
type ReactHooksExhaustiveEffectDependencies = [] | [{
|
|
9281
|
+
[k: string]: unknown | undefined;
|
|
9232
9282
|
}]; // ----- react-hooks/fbt -----
|
|
9233
9283
|
type ReactHooksFbt = [] | [{
|
|
9234
9284
|
[k: string]: unknown | undefined;
|
|
9235
|
-
}]; // ----- react-hooks/fire -----
|
|
9236
|
-
type ReactHooksFire = [] | [{
|
|
9237
|
-
[k: string]: unknown | undefined;
|
|
9238
9285
|
}]; // ----- react-hooks/gating -----
|
|
9239
9286
|
type ReactHooksGating = [] | [{
|
|
9240
9287
|
[k: string]: unknown | undefined;
|
|
@@ -9253,6 +9300,9 @@ type ReactHooksIncompatibleLibrary = [] | [{
|
|
|
9253
9300
|
}]; // ----- react-hooks/invariant -----
|
|
9254
9301
|
type ReactHooksInvariant = [] | [{
|
|
9255
9302
|
[k: string]: unknown | undefined;
|
|
9303
|
+
}]; // ----- react-hooks/memo-dependencies -----
|
|
9304
|
+
type ReactHooksMemoDependencies = [] | [{
|
|
9305
|
+
[k: string]: unknown | undefined;
|
|
9256
9306
|
}]; // ----- react-hooks/memoized-effect-dependencies -----
|
|
9257
9307
|
type ReactHooksMemoizedEffectDependencies = [] | [{
|
|
9258
9308
|
[k: string]: unknown | undefined;
|
|
@@ -11215,15 +11265,6 @@ type TomlSpacedComment = [] | ["always" | "never"] | ["always" | "never", {
|
|
|
11215
11265
|
}]; // ----- toml/table-bracket-spacing -----
|
|
11216
11266
|
type TomlTableBracketSpacing = [] | ["always" | "never"];
|
|
11217
11267
|
//#endregion
|
|
11218
|
-
//#region src/_generated/dts/tsdoc.d.ts
|
|
11219
|
-
interface TsdocRuleOptions {
|
|
11220
|
-
/**
|
|
11221
|
-
* Validates that TypeScript documentation comments conform to the TSDoc standard
|
|
11222
|
-
* @see https://tsdoc.org/pages/packages/eslint-plugin-tsdoc
|
|
11223
|
-
*/
|
|
11224
|
-
"tsdoc/syntax"?: Linter.RuleEntry<[]>;
|
|
11225
|
-
}
|
|
11226
|
-
//#endregion
|
|
11227
11268
|
//#region src/_generated/dts/typescript.d.ts
|
|
11228
11269
|
interface TypescriptRuleOptions {
|
|
11229
11270
|
/**
|
|
@@ -14658,7 +14699,7 @@ type YamlSpacedComment = [] | ["always" | "never"] | ["always" | "never", {
|
|
|
14658
14699
|
}];
|
|
14659
14700
|
//#endregion
|
|
14660
14701
|
//#region src/_generated/rule-options.d.ts
|
|
14661
|
-
type RuleOptionsUnion = BuiltinsRuleOptions & AntfuRuleOptions & CommandRuleOptions & DeMorganRuleOptions & EslintCommentsRuleOptions & IgnoresRuleOptions & ImportsRuleOptions & JavascriptRuleOptions$1 & JsdocRuleOptions & JsoncRuleOptions & MarkdownRuleOptions & NRuleOptions & NoOnlyTestsRuleOptions & PerfectionistRuleOptions & PnpmRuleOptions & PrettierRuleOptions & ReactRuleOptions & ReactHooksRuleOptions & SortPackageJsonRuleOptions & SortTsconfigRuleOptions & StylisticRuleOptions & TomlRuleOptions &
|
|
14702
|
+
type RuleOptionsUnion = BuiltinsRuleOptions & AntfuRuleOptions & CommandRuleOptions & DeMorganRuleOptions & EslintCommentsRuleOptions & IgnoresRuleOptions & ImportsRuleOptions & JavascriptRuleOptions$1 & JsdocRuleOptions & JsoncRuleOptions & MarkdownRuleOptions & NRuleOptions & NoOnlyTestsRuleOptions & PerfectionistRuleOptions & PnpmRuleOptions & PrettierRuleOptions & ReactRuleOptions & ReactHooksRuleOptions & SortPackageJsonRuleOptions & SortTsconfigRuleOptions & StylisticRuleOptions & TomlRuleOptions & TypescriptRuleOptions & UnicornRuleOptions & VitestRuleOptions & YmlRuleOptions;
|
|
14662
14703
|
//#endregion
|
|
14663
14704
|
//#region src/types.d.ts
|
|
14664
14705
|
type RulesRecord = Linter.RulesRecord & RuleOptionsUnion;
|
|
@@ -15313,13 +15354,6 @@ declare function importPluginReactRefresh(): Promise<{
|
|
|
15313
15354
|
declare function importPluginMarkdown(): Promise<{
|
|
15314
15355
|
pluginMarkdown: typeof _$_eslint_markdown0.default;
|
|
15315
15356
|
}>;
|
|
15316
|
-
declare function importPluginTsdoc(): Promise<{
|
|
15317
|
-
pluginTsdoc: {
|
|
15318
|
-
rules: {
|
|
15319
|
-
[x: string]: Rule.RuleModule;
|
|
15320
|
-
};
|
|
15321
|
-
};
|
|
15322
|
-
}>;
|
|
15323
15357
|
declare function importPluginStylistic(): Promise<{
|
|
15324
15358
|
pluginStylistic: {
|
|
15325
15359
|
rules: _$_stylistic_eslint_plugin0.Rules;
|
|
@@ -15385,4 +15419,4 @@ declare function changeRuleEntrySeverity(ruleConfig: Linter.RuleEntry<any>, leve
|
|
|
15385
15419
|
declare function error2warn<T extends Config>(configs: T[]): T[];
|
|
15386
15420
|
declare function warn2error<T extends Config>(configs: T[]): T[];
|
|
15387
15421
|
//#endregion
|
|
15388
|
-
export { Awaitable, Config, EslintConfigFn, type JavascriptRuleOptions, LanguageOptions, OptionsCommon, OptionsComponentExts, OptionsConfig, OptionsFiles, OptionsHasTypeScript, OptionsIsInEditor, OptionsOverrides, OptionsPrefix, OptionsReact, OptionsStylistic, OptionsTypeScriptParserOptions, OptionsTypeScriptWithTypes, OptionsTypescript, RenamePefix, RuleName, RulesRecord, SLOW_RULES, StylisticConfig, TailwindEslintSettings, TailwindOptions, TypedFlatConfigItemWithId, TypescriptConfigRules, UnPromise, VERSION, changeRuleEntrySeverity, combine, combineAsync, jsse as default, jsse, defineConfig, error2warn, globs_d_exports as globs, importPluginMarkdown, importPluginReact, importPluginReactRefresh, importPluginStylistic,
|
|
15422
|
+
export { Awaitable, Config, EslintConfigFn, type JavascriptRuleOptions, LanguageOptions, OptionsCommon, OptionsComponentExts, OptionsConfig, OptionsFiles, OptionsHasTypeScript, OptionsIsInEditor, OptionsOverrides, OptionsPrefix, OptionsReact, OptionsStylistic, OptionsTypeScriptParserOptions, OptionsTypeScriptWithTypes, OptionsTypescript, RenamePefix, RuleName, RulesRecord, SLOW_RULES, StylisticConfig, TailwindEslintSettings, TailwindOptions, TypedFlatConfigItemWithId, TypescriptConfigRules, UnPromise, VERSION, changeRuleEntrySeverity, combine, combineAsync, jsse as default, jsse, defineConfig, error2warn, globs_d_exports as globs, importPluginMarkdown, importPluginReact, importPluginReactRefresh, importPluginStylistic, interopDefault, isCI, isInEditor, jsseReact, parserPlain, parserTs, pluginAntfu, pluginDeMorgan, pluginEslintComments, pluginImportLite, pluginN, pluginPerfectionist, pluginPnpm, pluginTs, pluginUnicorn, pluginUnusedImports, renameRules, turnOffRules, uniqueStrings, warn2error };
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as __exportAll, r as __toESM, t as __commonJSMin } from "./chunk-
|
|
2
|
-
import { n as SLOW_RULES, r as VERSION, t as DEBUG } from "./const-
|
|
1
|
+
import { n as __exportAll, r as __toESM, t as __commonJSMin } from "./chunk-N93fKeF6.js";
|
|
2
|
+
import { n as SLOW_RULES, r as VERSION, t as DEBUG } from "./const-Xv2V3w-8.js";
|
|
3
3
|
import { builtinModules, createRequire } from "node:module";
|
|
4
4
|
import process$1 from "node:process";
|
|
5
5
|
import fs, { realpathSync, statSync } from "node:fs";
|
|
@@ -3533,23 +3533,21 @@ var ecma10BinaryProperties = ecma9BinaryProperties + " Extended_Pictographic";
|
|
|
3533
3533
|
var ecma11BinaryProperties = ecma10BinaryProperties;
|
|
3534
3534
|
var ecma12BinaryProperties = ecma11BinaryProperties + " EBase EComp EMod EPres ExtPict";
|
|
3535
3535
|
var ecma13BinaryProperties = ecma12BinaryProperties;
|
|
3536
|
-
var ecma14BinaryProperties = ecma13BinaryProperties;
|
|
3537
3536
|
var unicodeBinaryProperties = {
|
|
3538
3537
|
9: ecma9BinaryProperties,
|
|
3539
3538
|
10: ecma10BinaryProperties,
|
|
3540
3539
|
11: ecma11BinaryProperties,
|
|
3541
3540
|
12: ecma12BinaryProperties,
|
|
3542
3541
|
13: ecma13BinaryProperties,
|
|
3543
|
-
14:
|
|
3542
|
+
14: ecma13BinaryProperties
|
|
3544
3543
|
};
|
|
3545
|
-
var ecma14BinaryPropertiesOfStrings = "Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji";
|
|
3546
3544
|
var unicodeBinaryPropertiesOfStrings = {
|
|
3547
3545
|
9: "",
|
|
3548
3546
|
10: "",
|
|
3549
3547
|
11: "",
|
|
3550
3548
|
12: "",
|
|
3551
3549
|
13: "",
|
|
3552
|
-
14:
|
|
3550
|
+
14: "Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji"
|
|
3553
3551
|
};
|
|
3554
3552
|
var unicodeGeneralCategoryValues = "Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu";
|
|
3555
3553
|
var ecma9ScriptValues = "Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb";
|
|
@@ -3557,14 +3555,13 @@ var ecma10ScriptValues = ecma9ScriptValues + " Dogra Dogr Gunjala_Gondi Gong Han
|
|
|
3557
3555
|
var ecma11ScriptValues = ecma10ScriptValues + " Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho";
|
|
3558
3556
|
var ecma12ScriptValues = ecma11ScriptValues + " Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi";
|
|
3559
3557
|
var ecma13ScriptValues = ecma12ScriptValues + " Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith";
|
|
3560
|
-
var ecma14ScriptValues = ecma13ScriptValues + " " + scriptValuesAddedInUnicode;
|
|
3561
3558
|
var unicodeScriptValues = {
|
|
3562
3559
|
9: ecma9ScriptValues,
|
|
3563
3560
|
10: ecma10ScriptValues,
|
|
3564
3561
|
11: ecma11ScriptValues,
|
|
3565
3562
|
12: ecma12ScriptValues,
|
|
3566
3563
|
13: ecma13ScriptValues,
|
|
3567
|
-
14:
|
|
3564
|
+
14: ecma13ScriptValues + " " + scriptValuesAddedInUnicode
|
|
3568
3565
|
};
|
|
3569
3566
|
var data = {};
|
|
3570
3567
|
function buildUnicodeData(ecmaVersion) {
|
|
@@ -6638,9 +6635,6 @@ async function importPluginReactRefresh() {
|
|
|
6638
6635
|
async function importPluginMarkdown() {
|
|
6639
6636
|
return { pluginMarkdown: await interopDefault(import("@eslint/markdown")) };
|
|
6640
6637
|
}
|
|
6641
|
-
async function importPluginTsdoc() {
|
|
6642
|
-
return { pluginTsdoc: await interopDefault(import("eslint-plugin-tsdoc")) };
|
|
6643
|
-
}
|
|
6644
6638
|
async function importPluginStylistic() {
|
|
6645
6639
|
return { pluginStylistic: await interopDefault(import("@stylistic/eslint-plugin")) };
|
|
6646
6640
|
}
|
|
@@ -6821,7 +6815,7 @@ const imports = async (options) => {
|
|
|
6821
6815
|
}];
|
|
6822
6816
|
};
|
|
6823
6817
|
//#endregion
|
|
6824
|
-
//#region node_modules/.pnpm/globals@17.
|
|
6818
|
+
//#region node_modules/.pnpm/globals@17.5.0/node_modules/globals/globals.json
|
|
6825
6819
|
var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6826
6820
|
module.exports = {
|
|
6827
6821
|
"amd": {
|
|
@@ -6927,6 +6921,7 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6927
6921
|
"AudioNode": false,
|
|
6928
6922
|
"AudioParam": false,
|
|
6929
6923
|
"AudioParamMap": false,
|
|
6924
|
+
"AudioPlaybackStats": false,
|
|
6930
6925
|
"AudioProcessingEvent": false,
|
|
6931
6926
|
"AudioScheduledSourceNode": false,
|
|
6932
6927
|
"AudioSinkInfo": false,
|
|
@@ -7718,6 +7713,7 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7718
7713
|
"RTCSessionDescription": false,
|
|
7719
7714
|
"RTCStatsReport": false,
|
|
7720
7715
|
"RTCTrackEvent": false,
|
|
7716
|
+
"Sanitizer": false,
|
|
7721
7717
|
"scheduler": false,
|
|
7722
7718
|
"Scheduler": false,
|
|
7723
7719
|
"Scheduling": false,
|
|
@@ -7919,6 +7915,9 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7919
7915
|
"TextTrackList": false,
|
|
7920
7916
|
"TextUpdateEvent": false,
|
|
7921
7917
|
"TimeEvent": false,
|
|
7918
|
+
"TimelineTrigger": false,
|
|
7919
|
+
"TimelineTriggerRange": false,
|
|
7920
|
+
"TimelineTriggerRangeList": false,
|
|
7922
7921
|
"TimeRanges": false,
|
|
7923
7922
|
"ToggleEvent": false,
|
|
7924
7923
|
"toolbar": false,
|
|
@@ -8364,6 +8363,7 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
8364
8363
|
"PromiseRejectionEvent": false,
|
|
8365
8364
|
"prompt": false,
|
|
8366
8365
|
"queueMicrotask": false,
|
|
8366
|
+
"QuotaExceededError": false,
|
|
8367
8367
|
"ReadableByteStreamController": false,
|
|
8368
8368
|
"ReadableStream": false,
|
|
8369
8369
|
"ReadableStreamBYOBReader": false,
|
|
@@ -9154,6 +9154,70 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
9154
9154
|
"WeakRef": false,
|
|
9155
9155
|
"WeakSet": false
|
|
9156
9156
|
},
|
|
9157
|
+
"es2027": {
|
|
9158
|
+
"AggregateError": false,
|
|
9159
|
+
"Array": false,
|
|
9160
|
+
"ArrayBuffer": false,
|
|
9161
|
+
"Atomics": false,
|
|
9162
|
+
"BigInt": false,
|
|
9163
|
+
"BigInt64Array": false,
|
|
9164
|
+
"BigUint64Array": false,
|
|
9165
|
+
"Boolean": false,
|
|
9166
|
+
"DataView": false,
|
|
9167
|
+
"Date": false,
|
|
9168
|
+
"decodeURI": false,
|
|
9169
|
+
"decodeURIComponent": false,
|
|
9170
|
+
"encodeURI": false,
|
|
9171
|
+
"encodeURIComponent": false,
|
|
9172
|
+
"Error": false,
|
|
9173
|
+
"escape": false,
|
|
9174
|
+
"eval": false,
|
|
9175
|
+
"EvalError": false,
|
|
9176
|
+
"FinalizationRegistry": false,
|
|
9177
|
+
"Float16Array": false,
|
|
9178
|
+
"Float32Array": false,
|
|
9179
|
+
"Float64Array": false,
|
|
9180
|
+
"Function": false,
|
|
9181
|
+
"globalThis": false,
|
|
9182
|
+
"Infinity": false,
|
|
9183
|
+
"Int16Array": false,
|
|
9184
|
+
"Int32Array": false,
|
|
9185
|
+
"Int8Array": false,
|
|
9186
|
+
"Intl": false,
|
|
9187
|
+
"isFinite": false,
|
|
9188
|
+
"isNaN": false,
|
|
9189
|
+
"Iterator": false,
|
|
9190
|
+
"JSON": false,
|
|
9191
|
+
"Map": false,
|
|
9192
|
+
"Math": false,
|
|
9193
|
+
"NaN": false,
|
|
9194
|
+
"Number": false,
|
|
9195
|
+
"Object": false,
|
|
9196
|
+
"parseFloat": false,
|
|
9197
|
+
"parseInt": false,
|
|
9198
|
+
"Promise": false,
|
|
9199
|
+
"Proxy": false,
|
|
9200
|
+
"RangeError": false,
|
|
9201
|
+
"ReferenceError": false,
|
|
9202
|
+
"Reflect": false,
|
|
9203
|
+
"RegExp": false,
|
|
9204
|
+
"Set": false,
|
|
9205
|
+
"SharedArrayBuffer": false,
|
|
9206
|
+
"String": false,
|
|
9207
|
+
"Symbol": false,
|
|
9208
|
+
"SyntaxError": false,
|
|
9209
|
+
"TypeError": false,
|
|
9210
|
+
"Uint16Array": false,
|
|
9211
|
+
"Uint32Array": false,
|
|
9212
|
+
"Uint8Array": false,
|
|
9213
|
+
"Uint8ClampedArray": false,
|
|
9214
|
+
"undefined": false,
|
|
9215
|
+
"unescape": false,
|
|
9216
|
+
"URIError": false,
|
|
9217
|
+
"WeakMap": false,
|
|
9218
|
+
"WeakRef": false,
|
|
9219
|
+
"WeakSet": false
|
|
9220
|
+
},
|
|
9157
9221
|
"es3": {
|
|
9158
9222
|
"Array": false,
|
|
9159
9223
|
"Boolean": false,
|
|
@@ -11414,10 +11478,9 @@ const n = async () => {
|
|
|
11414
11478
|
//#region src/configs/no-only-tests.ts
|
|
11415
11479
|
const noOnlyTests = async (options = {}) => {
|
|
11416
11480
|
const { isInEditor = false, overrides = {} } = options;
|
|
11417
|
-
const pluginNoOnlyTests = await interopDefault(import("eslint-plugin-no-only-tests"));
|
|
11418
11481
|
return [{
|
|
11419
11482
|
name: "jsse/no-only-tests/setup",
|
|
11420
|
-
plugins: { "no-only-tests":
|
|
11483
|
+
plugins: { "no-only-tests": await interopDefault(import("eslint-plugin-no-only-tests")) }
|
|
11421
11484
|
}, {
|
|
11422
11485
|
files: GLOB_TESTS,
|
|
11423
11486
|
name: "jsse/no-only-tests/rules",
|
|
@@ -11779,7 +11842,7 @@ function reactRules() {
|
|
|
11779
11842
|
*/
|
|
11780
11843
|
function reactRecomendedRules() {
|
|
11781
11844
|
return {
|
|
11782
|
-
"react/display-name":
|
|
11845
|
+
"react/display-name": 0,
|
|
11783
11846
|
"react/jsx-key": 2,
|
|
11784
11847
|
"react/jsx-no-comment-textnodes": 2,
|
|
11785
11848
|
"react/jsx-no-duplicate-props": 2,
|
|
@@ -11790,7 +11853,7 @@ function reactRecomendedRules() {
|
|
|
11790
11853
|
"react/no-children-prop": 2,
|
|
11791
11854
|
"react/no-danger-with-children": 2,
|
|
11792
11855
|
"react/no-deprecated": 2,
|
|
11793
|
-
"react/no-direct-mutation-state":
|
|
11856
|
+
"react/no-direct-mutation-state": 0,
|
|
11794
11857
|
"react/no-find-dom-node": 2,
|
|
11795
11858
|
"react/no-is-mounted": 2,
|
|
11796
11859
|
"react/no-render-return-value": 2,
|
|
@@ -12272,17 +12335,6 @@ const typescript = async (options) => {
|
|
|
12272
12335
|
return tsEslintConfigs;
|
|
12273
12336
|
};
|
|
12274
12337
|
//#endregion
|
|
12275
|
-
//#region src/configs/tsdoc.ts
|
|
12276
|
-
const tsdoc = async () => {
|
|
12277
|
-
const { pluginTsdoc } = await importPluginTsdoc();
|
|
12278
|
-
return [{
|
|
12279
|
-
files: ["*.ts", "*.tsx"],
|
|
12280
|
-
name: "jsse/tsdoc",
|
|
12281
|
-
plugins: { tsdoc: pluginTsdoc },
|
|
12282
|
-
rules: { "tsdoc/syntax": "warn" }
|
|
12283
|
-
}];
|
|
12284
|
-
};
|
|
12285
|
-
//#endregion
|
|
12286
12338
|
//#region src/configs/unicorn.ts
|
|
12287
12339
|
function unicornOff() {
|
|
12288
12340
|
return {
|
|
@@ -12558,7 +12610,7 @@ async function jsse(options = {}, ...userConfigs) {
|
|
|
12558
12610
|
react: enableReact,
|
|
12559
12611
|
typeAware: effectiveTypeAware
|
|
12560
12612
|
});
|
|
12561
|
-
configs.push(tscfg
|
|
12613
|
+
configs.push(tscfg);
|
|
12562
12614
|
}
|
|
12563
12615
|
if (enableMarkdown) configs.push(markdown());
|
|
12564
12616
|
if (enableYaml) {
|
|
@@ -12631,4 +12683,4 @@ const jsseReact = (options, ...configs) => {
|
|
|
12631
12683
|
}, ...configs);
|
|
12632
12684
|
};
|
|
12633
12685
|
//#endregion
|
|
12634
|
-
export { SLOW_RULES, VERSION, changeRuleEntrySeverity, combine, combineAsync, jsse as default, jsse, defineConfig, error2warn, globs_exports as globs, importPluginMarkdown, importPluginReact, importPluginReactRefresh, importPluginStylistic,
|
|
12686
|
+
export { SLOW_RULES, VERSION, changeRuleEntrySeverity, combine, combineAsync, jsse as default, jsse, defineConfig, error2warn, globs_exports as globs, importPluginMarkdown, importPluginReact, importPluginReactRefresh, importPluginStylistic, interopDefault, isCI, isInEditor, jsseReact, parserPlain, parserTs, pluginAntfu, pluginDeMorgan, pluginEslintComments, pluginImportLite, pluginN, pluginPerfectionist, pluginPnpm, pluginTs, pluginUnicorn, pluginUnusedImports, renameRules, turnOffRules, uniqueStrings, warn2error };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsse/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.7.
|
|
4
|
+
"version": "0.7.2",
|
|
5
5
|
"description": "@jsse/eslint-config ~ WYSIWYG",
|
|
6
6
|
"author": "jessekrubin <jessekrubin@gmail.com> (https://github.com/jessekrubin/)",
|
|
7
7
|
"license": "MIT",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"dist"
|
|
37
37
|
],
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"@eslint-react/eslint-plugin": "^2.
|
|
39
|
+
"@eslint-react/eslint-plugin": "^4.2.3",
|
|
40
40
|
"eslint": "^9.39.1",
|
|
41
41
|
"eslint-plugin-react": "^7.37.5",
|
|
42
42
|
"eslint-plugin-react-hooks": "^7.0.0",
|
|
@@ -61,14 +61,14 @@
|
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
63
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.7.1",
|
|
64
|
-
"@eslint/compat": "^2.0.
|
|
64
|
+
"@eslint/compat": "^2.0.5",
|
|
65
65
|
"@eslint/js": "^9.39.4",
|
|
66
66
|
"@eslint/markdown": "^8.0.1",
|
|
67
67
|
"@stylistic/eslint-plugin": "5.10.0",
|
|
68
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
69
|
-
"@typescript-eslint/parser": "^8.
|
|
70
|
-
"@typescript-eslint/rule-tester": "^8.
|
|
71
|
-
"@vitest/eslint-plugin": "^1.6.
|
|
68
|
+
"@typescript-eslint/eslint-plugin": "^8.59.0",
|
|
69
|
+
"@typescript-eslint/parser": "^8.59.0",
|
|
70
|
+
"@typescript-eslint/rule-tester": "^8.59.0",
|
|
71
|
+
"@vitest/eslint-plugin": "^1.6.16",
|
|
72
72
|
"debug": "^4.4.3",
|
|
73
73
|
"eslint-config-flat-gitignore": "^2.3.0",
|
|
74
74
|
"eslint-merge-processors": "^2.0.0",
|
|
@@ -80,27 +80,26 @@
|
|
|
80
80
|
"eslint-plugin-jsonc": "^3.1.2",
|
|
81
81
|
"eslint-plugin-n": "^17.24.0",
|
|
82
82
|
"eslint-plugin-no-only-tests": "^3.3.0",
|
|
83
|
-
"eslint-plugin-perfectionist": "^5.
|
|
83
|
+
"eslint-plugin-perfectionist": "^5.9.0",
|
|
84
84
|
"eslint-plugin-pnpm": "^1.6.0",
|
|
85
85
|
"eslint-plugin-react": "^7.37.5",
|
|
86
|
-
"eslint-plugin-react-hooks": "^7.
|
|
86
|
+
"eslint-plugin-react-hooks": "^7.1.1",
|
|
87
87
|
"eslint-plugin-react-refresh": "^0.5.2",
|
|
88
88
|
"eslint-plugin-toml": "^1.3.1",
|
|
89
|
-
"eslint-plugin-tsdoc": "^0.5.2",
|
|
90
89
|
"eslint-plugin-unicorn": "^64.0.0",
|
|
91
90
|
"eslint-plugin-unused-imports": "^4.4.1",
|
|
92
91
|
"eslint-plugin-yml": "^3.3.1",
|
|
93
92
|
"jsonc-eslint-parser": "^3.1.0",
|
|
94
93
|
"toml-eslint-parser": "^1.0.3",
|
|
95
|
-
"typescript-eslint": "^8.
|
|
94
|
+
"typescript-eslint": "^8.59.0",
|
|
96
95
|
"yaml-eslint-parser": "^2.0.0"
|
|
97
96
|
},
|
|
98
97
|
"devDependencies": {
|
|
99
|
-
"@changesets/cli": "^2.
|
|
100
|
-
"@emnapi/core": "^1.
|
|
101
|
-
"@emnapi/runtime": "^1.
|
|
98
|
+
"@changesets/cli": "^2.31.0",
|
|
99
|
+
"@emnapi/core": "^1.10.0",
|
|
100
|
+
"@emnapi/runtime": "^1.10.0",
|
|
102
101
|
"@jsse/prettier-config": "^1.0.2",
|
|
103
|
-
"@jsse/tsconfig": "^0.
|
|
102
|
+
"@jsse/tsconfig": "^0.5.0",
|
|
104
103
|
"@types/debug": "^4.1.13",
|
|
105
104
|
"@types/fs-extra": "^11.0.4",
|
|
106
105
|
"@types/node": "^25.5.0",
|
|
@@ -112,18 +111,18 @@
|
|
|
112
111
|
"fast-equals": "^6.0.0",
|
|
113
112
|
"fast-glob": "^3.3.3",
|
|
114
113
|
"fs-extra": "^11.3.4",
|
|
115
|
-
"globals": "^17.
|
|
114
|
+
"globals": "^17.5.0",
|
|
116
115
|
"local-pkg": "^1.1.2",
|
|
117
|
-
"oxfmt": "^0.
|
|
118
|
-
"oxlint": "^1.
|
|
116
|
+
"oxfmt": "^0.46.0",
|
|
117
|
+
"oxlint": "^1.61.0",
|
|
119
118
|
"picocolors": "^1.1.1",
|
|
120
|
-
"prettier": "^3.8.
|
|
121
|
-
"react": "~19.2.
|
|
119
|
+
"prettier": "^3.8.3",
|
|
120
|
+
"react": "~19.2.5",
|
|
122
121
|
"rimraf": "^6.1.3",
|
|
123
|
-
"tsdown": "^0.21.
|
|
122
|
+
"tsdown": "^0.21.9",
|
|
124
123
|
"tsx": "^4.21.0",
|
|
125
|
-
"typescript": "~
|
|
126
|
-
"vitest": "^4.1.
|
|
124
|
+
"typescript": "~6.0.3",
|
|
125
|
+
"vitest": "^4.1.5"
|
|
127
126
|
},
|
|
128
127
|
"prettier": "@jsse/prettier-config",
|
|
129
128
|
"scripts": {
|