@pobammer-ts/eslint-cease-nonsense-rules 1.15.0 → 1.17.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +245 -1
- package/dist/build-metadata.json +3 -3
- package/dist/index.d.ts +8 -1
- package/dist/index.js +7357 -4091
- package/dist/rules/misleading-lua-tuple-checks.d.ts +6 -0
- package/dist/rules/naming-convention.d.ts +9 -0
- package/dist/rules/no-unused-imports.d.ts +9 -0
- package/dist/rules/prefer-read-only-props.d.ts +6 -0
- package/dist/rules/prevent-abbreviations.d.ts +21 -0
- package/dist/rules/require-module-level-instantiation.d.ts +25 -0
- package/dist/rules/use-exhaustive-dependencies.d.ts +6 -2
- package/dist/utilities/configure-utilities.d.ts +28 -0
- package/dist/utilities/naming-convention-utilities/enums.d.ts +86 -0
- package/dist/utilities/naming-convention-utilities/format.d.ts +1 -0
- package/dist/utilities/naming-convention-utilities/get-enum-names.d.ts +1 -0
- package/dist/utilities/naming-convention-utilities/index.d.ts +5 -0
- package/dist/utilities/naming-convention-utilities/parse-options.d.ts +2 -0
- package/dist/utilities/naming-convention-utilities/schema.d.ts +2 -0
- package/dist/utilities/naming-convention-utilities/shared.d.ts +4 -0
- package/dist/utilities/naming-convention-utilities/types.d.ts +40 -0
- package/dist/utilities/naming-convention-utilities/validator.d.ts +3 -0
- package/dist/utilities/pattern-replacement/pattern-types.d.ts +1 -3
- package/package.json +44 -29
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { TSESLint } from "@typescript-eslint/utils";
|
|
2
|
+
type MessageIds = "misleadingLuaTupleCheck" | "luaTupleDeclaration";
|
|
3
|
+
declare const _default: TSESLint.RuleModule<MessageIds, [], unknown, TSESLint.RuleListener> & {
|
|
4
|
+
name: string;
|
|
5
|
+
};
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { TSESLint } from "@typescript-eslint/utils";
|
|
2
|
+
import type { Selector } from "../utilities/naming-convention-utilities";
|
|
3
|
+
export type MessageIds = "doesNotMatchFormat" | "doesNotMatchFormatTrimmed" | "missingAffix" | "missingUnderscore" | "satisfyCustom" | "unexpectedUnderscore";
|
|
4
|
+
export type NamingConventionOptions = Selector;
|
|
5
|
+
export type Options = Array<NamingConventionOptions>;
|
|
6
|
+
declare const _default: TSESLint.RuleModule<MessageIds, Options, unknown, TSESLint.RuleListener> & {
|
|
7
|
+
name: string;
|
|
8
|
+
};
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { TSESLint } from "@typescript-eslint/utils";
|
|
2
|
+
export interface NoUnusedImportsOptions {
|
|
3
|
+
readonly checkJSDoc?: boolean;
|
|
4
|
+
}
|
|
5
|
+
type Options = [NoUnusedImportsOptions?];
|
|
6
|
+
declare const _default: TSESLint.RuleModule<"unusedImport", Options, unknown, TSESLint.RuleListener> & {
|
|
7
|
+
name: string;
|
|
8
|
+
};
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ESLintUtils } from "@typescript-eslint/utils";
|
|
2
|
+
type MessageIds = "preferReadOnlyProps" | "readOnlyProp";
|
|
3
|
+
declare const preferReadOnlyPropsRule: ESLintUtils.RuleModule<MessageIds, [], unknown, ESLintUtils.RuleListener> & {
|
|
4
|
+
name: string;
|
|
5
|
+
};
|
|
6
|
+
export default preferReadOnlyPropsRule;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { TSESLint } from "@typescript-eslint/utils";
|
|
2
|
+
type MessageIds = "replace" | "suggestion";
|
|
3
|
+
type ImportCheckOption = boolean | "internal";
|
|
4
|
+
export interface PreventAbbreviationsOptions {
|
|
5
|
+
readonly checkProperties?: boolean;
|
|
6
|
+
readonly checkVariables?: boolean;
|
|
7
|
+
readonly checkDefaultAndNamespaceImports?: ImportCheckOption;
|
|
8
|
+
readonly checkShorthandImports?: ImportCheckOption;
|
|
9
|
+
readonly checkShorthandProperties?: boolean;
|
|
10
|
+
readonly checkFilenames?: boolean;
|
|
11
|
+
readonly extendDefaultReplacements?: boolean;
|
|
12
|
+
readonly replacements?: Record<string, Record<string, boolean> | false>;
|
|
13
|
+
readonly extendDefaultAllowList?: boolean;
|
|
14
|
+
readonly allowList?: Record<string, boolean>;
|
|
15
|
+
readonly ignore?: ReadonlyArray<string | RegExp>;
|
|
16
|
+
}
|
|
17
|
+
type Options = [PreventAbbreviationsOptions?];
|
|
18
|
+
declare const _default: TSESLint.RuleModule<MessageIds, Options, unknown, TSESLint.RuleListener> & {
|
|
19
|
+
name: string;
|
|
20
|
+
};
|
|
21
|
+
export default _default;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { TSESLint } from "@typescript-eslint/utils";
|
|
2
|
+
import type { ReadonlyRecord } from "../types/utility-types";
|
|
3
|
+
/**
|
|
4
|
+
* Configuration for classes that must be instantiated at module level.
|
|
5
|
+
*
|
|
6
|
+
* Maps class names to their expected import sources.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```typescript
|
|
10
|
+
* {
|
|
11
|
+
* classes: {
|
|
12
|
+
* "Log": "@rbxts/rbxts-sleitnick-log",
|
|
13
|
+
* "Server": "@rbxts/net"
|
|
14
|
+
* }
|
|
15
|
+
* }
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
export interface RequireModuleLevelInstantiationOptions {
|
|
19
|
+
readonly classes: ReadonlyRecord<string, string>;
|
|
20
|
+
}
|
|
21
|
+
type Options = [RequireModuleLevelInstantiationOptions?];
|
|
22
|
+
declare const _default: TSESLint.RuleModule<"mustBeModuleLevel", Options, unknown, TSESLint.RuleListener> & {
|
|
23
|
+
name: string;
|
|
24
|
+
};
|
|
25
|
+
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { TSESLint } from "@typescript-eslint/utils";
|
|
2
2
|
export interface HookEntry {
|
|
3
3
|
readonly name: string;
|
|
4
4
|
readonly closureIndex?: number;
|
|
@@ -10,5 +10,9 @@ export interface UseExhaustiveDependenciesOptions {
|
|
|
10
10
|
readonly reportMissingDependenciesArray?: boolean;
|
|
11
11
|
readonly reportUnnecessaryDependencies?: boolean;
|
|
12
12
|
}
|
|
13
|
-
|
|
13
|
+
type MessageIds = "missingDependencies" | "missingDependenciesArray" | "missingDependency" | "unnecessaryDependency" | "unstableDependency" | "addDependenciesArraySuggestion" | "removeDependencySuggestion" | "addDependencySuggestion" | "addMissingDependenciesSuggestion";
|
|
14
|
+
type Options = [UseExhaustiveDependenciesOptions?];
|
|
15
|
+
declare const useExhaustiveDependencies: TSESLint.RuleModule<MessageIds, Options, unknown, TSESLint.RuleListener> & {
|
|
16
|
+
name: string;
|
|
17
|
+
};
|
|
14
18
|
export default useExhaustiveDependencies;
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import type { BanInstancesOptions } from "../rules/ban-instances";
|
|
2
2
|
import type { ComplexityConfiguration } from "../rules/enforce-ianitor-check-type";
|
|
3
|
+
import type { NamingConventionOptions } from "../rules/naming-convention";
|
|
3
4
|
import type { NoGodComponentsOptions } from "../rules/no-god-components";
|
|
4
5
|
import type { NoInstanceMethodsOptions } from "../rules/no-instance-methods-without-this";
|
|
5
6
|
import type { NoMemoChildrenOptions } from "../rules/no-memo-children";
|
|
6
7
|
import type { NoShorthandOptions } from "../rules/no-shorthand-names";
|
|
8
|
+
import type { NoUnusedImportsOptions } from "../rules/no-unused-imports";
|
|
7
9
|
import type { NoUselessUseSpringOptions } from "../rules/no-useless-use-spring";
|
|
8
10
|
import type { PreferEnumItemOptions } from "../rules/prefer-enum-item";
|
|
11
|
+
import type { PreventAbbreviationsOptions } from "../rules/prevent-abbreviations";
|
|
12
|
+
import type { RequireModuleLevelInstantiationOptions } from "../rules/require-module-level-instantiation";
|
|
9
13
|
import type { EffectFunctionOptions, HookConfiguration } from "../rules/require-named-effect-functions";
|
|
10
14
|
import type { PairConfiguration, RequirePairedCallsOptions } from "../rules/require-paired-calls";
|
|
11
15
|
import type { ReactKeysOptions } from "../rules/require-react-component-keys";
|
|
@@ -122,3 +126,27 @@ export declare function createPreferEnumItemOptions(options?: Partial<PreferEnum
|
|
|
122
126
|
* @returns The full options
|
|
123
127
|
*/
|
|
124
128
|
export declare function createRequireReactDisplayNamesOptions(options?: Partial<RequireReactDisplayNamesOptions>): RequireReactDisplayNamesOptions;
|
|
129
|
+
/**
|
|
130
|
+
* Creates options for require-module-level-instantiation rule
|
|
131
|
+
* @param options - Partial configuration options
|
|
132
|
+
* @returns The full options
|
|
133
|
+
*/
|
|
134
|
+
export declare function createRequireModuleLevelInstantiationOptions(options?: Partial<RequireModuleLevelInstantiationOptions>): RequireModuleLevelInstantiationOptions;
|
|
135
|
+
/**
|
|
136
|
+
* Creates options for naming-convention rule
|
|
137
|
+
* @param options - Partial configuration options
|
|
138
|
+
* @returns The full options
|
|
139
|
+
*/
|
|
140
|
+
export declare function createNamingConventionOptions(options?: Partial<NamingConventionOptions>): NamingConventionOptions;
|
|
141
|
+
/**
|
|
142
|
+
* Creates options for no-unused-imports rule
|
|
143
|
+
* @param options - Partial configuration options
|
|
144
|
+
* @returns The full options
|
|
145
|
+
*/
|
|
146
|
+
export declare function createNoUnusedImportsOptions(options?: Partial<NoUnusedImportsOptions>): NoUnusedImportsOptions;
|
|
147
|
+
/**
|
|
148
|
+
* Creates options for prevent-abbreviations rule
|
|
149
|
+
* @param options - Partial configuration options
|
|
150
|
+
* @returns The full options
|
|
151
|
+
*/
|
|
152
|
+
export declare function createPreventAbbreviationsOptions(options?: Partial<PreventAbbreviationsOptions>): PreventAbbreviationsOptions;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
export declare const PredefinedFormats: {
|
|
2
|
+
camelCase: string;
|
|
3
|
+
PascalCase: string;
|
|
4
|
+
StrictPascalCase: string;
|
|
5
|
+
snake_case: string;
|
|
6
|
+
strictCamelCase: string;
|
|
7
|
+
UPPER_CASE: string;
|
|
8
|
+
};
|
|
9
|
+
export type PredefinedFormatsString = keyof typeof PredefinedFormats;
|
|
10
|
+
export type PredefinedFormats = (typeof PredefinedFormats)[PredefinedFormatsString];
|
|
11
|
+
export declare const UnderscoreOptions: {
|
|
12
|
+
allow: string;
|
|
13
|
+
allowDouble: string;
|
|
14
|
+
allowSingleOrDouble: string;
|
|
15
|
+
forbid: string;
|
|
16
|
+
require: string;
|
|
17
|
+
requireDouble: string;
|
|
18
|
+
};
|
|
19
|
+
export type UnderscoreOptionsString = keyof typeof UnderscoreOptions;
|
|
20
|
+
export type UnderscoreOptions = (typeof UnderscoreOptions)[UnderscoreOptionsString];
|
|
21
|
+
export declare const Selectors: {
|
|
22
|
+
autoAccessor: string;
|
|
23
|
+
class: string;
|
|
24
|
+
classicAccessor: string;
|
|
25
|
+
classMethod: string;
|
|
26
|
+
classProperty: string;
|
|
27
|
+
enum: string;
|
|
28
|
+
enumMember: string;
|
|
29
|
+
function: string;
|
|
30
|
+
import: string;
|
|
31
|
+
interface: string;
|
|
32
|
+
objectLiteralMethod: string;
|
|
33
|
+
objectLiteralProperty: string;
|
|
34
|
+
parameter: string;
|
|
35
|
+
parameterProperty: string;
|
|
36
|
+
typeAlias: string;
|
|
37
|
+
typeMethod: string;
|
|
38
|
+
typeParameter: string;
|
|
39
|
+
typeProperty: string;
|
|
40
|
+
variable: string;
|
|
41
|
+
};
|
|
42
|
+
export type SelectorsString = keyof typeof Selectors;
|
|
43
|
+
export type Selectors = (typeof Selectors)[SelectorsString];
|
|
44
|
+
export declare const MetaSelectors: {
|
|
45
|
+
accessor: string;
|
|
46
|
+
default: string;
|
|
47
|
+
memberLike: string;
|
|
48
|
+
method: string;
|
|
49
|
+
property: string;
|
|
50
|
+
typeLike: string;
|
|
51
|
+
variableLike: string;
|
|
52
|
+
};
|
|
53
|
+
export type MetaSelectorsString = keyof typeof MetaSelectors;
|
|
54
|
+
export type IndividualAndMetaSelectorsString = MetaSelectorsString | SelectorsString;
|
|
55
|
+
export declare const Modifiers: {
|
|
56
|
+
"#private": string;
|
|
57
|
+
abstract: string;
|
|
58
|
+
async: string;
|
|
59
|
+
const: string;
|
|
60
|
+
default: string;
|
|
61
|
+
destructured: string;
|
|
62
|
+
exported: string;
|
|
63
|
+
global: string;
|
|
64
|
+
namespace: string;
|
|
65
|
+
override: string;
|
|
66
|
+
private: string;
|
|
67
|
+
protected: string;
|
|
68
|
+
public: string;
|
|
69
|
+
readonly: string;
|
|
70
|
+
requiresQuotes: string;
|
|
71
|
+
static: string;
|
|
72
|
+
unused: string;
|
|
73
|
+
};
|
|
74
|
+
export type ModifiersString = keyof typeof Modifiers;
|
|
75
|
+
export type Modifiers = (typeof Modifiers)[ModifiersString];
|
|
76
|
+
export declare const TypeModifiers: {
|
|
77
|
+
array: string;
|
|
78
|
+
boolean: string;
|
|
79
|
+
function: string;
|
|
80
|
+
number: string;
|
|
81
|
+
string: string;
|
|
82
|
+
};
|
|
83
|
+
export type TypeModifiersString = keyof typeof TypeModifiers;
|
|
84
|
+
export type TypeModifiers = (typeof TypeModifiers)[TypeModifiersString];
|
|
85
|
+
export declare const ModifierWeights: Record<ModifiersString, number>;
|
|
86
|
+
export declare const TypeModifierWeights: Record<TypeModifiersString, number>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PredefinedFormatToCheckFunction: Record<string, (name: string) => boolean>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getEnumNames<EnumRecord extends Record<string, string>>(enumObject: EnumRecord): Array<keyof EnumRecord>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { IndividualAndMetaSelectorsString, MetaSelectorsString } from "./enums";
|
|
2
|
+
export declare function selectorTypeToMessageString(selectorType: string): string;
|
|
3
|
+
export declare function isMetaSelector(selector: IndividualAndMetaSelectorsString): selector is MetaSelectorsString;
|
|
4
|
+
export declare function isMethodOrPropertySelector(selector: IndividualAndMetaSelectorsString): boolean;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { TSESLint, TSESTree } from "@typescript-eslint/utils";
|
|
2
|
+
import type { MessageIds, Options } from "../../rules/naming-convention";
|
|
3
|
+
import type { IndividualAndMetaSelectorsString, ModifiersString, PredefinedFormatsString, TypeModifiersString, UnderscoreOptionsString } from "./enums";
|
|
4
|
+
export interface MatchRegex {
|
|
5
|
+
match: boolean;
|
|
6
|
+
regex: string;
|
|
7
|
+
}
|
|
8
|
+
export interface Selector {
|
|
9
|
+
custom?: MatchRegex;
|
|
10
|
+
filter?: string | MatchRegex;
|
|
11
|
+
format?: Array<PredefinedFormatsString> | undefined;
|
|
12
|
+
leadingUnderscore?: UnderscoreOptionsString;
|
|
13
|
+
modifiers?: Array<ModifiersString>;
|
|
14
|
+
prefix?: Array<string>;
|
|
15
|
+
selector: IndividualAndMetaSelectorsString | Array<IndividualAndMetaSelectorsString>;
|
|
16
|
+
suffix?: Array<string>;
|
|
17
|
+
trailingUnderscore?: UnderscoreOptionsString;
|
|
18
|
+
types?: Array<TypeModifiersString>;
|
|
19
|
+
}
|
|
20
|
+
export interface NormalizedMatchRegex {
|
|
21
|
+
match: boolean;
|
|
22
|
+
regex: RegExp;
|
|
23
|
+
}
|
|
24
|
+
export interface NormalizedSelector {
|
|
25
|
+
custom?: NormalizedMatchRegex | undefined;
|
|
26
|
+
filter?: NormalizedMatchRegex | undefined;
|
|
27
|
+
format?: Array<PredefinedFormatsString> | undefined;
|
|
28
|
+
leadingUnderscore?: UnderscoreOptionsString | undefined;
|
|
29
|
+
modifiers?: Array<ModifiersString> | undefined;
|
|
30
|
+
modifierWeight: number;
|
|
31
|
+
prefix?: Array<string> | undefined;
|
|
32
|
+
selectors: Array<string>;
|
|
33
|
+
selectorPriority: number;
|
|
34
|
+
suffix?: Array<string> | undefined;
|
|
35
|
+
trailingUnderscore?: UnderscoreOptionsString | undefined;
|
|
36
|
+
types?: Array<TypeModifiersString> | undefined;
|
|
37
|
+
}
|
|
38
|
+
export type ValidatorFunction = (node: TSESTree.Identifier | TSESTree.Literal | TSESTree.PrivateIdentifier, modifiers?: Set<string>) => void;
|
|
39
|
+
export type ParsedOptions = Record<string, ValidatorFunction>;
|
|
40
|
+
export type Context = Readonly<TSESLint.RuleContext<MessageIds, Options>>;
|
|
@@ -13,9 +13,7 @@ export interface Pattern<Match extends string = string> {
|
|
|
13
13
|
readonly [PatternBrand]: Match;
|
|
14
14
|
readonly match: Match;
|
|
15
15
|
readonly replacement: string;
|
|
16
|
-
readonly when?:
|
|
17
|
-
readonly [Key in ExtractCaptures<Match>]?: WhenCondition;
|
|
18
|
-
};
|
|
16
|
+
readonly when?: Readonly<Partial<Record<ExtractCaptures<Match>, WhenCondition>>>;
|
|
19
17
|
}
|
|
20
18
|
export declare function pattern<const Match extends string, const WhenClause extends object = object>(configuration: {
|
|
21
19
|
readonly match: Match;
|
package/package.json
CHANGED
|
@@ -3,30 +3,38 @@
|
|
|
3
3
|
"dependencies": {
|
|
4
4
|
"arkregex": "^0.0.5",
|
|
5
5
|
"fast-diff": "^1.3.0",
|
|
6
|
-
"oxc-parser": "^0.
|
|
6
|
+
"oxc-parser": "^0.108.0",
|
|
7
7
|
"oxc-resolver": "^11.16.2",
|
|
8
8
|
"typebox": "^1.0.76"
|
|
9
9
|
},
|
|
10
10
|
"description": "A bunch of lints to prevent idiot mistakes I encounter with frequency.",
|
|
11
11
|
"devDependencies": {
|
|
12
|
+
"@babel/core": "^7.28.6",
|
|
13
|
+
"@babel/eslint-parser": "^7.28.6",
|
|
12
14
|
"@biomejs/biome": "^2.3.11",
|
|
15
|
+
"@commitlint/config-conventional": "^20.3.1",
|
|
16
|
+
"@commitlint/types": "^20.3.1",
|
|
13
17
|
"@jsr/cliffy__command": "^1.0.0-rc.8",
|
|
14
18
|
"@mitata/counters": "^0.0.8",
|
|
15
19
|
"@octokit/rest": "^22.0.1",
|
|
16
|
-
"@opencode-ai/plugin": "^1.1.
|
|
20
|
+
"@opencode-ai/plugin": "^1.1.18",
|
|
21
|
+
"@rbxts/types": "^1.0.896",
|
|
17
22
|
"@toon-format/toon": "^2.1.0",
|
|
18
23
|
"@total-typescript/ts-reset": "^0.6.1",
|
|
19
|
-
"@types/bun": "^1.3.
|
|
24
|
+
"@types/bun": "^1.3.6",
|
|
20
25
|
"@types/estree": "^1.0.8",
|
|
21
26
|
"@types/node": "^20.14.11",
|
|
22
|
-
"@typescript-eslint/parser": "^8.
|
|
23
|
-
"@typescript-eslint/
|
|
24
|
-
"@typescript-eslint/
|
|
25
|
-
"@typescript-eslint/
|
|
26
|
-
"@typescript/
|
|
27
|
+
"@typescript-eslint/parser": "^8.53.0",
|
|
28
|
+
"@typescript-eslint/rule-tester": "^8.53.0",
|
|
29
|
+
"@typescript-eslint/scope-manager": "^8.53.0",
|
|
30
|
+
"@typescript-eslint/types": "^8.53.0",
|
|
31
|
+
"@typescript-eslint/utils": "^8.53.0",
|
|
32
|
+
"@typescript/native-preview": "7.0.0-dev.20260113.1",
|
|
27
33
|
"arkenv": "^0.8.3",
|
|
28
34
|
"arktype": "^2.1.29",
|
|
29
|
-
"
|
|
35
|
+
"better-result": "^2.1.0",
|
|
36
|
+
"bumpp": "^10.4.0",
|
|
37
|
+
"commitlint": "^20.3.1",
|
|
30
38
|
"confbox": "^0.2.2",
|
|
31
39
|
"consola": "^3.4.2",
|
|
32
40
|
"eslint": "9.39.2",
|
|
@@ -34,9 +42,9 @@
|
|
|
34
42
|
"knip": "^5.80.2",
|
|
35
43
|
"lint-staged": "^16.2.7",
|
|
36
44
|
"mitata": "^1.0.34",
|
|
37
|
-
"oxfmt": "^0.
|
|
38
|
-
"oxlint": "^1.
|
|
39
|
-
"oxlint-tsgolint": "^0.11.
|
|
45
|
+
"oxfmt": "^0.24.0",
|
|
46
|
+
"oxlint": "^1.39.0",
|
|
47
|
+
"oxlint-tsgolint": "^0.11.1",
|
|
40
48
|
"picocolors": "^1.1.1",
|
|
41
49
|
"pretty-bytes": "^7.1.0",
|
|
42
50
|
"pretty-ms": "^9.3.0",
|
|
@@ -45,8 +53,9 @@
|
|
|
45
53
|
"temporal-polyfill": "^0.3.0",
|
|
46
54
|
"ts-api-utils": "^2.4.0",
|
|
47
55
|
"ts-case-convert": "^2.1.0",
|
|
48
|
-
"type-fest": "^5.
|
|
49
|
-
"typescript": "^5.6.3"
|
|
56
|
+
"type-fest": "^5.4.0",
|
|
57
|
+
"typescript": "^5.6.3",
|
|
58
|
+
"vue-eslint-parser": "^10.2.0"
|
|
50
59
|
},
|
|
51
60
|
"engines": {
|
|
52
61
|
"bun": ">=1.1.0",
|
|
@@ -67,8 +76,8 @@
|
|
|
67
76
|
"name": "@pobammer-ts/eslint-cease-nonsense-rules",
|
|
68
77
|
"packageManager": "bun@1.3.5",
|
|
69
78
|
"peerDependencies": {
|
|
70
|
-
"@typescript-eslint/parser": "^8.
|
|
71
|
-
"@typescript-eslint/utils": "^8.
|
|
79
|
+
"@typescript-eslint/parser": "^8.53.0",
|
|
80
|
+
"@typescript-eslint/utils": "^8.53.0",
|
|
72
81
|
"eslint": "^9.39.2",
|
|
73
82
|
"oxfmt": ">0.19.0"
|
|
74
83
|
},
|
|
@@ -85,24 +94,30 @@
|
|
|
85
94
|
"url": "git+https://github.com/howmanysmall/eslint-cease-nonsense-rules.git"
|
|
86
95
|
},
|
|
87
96
|
"scripts": {
|
|
88
|
-
"
|
|
97
|
+
"add-tsgolint": "bun add -D oxlint-tsgolint@latest",
|
|
98
|
+
"biome:check": "biome check",
|
|
99
|
+
"biome:ci": "biome ci",
|
|
100
|
+
"biome:lint": "biome lint",
|
|
89
101
|
"build": "./scripts/build.ts",
|
|
90
|
-
"build:legacy": "
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
"lint
|
|
96
|
-
"
|
|
97
|
-
"
|
|
102
|
+
"build:legacy": "tsgo -p tsconfig.json",
|
|
103
|
+
"commitlint": "commitlint --edit",
|
|
104
|
+
"dev": "tsgo -w",
|
|
105
|
+
"format": "oxfmt",
|
|
106
|
+
"knip": "knip-bun",
|
|
107
|
+
"lint": "bun run oxc . && bun x --bun biome check src tests",
|
|
108
|
+
"lint:fix": "bun run oxc . --fix && bun x --bun biome check . --fix",
|
|
109
|
+
"oxc": "oxlint --type-aware",
|
|
110
|
+
"oxc:complete": "oxlint --type-aware --type-aware",
|
|
111
|
+
"oxc:raw": "oxlint",
|
|
112
|
+
"prepare": "simple-git-hooks",
|
|
98
113
|
"prepublishOnly": "bun run build",
|
|
99
114
|
"release": "bumpp",
|
|
100
|
-
"test": "bun test",
|
|
101
|
-
"type-check": "
|
|
102
|
-
"type-check:safe": "
|
|
115
|
+
"test": "bun test --randomize",
|
|
116
|
+
"type-check": "tsgo --noEmit",
|
|
117
|
+
"type-check:safe": "tsc --noEmit"
|
|
103
118
|
},
|
|
104
119
|
"sideEffects": false,
|
|
105
120
|
"type": "module",
|
|
106
121
|
"types": "./dist/index.d.ts",
|
|
107
|
-
"version": "1.
|
|
122
|
+
"version": "1.17.1"
|
|
108
123
|
}
|