@pobammer-ts/eslint-cease-nonsense-rules 1.11.0 → 1.13.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/README.md +58 -0
- package/dist/build-metadata.json +3 -3
- package/dist/index.d.ts +7 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +629 -274
- package/dist/index.js.map +46 -43
- package/dist/rules/ban-instances.d.ts +6 -7
- package/dist/rules/ban-instances.d.ts.map +1 -1
- package/dist/rules/ban-react-fc.d.ts +4 -7
- package/dist/rules/ban-react-fc.d.ts.map +1 -1
- package/dist/rules/enforce-ianitor-check-type.d.ts +7 -3
- package/dist/rules/enforce-ianitor-check-type.d.ts.map +1 -1
- package/dist/rules/no-async-constructor.d.ts +4 -5
- package/dist/rules/no-async-constructor.d.ts.map +1 -1
- package/dist/rules/no-color3-constructor.d.ts +4 -3
- package/dist/rules/no-color3-constructor.d.ts.map +1 -1
- package/dist/rules/no-god-components.d.ts.map +1 -1
- package/dist/rules/no-identity-map.d.ts +4 -2
- package/dist/rules/no-identity-map.d.ts.map +1 -1
- package/dist/rules/no-instance-methods-without-this.d.ts +4 -9
- package/dist/rules/no-instance-methods-without-this.d.ts.map +1 -1
- package/dist/rules/no-print.d.ts +4 -3
- package/dist/rules/no-print.d.ts.map +1 -1
- package/dist/rules/no-shorthand-names.d.ts.map +1 -1
- package/dist/rules/no-useless-use-spring.d.ts +4 -4
- package/dist/rules/no-useless-use-spring.d.ts.map +1 -1
- package/dist/rules/no-warn.d.ts +4 -3
- package/dist/rules/no-warn.d.ts.map +1 -1
- package/dist/rules/prefer-class-properties.d.ts +4 -3
- package/dist/rules/prefer-class-properties.d.ts.map +1 -1
- package/dist/rules/prefer-early-return.d.ts +4 -4
- package/dist/rules/prefer-early-return.d.ts.map +1 -1
- package/dist/rules/prefer-module-scope-constants.d.ts +4 -2
- package/dist/rules/prefer-module-scope-constants.d.ts.map +1 -1
- package/dist/rules/prefer-pascal-case-enums.d.ts +4 -4
- package/dist/rules/prefer-pascal-case-enums.d.ts.map +1 -1
- package/dist/rules/prefer-pattern-replacements.d.ts +6 -11
- package/dist/rules/prefer-pattern-replacements.d.ts.map +1 -1
- package/dist/rules/prefer-sequence-overloads.d.ts +4 -7
- package/dist/rules/prefer-sequence-overloads.d.ts.map +1 -1
- package/dist/rules/prefer-singular-enums.d.ts +4 -4
- package/dist/rules/prefer-singular-enums.d.ts.map +1 -1
- package/dist/rules/react-hooks-strict-return.d.ts +4 -3
- package/dist/rules/react-hooks-strict-return.d.ts.map +1 -1
- package/dist/rules/require-react-component-keys.d.ts +4 -5
- package/dist/rules/require-react-component-keys.d.ts.map +1 -1
- package/dist/rules/require-react-display-names.d.ts +11 -0
- package/dist/rules/require-react-display-names.d.ts.map +1 -0
- package/dist/rules/strict-component-boundaries.d.ts +4 -8
- package/dist/rules/strict-component-boundaries.d.ts.map +1 -1
- package/dist/utilities/configure-utilities.d.ts +7 -0
- package/dist/utilities/configure-utilities.d.ts.map +1 -1
- package/dist/utilities/create-rule.d.ts +9 -0
- package/dist/utilities/create-rule.d.ts.map +1 -0
- package/package.json +17 -17
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ReadonlyRecord } from "../types/utility-types";
|
|
2
2
|
/**
|
|
3
3
|
* Configuration for banned Roblox Instance classes.
|
|
4
4
|
*
|
|
@@ -16,13 +16,12 @@ import type { TSESLint } from "@typescript-eslint/utils";
|
|
|
16
16
|
* ```
|
|
17
17
|
*/
|
|
18
18
|
export interface BanInstancesOptions {
|
|
19
|
-
readonly bannedInstances: ReadonlyArray<string> |
|
|
19
|
+
readonly bannedInstances: ReadonlyArray<string> | ReadonlyRecord<string, string>;
|
|
20
20
|
}
|
|
21
21
|
type Options = [BanInstancesOptions?];
|
|
22
22
|
type MessageIds = "bannedInstance" | "bannedInstanceCustom";
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export default banInstances;
|
|
23
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<MessageIds, Options, unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
24
|
+
name: string;
|
|
25
|
+
};
|
|
26
|
+
export default _default;
|
|
28
27
|
//# sourceMappingURL=ban-instances.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ban-instances.d.ts","sourceRoot":"","sources":["../../src/rules/ban-instances.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ban-instances.d.ts","sourceRoot":"","sources":["../../src/rules/ban-instances.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAG7D;;;;;;;;;;;;;;;GAeG;AACH,MAAM,WAAW,mBAAmB;IACnC,QAAQ,CAAC,eAAe,EAAE,aAAa,CAAC,MAAM,CAAC,GAAG,cAAc,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACjF;AAED,KAAK,OAAO,GAAG,CAAC,mBAAmB,CAAC,CAAC,CAAC;AACtC,KAAK,UAAU,GAAG,gBAAgB,GAAG,sBAAsB,CAAC;;;;AAyC5D,wBA4FG"}
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
declare const banReactFC: TSESLint.RuleModuleWithMetaDocs<MessageIds, [], RuleDocsWithRecommended>;
|
|
7
|
-
export default banReactFC;
|
|
1
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"banReactFC", [], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
2
|
+
name: string;
|
|
3
|
+
};
|
|
4
|
+
export default _default;
|
|
8
5
|
//# sourceMappingURL=ban-react-fc.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ban-react-fc.d.ts","sourceRoot":"","sources":["../../src/rules/ban-react-fc.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ban-react-fc.d.ts","sourceRoot":"","sources":["../../src/rules/ban-react-fc.ts"],"names":[],"mappings":";;;AAOA,wBA0CG"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ESLintUtils } from "@typescript-eslint/utils";
|
|
2
2
|
export interface ComplexityConfiguration {
|
|
3
3
|
readonly baseThreshold: number;
|
|
4
4
|
readonly warnThreshold: number;
|
|
@@ -6,6 +6,10 @@ export interface ComplexityConfiguration {
|
|
|
6
6
|
readonly interfacePenalty: number;
|
|
7
7
|
readonly performanceMode: boolean;
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
type MessageIds = "complexInterfaceNeedsCheck" | "missingIanitorCheckType";
|
|
10
|
+
type Options = [Partial<ComplexityConfiguration>];
|
|
11
|
+
declare const enforceIanitorCheckType: ESLintUtils.RuleModule<MessageIds, Options, unknown, ESLintUtils.RuleListener> & {
|
|
12
|
+
name: string;
|
|
13
|
+
};
|
|
14
|
+
export default enforceIanitorCheckType;
|
|
11
15
|
//# sourceMappingURL=enforce-ianitor-check-type.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enforce-ianitor-check-type.d.ts","sourceRoot":"","sources":["../../src/rules/enforce-ianitor-check-type.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"enforce-ianitor-check-type.d.ts","sourceRoot":"","sources":["../../src/rules/enforce-ianitor-check-type.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAEvD,MAAM,WAAW,uBAAuB;IACvC,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAC;IAClC,QAAQ,CAAC,eAAe,EAAE,OAAO,CAAC;CAClC;AAmJD,KAAK,UAAU,GAAG,4BAA4B,GAAG,yBAAyB,CAAC;AAC3E,KAAK,OAAO,GAAG,CAAC,OAAO,CAAC,uBAAuB,CAAC,CAAC,CAAC;AAMlD,QAAA,MAAM,uBAAuB;;CA+Q3B,CAAC;AAEH,eAAe,uBAAuB,CAAC"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import type { TSESLint } from "@typescript-eslint/utils";
|
|
2
2
|
type MessageIds = "awaitInConstructor" | "promiseChainInConstructor" | "asyncIifeInConstructor" | "unhandledAsyncCall" | "orphanedPromise";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export default noAsyncConstructor;
|
|
3
|
+
declare const _default: TSESLint.RuleModule<MessageIds, [], unknown, TSESLint.RuleListener> & {
|
|
4
|
+
name: string;
|
|
5
|
+
};
|
|
6
|
+
export default _default;
|
|
8
7
|
//# sourceMappingURL=no-async-constructor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"no-async-constructor.d.ts","sourceRoot":"","sources":["../../src/rules/no-async-constructor.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAY,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"no-async-constructor.d.ts","sourceRoot":"","sources":["../../src/rules/no-async-constructor.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAY,MAAM,0BAA0B,CAAC;AAInE,KAAK,UAAU,GACZ,oBAAoB,GACpB,2BAA2B,GAC3B,wBAAwB,GACxB,oBAAoB,GACpB,iBAAiB,CAAC;;;;AAqMrB,wBAgDG"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"onlyZeroArgs" | "useFromRGB", [], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
2
|
+
name: string;
|
|
3
|
+
};
|
|
4
|
+
export default _default;
|
|
4
5
|
//# sourceMappingURL=no-color3-constructor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"no-color3-constructor.d.ts","sourceRoot":"","sources":["../../src/rules/no-color3-constructor.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"no-color3-constructor.d.ts","sourceRoot":"","sources":["../../src/rules/no-color3-constructor.ts"],"names":[],"mappings":";;;AAqCA,wBAuDG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"no-god-components.d.ts","sourceRoot":"","sources":["../../src/rules/no-god-components.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAEnC,MAAM,WAAW,sBAAsB;IACtC,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,kBAAkB,CAAC,EAAE,OAAO,CAAC;IACtC,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,UAAU,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAC5C,QAAQ,CAAC,oBAAoB,CAAC,EAAE,MAAM,CAAC;IACvC,QAAQ,CAAC,gBAAgB,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;CAClD;AA8PD,QAAA,MAAM,eAAe,EAAE,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"no-god-components.d.ts","sourceRoot":"","sources":["../../src/rules/no-god-components.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAEnC,MAAM,WAAW,sBAAsB;IACtC,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,kBAAkB,CAAC,EAAE,OAAO,CAAC;IACtC,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,UAAU,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAC5C,QAAQ,CAAC,oBAAoB,CAAC,EAAE,MAAM,CAAC;IACvC,QAAQ,CAAC,gBAAgB,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;CAClD;AA8PD,QAAA,MAAM,eAAe,EAAE,IAAI,CAAC,UAsL3B,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -4,6 +4,8 @@ export interface NoIdentityMapOptions {
|
|
|
4
4
|
readonly bindingPatterns?: ReadonlyArray<string>;
|
|
5
5
|
}
|
|
6
6
|
type Options = [NoIdentityMapOptions?];
|
|
7
|
-
declare const
|
|
8
|
-
|
|
7
|
+
declare const _default: TSESLint.RuleModule<MessageIds, Options, unknown, TSESLint.RuleListener> & {
|
|
8
|
+
name: string;
|
|
9
|
+
};
|
|
10
|
+
export default _default;
|
|
9
11
|
//# sourceMappingURL=no-identity-map.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"no-identity-map.d.ts","sourceRoot":"","sources":["../../src/rules/no-identity-map.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAY,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"no-identity-map.d.ts","sourceRoot":"","sources":["../../src/rules/no-identity-map.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAY,MAAM,0BAA0B,CAAC;AAInE,KAAK,UAAU,GAAG,oBAAoB,GAAG,kBAAkB,CAAC;AAE5D,MAAM,WAAW,oBAAoB;IACpC,QAAQ,CAAC,eAAe,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;CACjD;AAED,KAAK,OAAO,GAAG,CAAC,oBAAoB,CAAC,CAAC,CAAC;;;;AA6HvC,wBA6DG"}
|
|
@@ -1,15 +1,10 @@
|
|
|
1
|
-
import type { TSESLint } from "@typescript-eslint/utils";
|
|
2
|
-
type MessageIds = "noInstanceMethodWithoutThis";
|
|
3
1
|
export interface NoInstanceMethodsOptions {
|
|
4
2
|
checkPrivate?: boolean;
|
|
5
3
|
checkProtected?: boolean;
|
|
6
4
|
checkPublic?: boolean;
|
|
7
5
|
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
NoInstanceMethodsOptions | undefined
|
|
13
|
-
], RuleDocsWithRecommended>;
|
|
14
|
-
export default noInstanceMethodsWithoutThis;
|
|
6
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"noInstanceMethodWithoutThis", [NoInstanceMethodsOptions | undefined], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
7
|
+
name: string;
|
|
8
|
+
};
|
|
9
|
+
export default _default;
|
|
15
10
|
//# sourceMappingURL=no-instance-methods-without-this.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"no-instance-methods-without-this.d.ts","sourceRoot":"","sources":["../../src/rules/no-instance-methods-without-this.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"no-instance-methods-without-this.d.ts","sourceRoot":"","sources":["../../src/rules/no-instance-methods-without-this.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,wBAAwB;IACxC,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,WAAW,CAAC,EAAE,OAAO,CAAC;CACtB;;;;AAsED,wBAwDG"}
|
package/dist/rules/no-print.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"useLog", [], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
2
|
+
name: string;
|
|
3
|
+
};
|
|
4
|
+
export default _default;
|
|
4
5
|
//# sourceMappingURL=no-print.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"no-print.d.ts","sourceRoot":"","sources":["../../src/rules/no-print.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"no-print.d.ts","sourceRoot":"","sources":["../../src/rules/no-print.ts"],"names":[],"mappings":";;;AAEA,wBAuBG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"no-shorthand-names.d.ts","sourceRoot":"","sources":["../../src/rules/no-shorthand-names.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAInC,MAAM,WAAW,kBAAkB;IAClC,QAAQ,CAAC,mBAAmB,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IACrD,QAAQ,CAAC,gBAAgB,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAClD,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC7C;AAwPD,QAAA,MAAM,gBAAgB,EAAE,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"no-shorthand-names.d.ts","sourceRoot":"","sources":["../../src/rules/no-shorthand-names.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAInC,MAAM,WAAW,kBAAkB;IAClC,QAAQ,CAAC,mBAAmB,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IACrD,QAAQ,CAAC,gBAAgB,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAClD,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC7C;AAwPD,QAAA,MAAM,gBAAgB,EAAE,IAAI,CAAC,UAiL5B,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { TSESLint } from "@typescript-eslint/utils";
|
|
2
|
-
type MessageIds = "uselessSpring";
|
|
3
2
|
export interface NoUselessUseSpringOptions {
|
|
4
3
|
readonly springHooks?: ReadonlyArray<string>;
|
|
5
4
|
readonly staticGlobalFactories?: ReadonlyArray<string>;
|
|
6
5
|
readonly treatEmptyDepsAsViolation?: boolean;
|
|
7
6
|
}
|
|
8
|
-
type Options = [NoUselessUseSpringOptions?];
|
|
9
7
|
export declare const DEFAULT_STATIC_GLOBAL_FACTORIES: ReadonlyArray<string>;
|
|
10
|
-
declare const
|
|
11
|
-
|
|
8
|
+
declare const _default: TSESLint.RuleModule<"uselessSpring", [Required<NoUselessUseSpringOptions>], unknown, TSESLint.RuleListener> & {
|
|
9
|
+
name: string;
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
12
12
|
//# sourceMappingURL=no-useless-use-spring.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"no-useless-use-spring.d.ts","sourceRoot":"","sources":["../../src/rules/no-useless-use-spring.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAY,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"no-useless-use-spring.d.ts","sourceRoot":"","sources":["../../src/rules/no-useless-use-spring.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAY,MAAM,0BAA0B,CAAC;AAMnE,MAAM,WAAW,yBAAyB;IACzC,QAAQ,CAAC,WAAW,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAC7C,QAAQ,CAAC,qBAAqB,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IACvD,QAAQ,CAAC,yBAAyB,CAAC,EAAE,OAAO,CAAC;CAC7C;AAUD,eAAO,MAAM,+BAA+B,EAAE,aAAa,CAAC,MAAM,CAyBjE,CAAC;;;;AA4YF,wBAyEG"}
|
package/dist/rules/no-warn.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"useLog", [], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
2
|
+
name: string;
|
|
3
|
+
};
|
|
4
|
+
export default _default;
|
|
4
5
|
//# sourceMappingURL=no-warn.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"no-warn.d.ts","sourceRoot":"","sources":["../../src/rules/no-warn.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"no-warn.d.ts","sourceRoot":"","sources":["../../src/rules/no-warn.ts"],"names":[],"mappings":";;;AAEA,wBAuBG"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import type { TSESLint } from "@typescript-eslint/utils";
|
|
2
1
|
type MessageIds = "unexpectedClassProperty" | "unexpectedAssignment";
|
|
3
2
|
type Options = ["always" | "never"];
|
|
4
|
-
declare const
|
|
5
|
-
|
|
3
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<MessageIds, Options, unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
4
|
+
name: string;
|
|
5
|
+
};
|
|
6
|
+
export default _default;
|
|
6
7
|
//# sourceMappingURL=prefer-class-properties.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prefer-class-properties.d.ts","sourceRoot":"","sources":["../../src/rules/prefer-class-properties.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"prefer-class-properties.d.ts","sourceRoot":"","sources":["../../src/rules/prefer-class-properties.ts"],"names":[],"mappings":"AAIA,KAAK,UAAU,GAAG,yBAAyB,GAAG,sBAAsB,CAAC;AACrE,KAAK,OAAO,GAAG,CAAC,QAAQ,GAAG,OAAO,CAAC,CAAC;;;;AA8DpC,wBAqEG"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { TSESLint } from "@typescript-eslint/utils";
|
|
2
|
-
type MessageIds = "preferEarlyReturn";
|
|
3
1
|
interface Options {
|
|
4
2
|
readonly maximumStatements?: number;
|
|
5
3
|
}
|
|
6
|
-
declare const
|
|
7
|
-
|
|
4
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"preferEarlyReturn", [Options?], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
5
|
+
name: string;
|
|
6
|
+
};
|
|
7
|
+
export default _default;
|
|
8
8
|
//# sourceMappingURL=prefer-early-return.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prefer-early-return.d.ts","sourceRoot":"","sources":["../../src/rules/prefer-early-return.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"prefer-early-return.d.ts","sourceRoot":"","sources":["../../src/rules/prefer-early-return.ts"],"names":[],"mappings":"AAQA,UAAU,OAAO;IAChB,QAAQ,CAAC,iBAAiB,CAAC,EAAE,MAAM,CAAC;CACpC;;;;AA0BD,wBAyCG"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { TSESLint } from "@typescript-eslint/utils";
|
|
2
2
|
type MessageIds = "mustUseConst" | "mustBeModuleScope";
|
|
3
|
-
declare const
|
|
4
|
-
|
|
3
|
+
declare const _default: TSESLint.RuleModule<MessageIds, [], unknown, TSESLint.RuleListener> & {
|
|
4
|
+
name: string;
|
|
5
|
+
};
|
|
6
|
+
export default _default;
|
|
5
7
|
//# sourceMappingURL=prefer-module-scope-constants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prefer-module-scope-constants.d.ts","sourceRoot":"","sources":["../../src/rules/prefer-module-scope-constants.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAY,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"prefer-module-scope-constants.d.ts","sourceRoot":"","sources":["../../src/rules/prefer-module-scope-constants.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAY,MAAM,0BAA0B,CAAC;AAInE,KAAK,UAAU,GAAG,cAAc,GAAG,mBAAmB,CAAC;;;;AAgBvD,wBAiDG"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export default
|
|
1
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"notPascalCase", [], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
2
|
+
name: string;
|
|
3
|
+
};
|
|
4
|
+
export default _default;
|
|
5
5
|
//# sourceMappingURL=prefer-pascal-case-enums.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prefer-pascal-case-enums.d.ts","sourceRoot":"","sources":["../../src/rules/prefer-pascal-case-enums.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"prefer-pascal-case-enums.d.ts","sourceRoot":"","sources":["../../src/rules/prefer-pascal-case-enums.ts"],"names":[],"mappings":";;;AAeA,wBAoCG"}
|
|
@@ -1,13 +1,8 @@
|
|
|
1
1
|
import type { TSESLint } from "@typescript-eslint/utils";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
interface RuleDocsWithRecommended extends TSESLint.RuleMetaDataDocs {
|
|
9
|
-
readonly recommended: boolean;
|
|
10
|
-
}
|
|
11
|
-
declare const preferPatternReplacements: TSESLint.RuleModuleWithMetaDocs<MessageIds, Options, RuleDocsWithRecommended>;
|
|
12
|
-
export default preferPatternReplacements;
|
|
2
|
+
declare const _default: TSESLint.RuleModule<"preferReplacement" | "skippedDueToConflict", [{
|
|
3
|
+
patterns: never[];
|
|
4
|
+
}], unknown, TSESLint.RuleListener> & {
|
|
5
|
+
name: string;
|
|
6
|
+
};
|
|
7
|
+
export default _default;
|
|
13
8
|
//# sourceMappingURL=prefer-pattern-replacements.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prefer-pattern-replacements.d.ts","sourceRoot":"","sources":["../../src/rules/prefer-pattern-replacements.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC
|
|
1
|
+
{"version":3,"file":"prefer-pattern-replacements.d.ts","sourceRoot":"","sources":["../../src/rules/prefer-pattern-replacements.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;;;;;;AA4BzD,wBA+GG"}
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
declare const preferSequenceOverloads: TSESLint.RuleModuleWithMetaDocs<"preferSingleOverload" | "preferTwoPointOverload", [
|
|
6
|
-
], RuleDocsWithRecommended>;
|
|
7
|
-
export default preferSequenceOverloads;
|
|
1
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"preferSingleOverload" | "preferTwoPointOverload", [], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
2
|
+
name: string;
|
|
3
|
+
};
|
|
4
|
+
export default _default;
|
|
8
5
|
//# sourceMappingURL=prefer-sequence-overloads.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prefer-sequence-overloads.d.ts","sourceRoot":"","sources":["../../src/rules/prefer-sequence-overloads.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"prefer-sequence-overloads.d.ts","sourceRoot":"","sources":["../../src/rules/prefer-sequence-overloads.ts"],"names":[],"mappings":";;;AAkEA,wBA0EG"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export default
|
|
1
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"notSingular", [], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
2
|
+
name: string;
|
|
3
|
+
};
|
|
4
|
+
export default _default;
|
|
5
5
|
//# sourceMappingURL=prefer-singular-enums.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prefer-singular-enums.d.ts","sourceRoot":"","sources":["../../src/rules/prefer-singular-enums.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"prefer-singular-enums.d.ts","sourceRoot":"","sources":["../../src/rules/prefer-singular-enums.ts"],"names":[],"mappings":";;;AAwIA,wBA2BG"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { TSESLint } from "@typescript-eslint/utils";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
declare const _default: TSESLint.RuleModule<"hooksStrictReturn", [], unknown, TSESLint.RuleListener> & {
|
|
3
|
+
name: string;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
5
6
|
//# sourceMappingURL=react-hooks-strict-return.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react-hooks-strict-return.d.ts","sourceRoot":"","sources":["../../src/rules/react-hooks-strict-return.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAY,MAAM,0BAA0B,CAAC
|
|
1
|
+
{"version":3,"file":"react-hooks-strict-return.d.ts","sourceRoot":"","sources":["../../src/rules/react-hooks-strict-return.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAY,MAAM,0BAA0B,CAAC;;;;AAiGnE,wBAiEG"}
|
|
@@ -7,9 +7,8 @@ export interface ReactKeysOptions {
|
|
|
7
7
|
}
|
|
8
8
|
type Options = [ReactKeysOptions?];
|
|
9
9
|
type MessageIds = "missingKey" | "rootComponentWithKey";
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export default requireReactComponentKeys;
|
|
10
|
+
declare const _default: TSESLint.RuleModule<MessageIds, Options, unknown, TSESLint.RuleListener> & {
|
|
11
|
+
name: string;
|
|
12
|
+
};
|
|
13
|
+
export default _default;
|
|
15
14
|
//# sourceMappingURL=require-react-component-keys.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"require-react-component-keys.d.ts","sourceRoot":"","sources":["../../src/rules/require-react-component-keys.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"require-react-component-keys.d.ts","sourceRoot":"","sources":["../../src/rules/require-react-component-keys.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAGzD,MAAM,WAAW,gBAAgB;IAChC,QAAQ,CAAC,aAAa,CAAC,EAAE,OAAO,CAAC;IACjC,QAAQ,CAAC,qBAAqB,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IACvD,QAAQ,CAAC,gBAAgB,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAClD,QAAQ,CAAC,gBAAgB,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;CAClD;AAED,KAAK,OAAO,GAAG,CAAC,gBAAgB,CAAC,CAAC,CAAC;AACnC,KAAK,UAAU,GAAG,YAAY,GAAG,sBAAsB,CAAC;;;;AAsYxD,wBAqHG"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type EnvironmentMode = "roblox-ts" | "standard";
|
|
2
|
+
export interface RequireReactDisplayNamesOptions {
|
|
3
|
+
readonly environment?: EnvironmentMode;
|
|
4
|
+
}
|
|
5
|
+
type Options = [RequireReactDisplayNamesOptions?];
|
|
6
|
+
type MessageIds = "directContextExport" | "directMemoExport" | "missingContextDisplayName" | "missingMemoDisplayName";
|
|
7
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<MessageIds, Options, unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
8
|
+
name: string;
|
|
9
|
+
};
|
|
10
|
+
export default _default;
|
|
11
|
+
//# sourceMappingURL=require-react-display-names.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"require-react-display-names.d.ts","sourceRoot":"","sources":["../../src/rules/require-react-display-names.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,eAAe,GAAG,WAAW,GAAG,UAAU,CAAC;AAEvD,MAAM,WAAW,+BAA+B;IAC/C,QAAQ,CAAC,WAAW,CAAC,EAAE,eAAe,CAAC;CACvC;AAED,KAAK,OAAO,GAAG,CAAC,+BAA+B,CAAC,CAAC,CAAC;AAClD,KAAK,UAAU,GAAG,qBAAqB,GAAG,kBAAkB,GAAG,2BAA2B,GAAG,wBAAwB,CAAC;;;;AAqFtH,wBA8LG"}
|
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
readonly maxDepth?: number;
|
|
6
|
-
}
|
|
7
|
-
declare const strictComponentBoundaries: TSESLint.RuleModuleWithMetaDocs<MessageIds, [Options?]>;
|
|
8
|
-
export default strictComponentBoundaries;
|
|
1
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"noReachingIntoComponent", [{}], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
2
|
+
name: string;
|
|
3
|
+
};
|
|
4
|
+
export default _default;
|
|
9
5
|
//# sourceMappingURL=strict-component-boundaries.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"strict-component-boundaries.d.ts","sourceRoot":"","sources":["../../src/rules/strict-component-boundaries.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"strict-component-boundaries.d.ts","sourceRoot":"","sources":["../../src/rules/strict-component-boundaries.ts"],"names":[],"mappings":";;;AAuCA,wBA+EG"}
|
|
@@ -7,6 +7,7 @@ import type { NoUselessUseSpringOptions } from "../rules/no-useless-use-spring";
|
|
|
7
7
|
import type { EffectFunctionOptions, HookConfiguration } from "../rules/require-named-effect-functions";
|
|
8
8
|
import type { PairConfiguration, RequirePairedCallsOptions } from "../rules/require-paired-calls";
|
|
9
9
|
import type { ReactKeysOptions } from "../rules/require-react-component-keys";
|
|
10
|
+
import type { RequireReactDisplayNamesOptions } from "../rules/require-react-display-names";
|
|
10
11
|
import type { UseExhaustiveDependenciesOptions } from "../rules/use-exhaustive-dependencies";
|
|
11
12
|
import type { UseHookAtTopLevelOptions } from "../rules/use-hook-at-top-level";
|
|
12
13
|
import type { Pattern, PreferPatternReplacementsOptions } from "./pattern-replacement";
|
|
@@ -101,4 +102,10 @@ export declare function createNoUselessUseSpringOptions(options?: Partial<NoUsel
|
|
|
101
102
|
* @returns The full options
|
|
102
103
|
*/
|
|
103
104
|
export declare function createPreferPatternReplacementsOptions(patterns?: ReadonlyArray<Pattern>): PreferPatternReplacementsOptions;
|
|
105
|
+
/**
|
|
106
|
+
* Creates options for require-react-display-names rule
|
|
107
|
+
* @param options - Partial configuration options
|
|
108
|
+
* @returns The full options
|
|
109
|
+
*/
|
|
110
|
+
export declare function createRequireReactDisplayNamesOptions(options?: Partial<RequireReactDisplayNamesOptions>): RequireReactDisplayNamesOptions;
|
|
104
111
|
//# sourceMappingURL=configure-utilities.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configure-utilities.d.ts","sourceRoot":"","sources":["../../src/utilities/configure-utilities.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AACnF,OAAO,K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;AACH,wBAAgB,wBAAwB,CAAC,OAAO,GAAE,OAAO,CAAC,kBAAkB,CAAM,GAAG,kBAAkB,CAEtG;AAED;;;;GAIG;AACH,wBAAgB,2BAA2B,CAAC,OAAO,GAAE,OAAO,CAAC,qBAAqB,CAAM,GAAG,qBAAqB,CAE/G;AAED;;;;;GAKG;AACH,wBAAgB,uBAAuB,CACtC,IAAI,EAAE,MAAM,EACZ,OAAO,GAAE,OAAO,CAAC,IAAI,CAAC,iBAAiB,EAAE,MAAM,CAAC,CAAM,GACpD,iBAAiB,CAEnB;AAED;;;;GAIG;AACH,wBAAgB,+BAA+B,CAC9C,OAAO,GAAE,OAAO,CAAC,yBAAyB,CAAM,GAC9C,yBAAyB,CAQ3B;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,GAAE,OAAO,CAAC,gBAAgB,CAAM,GAAG,gBAAgB,CAQhG;AAED;;;;GAIG;AACH,wBAAgB,4BAA4B,CAAC,OAAO,GAAE,OAAO,CAAC,sBAAsB,CAAM,GAAG,sBAAsB,CAYlH;AAED;;;;GAIG;AACH,wBAAgB,sCAAsC,CACrD,OAAO,GAAE,OAAO,CAAC,gCAAgC,CAAM,GACrD,gCAAgC,CAOlC;AAED;;;;GAIG;AACH,wBAAgB,8BAA8B,CAC7C,OAAO,GAAE,OAAO,CAAC,wBAAwB,CAAM,GAC7C,wBAAwB,CAO1B;AAED;;;;GAIG;AACH,wBAAgB,+BAA+B,CAC9C,OAAO,GAAE,OAAO,CAAC,yBAAyB,CAAM,GAC9C,yBAAyB,CAO3B;AAED;;;;GAIG;AACH,wBAAgB,sCAAsC,CACrD,QAAQ,GAAE,aAAa,CAAC,OAAO,CAAM,GACnC,gCAAgC,CAElC"}
|
|
1
|
+
{"version":3,"file":"configure-utilities.d.ts","sourceRoot":"","sources":["../../src/utilities/configure-utilities.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAA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pD,OAAO,GAAE,OAAO,CAAC,+BAA+B,CAAM,GACpD,+BAA+B,CAEjC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ESLintUtils } from "@typescript-eslint/utils";
|
|
2
|
+
/**
|
|
3
|
+
* Creates an ESLint rule with automatic documentation URL generation.
|
|
4
|
+
* URLs point to: https://github.com/howmanysmall/eslint-cease-nonsense-rules/blob/main/docs/rules/{rule-name}.md
|
|
5
|
+
*/
|
|
6
|
+
export declare const createRule: <Options extends readonly unknown[], MessageIds extends string>({ meta, name, ...rule }: Readonly<ESLintUtils.RuleWithMetaAndName<Options, MessageIds, unknown>>) => ESLintUtils.RuleModule<MessageIds, Options, unknown, ESLintUtils.RuleListener> & {
|
|
7
|
+
name: string;
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=create-rule.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-rule.d.ts","sourceRoot":"","sources":["../../src/utilities/create-rule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAEvD;;;GAGG;AACH,eAAO,MAAM,UAAU;;CAEtB,CAAC"}
|
package/package.json
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
"dependencies": {
|
|
4
4
|
"arkregex": "^0.0.5",
|
|
5
5
|
"fast-diff": "^1.3.0",
|
|
6
|
-
"oxc-parser": "^0.
|
|
7
|
-
"oxc-resolver": "^11.16.
|
|
8
|
-
"typebox": "^1.0.
|
|
6
|
+
"oxc-parser": "^0.106.0",
|
|
7
|
+
"oxc-resolver": "^11.16.2",
|
|
8
|
+
"typebox": "^1.0.71"
|
|
9
9
|
},
|
|
10
10
|
"description": "A bunch of lints to prevent idiot mistakes I encounter with frequency.",
|
|
11
11
|
"devDependencies": {
|
|
@@ -13,29 +13,29 @@
|
|
|
13
13
|
"@jsr/cliffy__command": "^1.0.0-rc.8",
|
|
14
14
|
"@mitata/counters": "^0.0.8",
|
|
15
15
|
"@octokit/rest": "^22.0.1",
|
|
16
|
-
"@opencode-ai/plugin": "^1.0.
|
|
16
|
+
"@opencode-ai/plugin": "^1.0.221",
|
|
17
17
|
"@toon-format/toon": "^2.1.0",
|
|
18
18
|
"@total-typescript/ts-reset": "^0.6.1",
|
|
19
19
|
"@types/bun": "^1.3.5",
|
|
20
20
|
"@types/estree": "^1.0.8",
|
|
21
21
|
"@types/node": "^20.14.11",
|
|
22
|
-
"@typescript-eslint/parser": "^8.
|
|
23
|
-
"@typescript-eslint/scope-manager": "^8.
|
|
24
|
-
"@typescript-eslint/types": "^8.
|
|
25
|
-
"@typescript-eslint/utils": "^8.
|
|
26
|
-
"@typescript/native-preview": "7.0.0-dev.
|
|
27
|
-
"arkenv": "^0.
|
|
22
|
+
"@typescript-eslint/parser": "^8.51.0",
|
|
23
|
+
"@typescript-eslint/scope-manager": "^8.51.0",
|
|
24
|
+
"@typescript-eslint/types": "^8.51.0",
|
|
25
|
+
"@typescript-eslint/utils": "^8.51.0",
|
|
26
|
+
"@typescript/native-preview": "7.0.0-dev.20251231.1",
|
|
27
|
+
"arkenv": "^0.8.1",
|
|
28
28
|
"arktype": "^2.1.29",
|
|
29
29
|
"bumpp": "^10.3.2",
|
|
30
30
|
"confbox": "^0.2.2",
|
|
31
31
|
"consola": "^3.4.2",
|
|
32
32
|
"eslint": "9.39.2",
|
|
33
33
|
"fast-xml-parser": "^5.3.2",
|
|
34
|
-
"knip": "^5.
|
|
34
|
+
"knip": "^5.78.0",
|
|
35
35
|
"lint-staged": "^16.2.7",
|
|
36
36
|
"mitata": "^1.0.34",
|
|
37
|
-
"oxfmt": "^0.
|
|
38
|
-
"oxlint": "^1.
|
|
37
|
+
"oxfmt": "^0.21.0",
|
|
38
|
+
"oxlint": "^1.36.0",
|
|
39
39
|
"oxlint-tsgolint": "^0.10.0",
|
|
40
40
|
"picocolors": "^1.1.1",
|
|
41
41
|
"pretty-bytes": "^7.1.0",
|
|
@@ -59,14 +59,14 @@
|
|
|
59
59
|
"files": ["dist"],
|
|
60
60
|
"license": "MIT",
|
|
61
61
|
"lint-staged": {
|
|
62
|
-
"*": ["bun run lint:fix"]
|
|
62
|
+
"*": ["bun run lint:fix", "bun x --bun biome check . --fix"]
|
|
63
63
|
},
|
|
64
64
|
"main": "./dist/index.js",
|
|
65
65
|
"name": "@pobammer-ts/eslint-cease-nonsense-rules",
|
|
66
66
|
"packageManager": "bun@1.3.5",
|
|
67
67
|
"peerDependencies": {
|
|
68
|
-
"@typescript-eslint/parser": "^8.
|
|
69
|
-
"@typescript-eslint/utils": "^8.
|
|
68
|
+
"@typescript-eslint/parser": "^8.51.0",
|
|
69
|
+
"@typescript-eslint/utils": "^8.51.0",
|
|
70
70
|
"eslint": "^9.39.2",
|
|
71
71
|
"oxfmt": ">0.19.0"
|
|
72
72
|
},
|
|
@@ -105,5 +105,5 @@
|
|
|
105
105
|
},
|
|
106
106
|
"type": "module",
|
|
107
107
|
"types": "./dist/index.d.ts",
|
|
108
|
-
"version": "1.
|
|
108
|
+
"version": "1.13.0"
|
|
109
109
|
}
|