@creo-team/eslint-config 4.0.0 → 5.0.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 +16 -3
- package/dist/constants.d.ts +47 -49
- package/dist/constants.js +7 -7
- package/dist/constants.js.map +1 -1
- package/dist/eslint.config.d.ts +2 -85
- package/dist/eslint.config.js +4 -4
- package/dist/eslint.config.js.map +1 -1
- package/dist/index.d.mts +5 -0
- package/dist/index.mjs +5 -0
- package/dist/index.mjs.map +1 -0
- package/dist/rules.d.ts +283 -272
- package/dist/structure.d.ts +13 -7
- package/dist/utils.d.ts +7 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -11,7 +11,7 @@ ESLint flat config for TypeScript/React: strict type-checking, Prettier, JSDoc,
|
|
|
11
11
|
npm install @creo-team/eslint-config --save-dev
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
-
**Node:**
|
|
14
|
+
**Node:** `^22.22.2 || >=24.15.0`. Prefer Node 24. **TypeScript 7** works alongside this config; see [TypeScript](#typescript).
|
|
15
15
|
|
|
16
16
|
## Usage patterns
|
|
17
17
|
|
|
@@ -46,6 +46,8 @@ module.exports = createConfig({
|
|
|
46
46
|
})
|
|
47
47
|
```
|
|
48
48
|
|
|
49
|
+
In ESM (`eslint.config.mjs`), use `import { createConfig } from '@creo-team/eslint-config'`.
|
|
50
|
+
|
|
49
51
|
### 3. Monorepo — one root config (recommended)
|
|
50
52
|
|
|
51
53
|
Multiple packages (e.g. `app/`, `lib/`, `infra/`), each with its own `tsconfig.json`. Use **projectService** so type-aware rules resolve the nearest tsconfig per file. One `eslint.config.js` at the repo root; run `eslint .` from the root.
|
|
@@ -79,8 +81,8 @@ module.exports = createConfig({
|
|
|
79
81
|
"fix": "eslint . --fix"
|
|
80
82
|
},
|
|
81
83
|
"devDependencies": {
|
|
82
|
-
"@creo-team/eslint-config": "^
|
|
83
|
-
"eslint": "^
|
|
84
|
+
"@creo-team/eslint-config": "^5.0.0",
|
|
85
|
+
"eslint": "^10.11.0"
|
|
84
86
|
}
|
|
85
87
|
}
|
|
86
88
|
```
|
|
@@ -115,6 +117,17 @@ In any setup, add to the package that runs ESLint:
|
|
|
115
117
|
|
|
116
118
|
Type-aware rules need a `tsconfig.json` (or `tsconfig.eslint.json`) that includes your source. With **projectService** (monorepo), each file uses the nearest tsconfig. Without it, one tsconfig is used (see [typed linting](https://typescript-eslint.io/getting-started/typed-linting)).
|
|
117
119
|
|
|
120
|
+
**TypeScript 7.** TypeScript 7 ships no JavaScript API yet, so typescript-eslint runs on the TypeScript 6 API ([typescript-eslint#10940](https://github.com/typescript-eslint/typescript-eslint/issues/10940)). This config depends on it, so a monorepo with TypeScript 7 only inside its workspaces lints as-is. If the package that runs ESLint installs `typescript@7` itself, lint crashes. Use the [official side-by-side setup](https://devblogs.microsoft.com/typescript/announcing-typescript-7-0/#running-side-by-side-with-typescript-6.0) instead: `tsc` stays TypeScript 7 and `tsc6` is TypeScript 6.
|
|
121
|
+
|
|
122
|
+
```json
|
|
123
|
+
{
|
|
124
|
+
"devDependencies": {
|
|
125
|
+
"@typescript/native": "npm:typescript@^7.0.2",
|
|
126
|
+
"typescript": "npm:@typescript/typescript6@^6.0.2"
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
```
|
|
130
|
+
|
|
118
131
|
### Extending
|
|
119
132
|
|
|
120
133
|
Spread and override:
|
package/dist/constants.d.ts
CHANGED
|
@@ -1,50 +1,48 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}[];
|
|
49
|
-
export {};
|
|
1
|
+
declare const _exports: {
|
|
2
|
+
all: "all";
|
|
3
|
+
always: "always";
|
|
4
|
+
AppStructurePreset: {
|
|
5
|
+
Express: string;
|
|
6
|
+
NextJs: string;
|
|
7
|
+
NextJsAppRouter: string;
|
|
8
|
+
React: string;
|
|
9
|
+
Src: string;
|
|
10
|
+
};
|
|
11
|
+
error: "error";
|
|
12
|
+
FilenameCase: {
|
|
13
|
+
CamelCase: string;
|
|
14
|
+
KebabCase: string;
|
|
15
|
+
PascalCase: string;
|
|
16
|
+
};
|
|
17
|
+
FilesPattern: {
|
|
18
|
+
TsAndTsx: string[];
|
|
19
|
+
};
|
|
20
|
+
namingConvention: {
|
|
21
|
+
default: {
|
|
22
|
+
format: string[];
|
|
23
|
+
selector: string;
|
|
24
|
+
}[];
|
|
25
|
+
withUpperCaseVariables: {
|
|
26
|
+
format: string[];
|
|
27
|
+
selector: string;
|
|
28
|
+
}[];
|
|
29
|
+
};
|
|
30
|
+
NamingFormat: {
|
|
31
|
+
CamelCase: string;
|
|
32
|
+
PascalCase: string;
|
|
33
|
+
UpperCase: string;
|
|
34
|
+
};
|
|
35
|
+
NamingSelector: {
|
|
36
|
+
Default: string;
|
|
37
|
+
EnumMember: string;
|
|
38
|
+
Import: string;
|
|
39
|
+
TypeLike: string;
|
|
40
|
+
Variable: string;
|
|
41
|
+
};
|
|
42
|
+
never: "never";
|
|
43
|
+
none: "none";
|
|
44
|
+
off: "off";
|
|
45
|
+
warn: "warn";
|
|
46
|
+
};
|
|
47
|
+
export = _exports;
|
|
50
48
|
//# sourceMappingURL=constants.d.ts.map
|
package/dist/constants.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const off = 'off';
|
|
3
|
-
const warn = 'warn';
|
|
4
|
-
const error = 'error';
|
|
5
|
-
const always = 'always';
|
|
6
|
-
const never = 'never';
|
|
7
|
-
const none = 'none';
|
|
8
|
-
const all = 'all';
|
|
2
|
+
const off = ('off');
|
|
3
|
+
const warn = ('warn');
|
|
4
|
+
const error = ('error');
|
|
5
|
+
const always = ('always');
|
|
6
|
+
const never = ('never');
|
|
7
|
+
const none = ('none');
|
|
8
|
+
const all = ('all');
|
|
9
9
|
const NamingFormat = {
|
|
10
10
|
CamelCase: 'camelCase',
|
|
11
11
|
PascalCase: 'PascalCase',
|
package/dist/constants.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../constants.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../constants.js"],"names":[],"mappings":";AAmBA,MAAM,GAAG,GAAwB,CAAC,KAAK,CAAC,CAAA;AACxC,MAAM,IAAI,GAAwB,CAAC,MAAM,CAAC,CAAA;AAC1C,MAAM,KAAK,GAAwB,CAAC,OAAO,CAAC,CAAA;AAE5C,MAAM,MAAM,GAAwB,CAAC,QAAQ,CAAC,CAAA;AAC9C,MAAM,KAAK,GAAwB,CAAC,OAAO,CAAC,CAAA;AAC5C,MAAM,IAAI,GAAwB,CAAC,MAAM,CAAC,CAAA;AAC1C,MAAM,GAAG,GAAwB,CAAC,KAAK,CAAC,CAAA;AAExC,MAAM,YAAY,GAAG;IACpB,SAAS,EAAE,WAAW;IACtB,UAAU,EAAE,YAAY;IACxB,SAAS,EAAE,YAAY;CACvB,CAAA;AAED,MAAM,cAAc,GAAG;IACtB,OAAO,EAAE,SAAS;IAClB,UAAU,EAAE,YAAY;IACxB,MAAM,EAAE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AAE;CAC1E,CAAA;AAED,MAAM,gBAAgB,GAAG;IACxB,OAAO,EAAE,uBAAuB;IAChC,sBAAsB,EAAE,sCAAsC;CAC9D,CAAA;AAED,MAAM,YAAY,GAAG;IACpB,QAAQ,EAAE,CAAC,SAAS,EAAE,UAAU,CAAC;CACjC,CAAA;AAED,MAAM,YAAY,GAAG;IACpB,SAAS,EAAE,WAAW;IACtB,SAAS,EAAE,WAAW;IACtB,UAAU,EAAE,YAAY;CACxB,CAAA;AAED,MAAM,kBAAkB,GAAG;IAC1B,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;IAChB,eAAe,EAAE,iBAAiB;IAClC,KAAK,EAAE,OAAO;IACd,GAAG,EAAE,KAAK;CACV,CAAA;AAED,MAAM,CAAC,OAAO,GAAG;IAChB,GAAG;IACH,MAAM;IACN,kBAAkB;IAClB,KAAK;IACL,YAAY;IACZ,YAAY;IACZ,gBAAgB;IAChB,YAAY;IACZ,cAAc;IACd,KAAK;IACL,IAAI;IACJ,GAAG;IACH,IAAI;CACJ,CAAA"}
|
package/dist/eslint.config.d.ts
CHANGED
|
@@ -1,89 +1,6 @@
|
|
|
1
|
-
declare const _exports: {
|
|
2
|
-
[n: number]: import("@typescript-eslint/utils/dist/ts-eslint/Config.js").FlatConfig.Config;
|
|
3
|
-
length: number;
|
|
4
|
-
toString(): string;
|
|
5
|
-
toLocaleString(): string;
|
|
6
|
-
toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions & Intl.DateTimeFormatOptions): string;
|
|
7
|
-
pop(): import("@typescript-eslint/utils/dist/ts-eslint/Config.js").FlatConfig.Config | undefined;
|
|
8
|
-
push(...items: import("@typescript-eslint/utils/dist/ts-eslint/Config.js").FlatConfig.Config[]): number;
|
|
9
|
-
concat(...items: ConcatArray<import("@typescript-eslint/utils/dist/ts-eslint/Config.js").FlatConfig.Config>[]): import("@typescript-eslint/utils/dist/ts-eslint/Config.js").FlatConfig.Config[];
|
|
10
|
-
concat(...items: (import("@typescript-eslint/utils/dist/ts-eslint/Config.js").FlatConfig.Config | ConcatArray<import("@typescript-eslint/utils/dist/ts-eslint/Config.js").FlatConfig.Config>)[]): import("@typescript-eslint/utils/dist/ts-eslint/Config.js").FlatConfig.Config[];
|
|
11
|
-
join(separator?: string): string;
|
|
12
|
-
reverse(): import("@typescript-eslint/utils/dist/ts-eslint/Config.js").FlatConfig.Config[];
|
|
13
|
-
shift(): import("@typescript-eslint/utils/dist/ts-eslint/Config.js").FlatConfig.Config | undefined;
|
|
14
|
-
slice(start?: number, end?: number): import("@typescript-eslint/utils/dist/ts-eslint/Config.js").FlatConfig.Config[];
|
|
15
|
-
sort(compareFn?: ((a: import("@typescript-eslint/utils/dist/ts-eslint/Config.js").FlatConfig.Config, b: import("@typescript-eslint/utils/dist/ts-eslint/Config.js").FlatConfig.Config) => number) | undefined): import("@typescript-eslint/utils/dist/ts-eslint/Config.js").FlatConfig.ConfigArray;
|
|
16
|
-
splice(start: number, deleteCount?: number): import("@typescript-eslint/utils/dist/ts-eslint/Config.js").FlatConfig.Config[];
|
|
17
|
-
splice(start: number, deleteCount: number, ...items: import("@typescript-eslint/utils/dist/ts-eslint/Config.js").FlatConfig.Config[]): import("@typescript-eslint/utils/dist/ts-eslint/Config.js").FlatConfig.Config[];
|
|
18
|
-
unshift(...items: import("@typescript-eslint/utils/dist/ts-eslint/Config.js").FlatConfig.Config[]): number;
|
|
19
|
-
indexOf(searchElement: import("@typescript-eslint/utils/dist/ts-eslint/Config.js").FlatConfig.Config, fromIndex?: number): number;
|
|
20
|
-
lastIndexOf(searchElement: import("@typescript-eslint/utils/dist/ts-eslint/Config.js").FlatConfig.Config, fromIndex?: number): number;
|
|
21
|
-
every<S extends import("@typescript-eslint/utils/dist/ts-eslint/Config.js").FlatConfig.Config>(predicate: (value: import("@typescript-eslint/utils/dist/ts-eslint/Config.js").FlatConfig.Config, index: number, array: import("@typescript-eslint/utils/dist/ts-eslint/Config.js").FlatConfig.Config[]) => value is S, thisArg?: any): this is S[];
|
|
22
|
-
every(predicate: (value: import("@typescript-eslint/utils/dist/ts-eslint/Config.js").FlatConfig.Config, index: number, array: import("@typescript-eslint/utils/dist/ts-eslint/Config.js").FlatConfig.Config[]) => unknown, thisArg?: any): boolean;
|
|
23
|
-
some(predicate: (value: import("@typescript-eslint/utils/dist/ts-eslint/Config.js").FlatConfig.Config, index: number, array: import("@typescript-eslint/utils/dist/ts-eslint/Config.js").FlatConfig.Config[]) => unknown, thisArg?: any): boolean;
|
|
24
|
-
forEach(callbackfn: (value: import("@typescript-eslint/utils/dist/ts-eslint/Config.js").FlatConfig.Config, index: number, array: import("@typescript-eslint/utils/dist/ts-eslint/Config.js").FlatConfig.Config[]) => void, thisArg?: any): void;
|
|
25
|
-
map<U>(callbackfn: (value: import("@typescript-eslint/utils/dist/ts-eslint/Config.js").FlatConfig.Config, index: number, array: import("@typescript-eslint/utils/dist/ts-eslint/Config.js").FlatConfig.Config[]) => U, thisArg?: any): U[];
|
|
26
|
-
filter<S extends import("@typescript-eslint/utils/dist/ts-eslint/Config.js").FlatConfig.Config>(predicate: (value: import("@typescript-eslint/utils/dist/ts-eslint/Config.js").FlatConfig.Config, index: number, array: import("@typescript-eslint/utils/dist/ts-eslint/Config.js").FlatConfig.Config[]) => value is S, thisArg?: any): S[];
|
|
27
|
-
filter(predicate: (value: import("@typescript-eslint/utils/dist/ts-eslint/Config.js").FlatConfig.Config, index: number, array: import("@typescript-eslint/utils/dist/ts-eslint/Config.js").FlatConfig.Config[]) => unknown, thisArg?: any): import("@typescript-eslint/utils/dist/ts-eslint/Config.js").FlatConfig.Config[];
|
|
28
|
-
reduce(callbackfn: (previousValue: import("@typescript-eslint/utils/dist/ts-eslint/Config.js").FlatConfig.Config, currentValue: import("@typescript-eslint/utils/dist/ts-eslint/Config.js").FlatConfig.Config, currentIndex: number, array: import("@typescript-eslint/utils/dist/ts-eslint/Config.js").FlatConfig.Config[]) => import("@typescript-eslint/utils/dist/ts-eslint/Config.js").FlatConfig.Config): import("@typescript-eslint/utils/dist/ts-eslint/Config.js").FlatConfig.Config;
|
|
29
|
-
reduce(callbackfn: (previousValue: import("@typescript-eslint/utils/dist/ts-eslint/Config.js").FlatConfig.Config, currentValue: import("@typescript-eslint/utils/dist/ts-eslint/Config.js").FlatConfig.Config, currentIndex: number, array: import("@typescript-eslint/utils/dist/ts-eslint/Config.js").FlatConfig.Config[]) => import("@typescript-eslint/utils/dist/ts-eslint/Config.js").FlatConfig.Config, initialValue: import("@typescript-eslint/utils/dist/ts-eslint/Config.js").FlatConfig.Config): import("@typescript-eslint/utils/dist/ts-eslint/Config.js").FlatConfig.Config;
|
|
30
|
-
reduce<U>(callbackfn: (previousValue: U, currentValue: import("@typescript-eslint/utils/dist/ts-eslint/Config.js").FlatConfig.Config, currentIndex: number, array: import("@typescript-eslint/utils/dist/ts-eslint/Config.js").FlatConfig.Config[]) => U, initialValue: U): U;
|
|
31
|
-
reduceRight(callbackfn: (previousValue: import("@typescript-eslint/utils/dist/ts-eslint/Config.js").FlatConfig.Config, currentValue: import("@typescript-eslint/utils/dist/ts-eslint/Config.js").FlatConfig.Config, currentIndex: number, array: import("@typescript-eslint/utils/dist/ts-eslint/Config.js").FlatConfig.Config[]) => import("@typescript-eslint/utils/dist/ts-eslint/Config.js").FlatConfig.Config): import("@typescript-eslint/utils/dist/ts-eslint/Config.js").FlatConfig.Config;
|
|
32
|
-
reduceRight(callbackfn: (previousValue: import("@typescript-eslint/utils/dist/ts-eslint/Config.js").FlatConfig.Config, currentValue: import("@typescript-eslint/utils/dist/ts-eslint/Config.js").FlatConfig.Config, currentIndex: number, array: import("@typescript-eslint/utils/dist/ts-eslint/Config.js").FlatConfig.Config[]) => import("@typescript-eslint/utils/dist/ts-eslint/Config.js").FlatConfig.Config, initialValue: import("@typescript-eslint/utils/dist/ts-eslint/Config.js").FlatConfig.Config): import("@typescript-eslint/utils/dist/ts-eslint/Config.js").FlatConfig.Config;
|
|
33
|
-
reduceRight<U>(callbackfn: (previousValue: U, currentValue: import("@typescript-eslint/utils/dist/ts-eslint/Config.js").FlatConfig.Config, currentIndex: number, array: import("@typescript-eslint/utils/dist/ts-eslint/Config.js").FlatConfig.Config[]) => U, initialValue: U): U;
|
|
34
|
-
find<S extends import("@typescript-eslint/utils/dist/ts-eslint/Config.js").FlatConfig.Config>(predicate: (value: import("@typescript-eslint/utils/dist/ts-eslint/Config.js").FlatConfig.Config, index: number, obj: import("@typescript-eslint/utils/dist/ts-eslint/Config.js").FlatConfig.Config[]) => value is S, thisArg?: any): S | undefined;
|
|
35
|
-
find(predicate: (value: import("@typescript-eslint/utils/dist/ts-eslint/Config.js").FlatConfig.Config, index: number, obj: import("@typescript-eslint/utils/dist/ts-eslint/Config.js").FlatConfig.Config[]) => unknown, thisArg?: any): import("@typescript-eslint/utils/dist/ts-eslint/Config.js").FlatConfig.Config | undefined;
|
|
36
|
-
findIndex(predicate: (value: import("@typescript-eslint/utils/dist/ts-eslint/Config.js").FlatConfig.Config, index: number, obj: import("@typescript-eslint/utils/dist/ts-eslint/Config.js").FlatConfig.Config[]) => unknown, thisArg?: any): number;
|
|
37
|
-
fill(value: import("@typescript-eslint/utils/dist/ts-eslint/Config.js").FlatConfig.Config, start?: number, end?: number): import("@typescript-eslint/utils/dist/ts-eslint/Config.js").FlatConfig.ConfigArray;
|
|
38
|
-
copyWithin(target: number, start: number, end?: number): import("@typescript-eslint/utils/dist/ts-eslint/Config.js").FlatConfig.ConfigArray;
|
|
39
|
-
entries(): ArrayIterator<[number, import("@typescript-eslint/utils/dist/ts-eslint/Config.js").FlatConfig.Config]>;
|
|
40
|
-
keys(): ArrayIterator<number>;
|
|
41
|
-
values(): ArrayIterator<import("@typescript-eslint/utils/dist/ts-eslint/Config.js").FlatConfig.Config>;
|
|
42
|
-
includes(searchElement: import("@typescript-eslint/utils/dist/ts-eslint/Config.js").FlatConfig.Config, fromIndex?: number): boolean;
|
|
43
|
-
flatMap<U, This = undefined>(callback: (this: This, value: import("@typescript-eslint/utils/dist/ts-eslint/Config.js").FlatConfig.Config, index: number, array: import("@typescript-eslint/utils/dist/ts-eslint/Config.js").FlatConfig.Config[]) => U | readonly U[], thisArg?: This | undefined): U[];
|
|
44
|
-
flat<A, D extends number = 1>(this: A, depth?: D | undefined): FlatArray<A, D>[];
|
|
45
|
-
at(index: number): import("@typescript-eslint/utils/dist/ts-eslint/Config.js").FlatConfig.Config | undefined;
|
|
46
|
-
[Symbol.iterator](): ArrayIterator<import("@typescript-eslint/utils/dist/ts-eslint/Config.js").FlatConfig.Config>;
|
|
47
|
-
readonly [Symbol.unscopables]: {
|
|
48
|
-
[x: number]: boolean | undefined;
|
|
49
|
-
length?: boolean | undefined;
|
|
50
|
-
toString?: boolean | undefined;
|
|
51
|
-
toLocaleString?: boolean | undefined;
|
|
52
|
-
pop?: boolean | undefined;
|
|
53
|
-
push?: boolean | undefined;
|
|
54
|
-
concat?: boolean | undefined;
|
|
55
|
-
join?: boolean | undefined;
|
|
56
|
-
reverse?: boolean | undefined;
|
|
57
|
-
shift?: boolean | undefined;
|
|
58
|
-
slice?: boolean | undefined;
|
|
59
|
-
sort?: boolean | undefined;
|
|
60
|
-
splice?: boolean | undefined;
|
|
61
|
-
unshift?: boolean | undefined;
|
|
62
|
-
indexOf?: boolean | undefined;
|
|
63
|
-
lastIndexOf?: boolean | undefined;
|
|
64
|
-
every?: boolean | undefined;
|
|
65
|
-
some?: boolean | undefined;
|
|
66
|
-
forEach?: boolean | undefined;
|
|
67
|
-
map?: boolean | undefined;
|
|
68
|
-
filter?: boolean | undefined;
|
|
69
|
-
reduce?: boolean | undefined;
|
|
70
|
-
reduceRight?: boolean | undefined;
|
|
71
|
-
find?: boolean | undefined;
|
|
72
|
-
findIndex?: boolean | undefined;
|
|
73
|
-
fill?: boolean | undefined;
|
|
74
|
-
copyWithin?: boolean | undefined;
|
|
75
|
-
entries?: boolean | undefined;
|
|
76
|
-
keys?: boolean | undefined;
|
|
77
|
-
values?: boolean | undefined;
|
|
78
|
-
includes?: boolean | undefined;
|
|
79
|
-
flatMap?: boolean | undefined;
|
|
80
|
-
flat?: boolean | undefined;
|
|
81
|
-
at?: boolean | undefined;
|
|
82
|
-
[Symbol.iterator]?: boolean | undefined;
|
|
83
|
-
readonly [Symbol.unscopables]?: boolean | undefined;
|
|
84
|
-
};
|
|
1
|
+
declare const _exports: import("eslint").Linter.Config<import("@eslint/core").RulesConfig>[] & {
|
|
85
2
|
createConfig: typeof createConfig;
|
|
86
3
|
};
|
|
87
4
|
export = _exports;
|
|
88
|
-
declare function createConfig(options?: {}): import(
|
|
5
|
+
declare function createConfig(options?: {}): import('eslint').Linter.Config[];
|
|
89
6
|
//# sourceMappingURL=eslint.config.d.ts.map
|
package/dist/eslint.config.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const eslint = require('@eslint/js');
|
|
3
|
+
const { defineConfig } = require('eslint/config');
|
|
3
4
|
const pluginStylistic = require('@stylistic/eslint-plugin');
|
|
4
5
|
const pluginImport = require('eslint-plugin-import-x');
|
|
5
6
|
const { createTypeScriptImportResolver } = require('eslint-import-resolver-typescript');
|
|
6
|
-
const jsdoc = require('eslint-plugin-jsdoc');
|
|
7
|
+
const { default: jsdoc } = require('eslint-plugin-jsdoc');
|
|
7
8
|
const perfectionist = require('eslint-plugin-perfectionist');
|
|
8
9
|
const prettier = require('eslint-plugin-prettier');
|
|
9
10
|
const tsEslint = require('typescript-eslint');
|
|
@@ -92,8 +93,7 @@ function createConfig(options = {}) {
|
|
|
92
93
|
},
|
|
93
94
|
},
|
|
94
95
|
];
|
|
95
|
-
return
|
|
96
|
+
return defineConfig(...configBlocks);
|
|
96
97
|
}
|
|
97
|
-
module.exports = createConfig({ ignores: ['dist/**', 'test/**', 'examples/**'] });
|
|
98
|
-
module.exports.createConfig = createConfig;
|
|
98
|
+
module.exports = Object.assign(createConfig({ ignores: ['dist/**', 'test/**', 'examples/**'] }), { createConfig });
|
|
99
99
|
//# sourceMappingURL=eslint.config.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eslint.config.js","sourceRoot":"","sources":["../eslint.config.js"],"names":[],"mappings":";AAEA,MAAM,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,CAAA;AACpC,MAAM,eAAe,GAAG,OAAO,CAAC,0BAA0B,CAAC,CAAA;AAC3D,MAAM,YAAY,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAAA;AACtD,MAAM,EAAE,8BAA8B,EAAE,GAAG,OAAO,CAAC,mCAAmC,CAAC,CAAA;AACvF,MAAM,KAAK,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAA;
|
|
1
|
+
{"version":3,"file":"eslint.config.js","sourceRoot":"","sources":["../eslint.config.js"],"names":[],"mappings":";AAEA,MAAM,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,CAAA;AACpC,MAAM,EAAE,YAAY,EAAE,GAAG,OAAO,CAAC,eAAe,CAAC,CAAA;AACjD,MAAM,eAAe,GAAG,OAAO,CAAC,0BAA0B,CAAC,CAAA;AAC3D,MAAM,YAAY,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAAA;AACtD,MAAM,EAAE,8BAA8B,EAAE,GAAG,OAAO,CAAC,mCAAmC,CAAC,CAAA;AACvF,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAA;AACzD,MAAM,aAAa,GAAG,OAAO,CAAC,6BAA6B,CAAC,CAAA;AAC5D,MAAM,QAAQ,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAAA;AAClD,MAAM,QAAQ,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAA;AAE7C,MAAM,EAAE,gBAAgB,EAAE,GAAG,EAAE,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAA;AAC3D,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,CAAC,YAAY,CAAC,CAAA;AACvC,MAAM,EAAE,oBAAoB,EAAE,GAAG,O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B,EAAE,GAAG;aACjC;SACD;KACD,CAAA;IAED,OAAO,YAAY,CAAC,GAAG,YAAY,CAAC,CAAA;AACrC,CAAC;AAID,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE,OAAO,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,aAAa,CAAC,EAAE,CAAC,EAAE,EAAE,YAAY,EAAE,CAAC,CAAA"}
|
package/dist/index.d.mts
ADDED
package/dist/index.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../index.mjs"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,oBAAoB,CAAA;AAEvC,MAAM,EAAE,YAAY,EAAE,GAAG,MAAM,CAAA;AAE/B,OAAO,EAAE,YAAY,EAAE,CAAA;AACvB,eAAe,MAAM,CAAA"}
|
package/dist/rules.d.ts
CHANGED
|
@@ -1,274 +1,285 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
require: {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
max:
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
1
|
+
declare const _exports: {
|
|
2
|
+
commonjsPreventRules: {
|
|
3
|
+
'@typescript-eslint/no-require-imports': "off";
|
|
4
|
+
'import-x/no-amd': "off";
|
|
5
|
+
'import-x/no-commonjs': "off";
|
|
6
|
+
'import-x/no-default-export': "off";
|
|
7
|
+
};
|
|
8
|
+
jsDoc: {
|
|
9
|
+
'jsdoc/require-description-complete-sentence': "error";
|
|
10
|
+
'jsdoc/require-hyphen-before-param-description': "error";
|
|
11
|
+
'jsdoc/require-jsdoc': ("error" | {
|
|
12
|
+
require: {
|
|
13
|
+
ArrowFunctionExpression: boolean;
|
|
14
|
+
ClassDeclaration: boolean;
|
|
15
|
+
ClassExpression: boolean;
|
|
16
|
+
FunctionDeclaration: boolean;
|
|
17
|
+
FunctionExpression: boolean;
|
|
18
|
+
MethodDefinition: boolean;
|
|
19
|
+
};
|
|
20
|
+
})[];
|
|
21
|
+
'jsdoc/require-param': "error";
|
|
22
|
+
'jsdoc/require-param-description': "error";
|
|
23
|
+
'jsdoc/require-param-name': "error";
|
|
24
|
+
'jsdoc/require-property': "off";
|
|
25
|
+
'jsdoc/require-property-description': "off";
|
|
26
|
+
'jsdoc/require-property-name': "off";
|
|
27
|
+
'jsdoc/require-returns': "error";
|
|
28
|
+
'jsdoc/require-yields': "error";
|
|
29
|
+
};
|
|
30
|
+
prettier: {
|
|
31
|
+
'@stylistic/indent': "off";
|
|
32
|
+
'@stylistic/quotes': "off";
|
|
33
|
+
'@stylistic/space-before-function-paren': "off";
|
|
34
|
+
'max-len': "off";
|
|
35
|
+
'prettier/prettier': ("error" | {
|
|
36
|
+
arrowParens: "always";
|
|
37
|
+
bracketSameLine: boolean;
|
|
38
|
+
bracketSpacing: boolean;
|
|
39
|
+
jsxSingleQuote: boolean;
|
|
40
|
+
printWidth: number;
|
|
41
|
+
quoteProps: string;
|
|
42
|
+
semi: boolean;
|
|
43
|
+
singleQuote: boolean;
|
|
44
|
+
tabWidth: number;
|
|
45
|
+
trailingComma: "all";
|
|
46
|
+
useTabs: boolean;
|
|
47
|
+
})[];
|
|
48
|
+
};
|
|
49
|
+
rules: {
|
|
50
|
+
'jsdoc/require-description-complete-sentence': "error";
|
|
51
|
+
'jsdoc/require-hyphen-before-param-description': "error";
|
|
52
|
+
'jsdoc/require-jsdoc': ("error" | {
|
|
53
|
+
require: {
|
|
54
|
+
ArrowFunctionExpression: boolean;
|
|
55
|
+
ClassDeclaration: boolean;
|
|
56
|
+
ClassExpression: boolean;
|
|
57
|
+
FunctionDeclaration: boolean;
|
|
58
|
+
FunctionExpression: boolean;
|
|
59
|
+
MethodDefinition: boolean;
|
|
60
|
+
};
|
|
61
|
+
})[];
|
|
62
|
+
'jsdoc/require-param': "error";
|
|
63
|
+
'jsdoc/require-param-description': "error";
|
|
64
|
+
'jsdoc/require-param-name': "error";
|
|
65
|
+
'jsdoc/require-property': "off";
|
|
66
|
+
'jsdoc/require-property-description': "off";
|
|
67
|
+
'jsdoc/require-property-name': "off";
|
|
68
|
+
'jsdoc/require-returns': "error";
|
|
69
|
+
'jsdoc/require-yields': "error";
|
|
70
|
+
'@stylistic/indent': "off";
|
|
71
|
+
'@stylistic/quotes': "off";
|
|
72
|
+
'@stylistic/space-before-function-paren': "off";
|
|
73
|
+
'max-len': "off";
|
|
74
|
+
'prettier/prettier': ("error" | {
|
|
75
|
+
arrowParens: "always";
|
|
76
|
+
bracketSameLine: boolean;
|
|
77
|
+
bracketSpacing: boolean;
|
|
78
|
+
jsxSingleQuote: boolean;
|
|
79
|
+
printWidth: number;
|
|
80
|
+
quoteProps: string;
|
|
81
|
+
semi: boolean;
|
|
82
|
+
singleQuote: boolean;
|
|
83
|
+
tabWidth: number;
|
|
84
|
+
trailingComma: "all";
|
|
85
|
+
useTabs: boolean;
|
|
86
|
+
})[];
|
|
87
|
+
'@stylistic/lines-around-comment': ("error" | {
|
|
88
|
+
allowArrayStart: boolean;
|
|
89
|
+
allowBlockStart: boolean;
|
|
90
|
+
allowClassStart: boolean;
|
|
91
|
+
allowObjectStart: boolean;
|
|
92
|
+
applyDefaultIgnorePatterns: boolean;
|
|
93
|
+
beforeBlockComment: boolean;
|
|
94
|
+
beforeLineComment: boolean;
|
|
95
|
+
})[];
|
|
96
|
+
'@stylistic/lines-between-class-members': ("error" | {
|
|
97
|
+
enforce: ({
|
|
98
|
+
blankLine: "always";
|
|
99
|
+
next: string;
|
|
100
|
+
prev: string;
|
|
101
|
+
} | {
|
|
102
|
+
blankLine: "never";
|
|
103
|
+
next: string;
|
|
104
|
+
prev: string;
|
|
105
|
+
})[];
|
|
106
|
+
exceptAfterSingleLine?: undefined;
|
|
107
|
+
} | {
|
|
108
|
+
enforce?: undefined;
|
|
109
|
+
exceptAfterSingleLine: boolean;
|
|
110
|
+
})[];
|
|
111
|
+
'@typescript-eslint/array-type': "error";
|
|
112
|
+
'@typescript-eslint/consistent-indexed-object-style': "error";
|
|
113
|
+
'@typescript-eslint/consistent-type-assertions': "error";
|
|
114
|
+
'@typescript-eslint/consistent-type-definitions': "error";
|
|
115
|
+
'@typescript-eslint/consistent-type-exports': "error";
|
|
116
|
+
'@typescript-eslint/consistent-type-imports': "error";
|
|
117
|
+
'@typescript-eslint/dot-notation': "error";
|
|
118
|
+
'@typescript-eslint/naming-convention': ("error" | {
|
|
119
|
+
format: string[];
|
|
120
|
+
selector: string;
|
|
121
|
+
})[];
|
|
122
|
+
'@typescript-eslint/no-explicit-any': "warn";
|
|
123
|
+
'@typescript-eslint/no-extraneous-class': "off";
|
|
124
|
+
'@typescript-eslint/no-misused-spread': "off";
|
|
125
|
+
'@typescript-eslint/no-unnecessary-condition': "warn";
|
|
126
|
+
'@typescript-eslint/no-unsafe-argument': "warn";
|
|
127
|
+
'@typescript-eslint/no-unsafe-assignment': "off";
|
|
128
|
+
'@typescript-eslint/no-unsafe-call': "off";
|
|
129
|
+
'@typescript-eslint/no-unsafe-member-access': "off";
|
|
130
|
+
'@typescript-eslint/no-unsafe-return': "warn";
|
|
131
|
+
'@typescript-eslint/restrict-template-expressions': "off";
|
|
132
|
+
'@typescript-eslint/unbound-method': "off";
|
|
133
|
+
complexity: ("error" | {
|
|
134
|
+
max: number;
|
|
135
|
+
})[];
|
|
136
|
+
'dot-notation': "off";
|
|
137
|
+
'import-x/first': "error";
|
|
138
|
+
'import-x/named': "error";
|
|
139
|
+
'import-x/newline-after-import': ("error" | {
|
|
140
|
+
count: number;
|
|
141
|
+
})[];
|
|
142
|
+
'import-x/no-absolute-path': "error";
|
|
143
|
+
'import-x/no-cycle': "error";
|
|
144
|
+
'import-x/no-duplicates': "error";
|
|
145
|
+
'import-x/no-empty-named-blocks': "error";
|
|
146
|
+
'import-x/no-relative-packages': "error";
|
|
147
|
+
'import-x/no-self-import': "error";
|
|
148
|
+
'import-x/no-unresolved': "error";
|
|
149
|
+
'import-x/no-unused-modules': "off";
|
|
150
|
+
'import-x/no-useless-path-segments': "error";
|
|
151
|
+
'import-x/prefer-default-export': "off";
|
|
152
|
+
'max-classes-per-file': ("error" | {
|
|
153
|
+
ignoreExpressions: boolean;
|
|
154
|
+
max: number;
|
|
155
|
+
})[];
|
|
156
|
+
'max-lines': ("error" | {
|
|
157
|
+
max: number;
|
|
158
|
+
skipBlankLines: boolean;
|
|
159
|
+
skipComments: boolean;
|
|
160
|
+
})[];
|
|
161
|
+
'max-lines-per-function': (number | "error")[];
|
|
162
|
+
'newline-before-return': "error";
|
|
163
|
+
'no-await-in-loop': "warn";
|
|
164
|
+
'no-console': "warn";
|
|
165
|
+
'no-magic-numbers': ("warn" | {
|
|
166
|
+
enforceConst: boolean;
|
|
167
|
+
ignore: number[];
|
|
168
|
+
ignoreArrayIndexes: boolean;
|
|
169
|
+
ignoreDefaultValues: boolean;
|
|
170
|
+
})[];
|
|
171
|
+
'no-promise-executor-return': "error";
|
|
172
|
+
'no-restricted-imports': "off";
|
|
173
|
+
'no-unsafe-member-access': "off";
|
|
174
|
+
'object-curly-newline': "off";
|
|
175
|
+
'spaced-comment': ("always" | "error" | {
|
|
176
|
+
block: {
|
|
177
|
+
balanced: boolean;
|
|
178
|
+
};
|
|
179
|
+
})[];
|
|
180
|
+
'@typescript-eslint/no-require-imports': "off";
|
|
181
|
+
'import-x/no-amd': "off";
|
|
182
|
+
'import-x/no-commonjs': "off";
|
|
183
|
+
'import-x/no-default-export': "off";
|
|
184
|
+
'perfectionist/sort-imports': "off";
|
|
185
|
+
};
|
|
186
|
+
stylisticTs: {
|
|
187
|
+
'@stylistic/lines-around-comment': ("error" | {
|
|
188
|
+
allowArrayStart: boolean;
|
|
189
|
+
allowBlockStart: boolean;
|
|
190
|
+
allowClassStart: boolean;
|
|
191
|
+
allowObjectStart: boolean;
|
|
192
|
+
applyDefaultIgnorePatterns: boolean;
|
|
193
|
+
beforeBlockComment: boolean;
|
|
194
|
+
beforeLineComment: boolean;
|
|
195
|
+
})[];
|
|
196
|
+
'@stylistic/lines-between-class-members': ("error" | {
|
|
197
|
+
enforce: ({
|
|
198
|
+
blankLine: "always";
|
|
199
|
+
next: string;
|
|
200
|
+
prev: string;
|
|
201
|
+
} | {
|
|
202
|
+
blankLine: "never";
|
|
203
|
+
next: string;
|
|
204
|
+
prev: string;
|
|
205
|
+
})[];
|
|
206
|
+
exceptAfterSingleLine?: undefined;
|
|
207
|
+
} | {
|
|
208
|
+
enforce?: undefined;
|
|
209
|
+
exceptAfterSingleLine: boolean;
|
|
210
|
+
})[];
|
|
211
|
+
};
|
|
212
|
+
tsEslint: {
|
|
213
|
+
'@typescript-eslint/array-type': "error";
|
|
214
|
+
'@typescript-eslint/consistent-indexed-object-style': "error";
|
|
215
|
+
'@typescript-eslint/consistent-type-assertions': "error";
|
|
216
|
+
'@typescript-eslint/consistent-type-definitions': "error";
|
|
217
|
+
'@typescript-eslint/consistent-type-exports': "error";
|
|
218
|
+
'@typescript-eslint/consistent-type-imports': "error";
|
|
219
|
+
'@typescript-eslint/dot-notation': "error";
|
|
220
|
+
'@typescript-eslint/naming-convention': ("error" | {
|
|
221
|
+
format: string[];
|
|
222
|
+
selector: string;
|
|
223
|
+
})[];
|
|
224
|
+
'@typescript-eslint/no-explicit-any': "warn";
|
|
225
|
+
'@typescript-eslint/no-extraneous-class': "off";
|
|
226
|
+
'@typescript-eslint/no-misused-spread': "off";
|
|
227
|
+
'@typescript-eslint/no-unnecessary-condition': "warn";
|
|
228
|
+
'@typescript-eslint/no-unsafe-argument': "warn";
|
|
229
|
+
'@typescript-eslint/no-unsafe-assignment': "off";
|
|
230
|
+
'@typescript-eslint/no-unsafe-call': "off";
|
|
231
|
+
'@typescript-eslint/no-unsafe-member-access': "off";
|
|
232
|
+
'@typescript-eslint/no-unsafe-return': "warn";
|
|
233
|
+
'@typescript-eslint/restrict-template-expressions': "off";
|
|
234
|
+
'@typescript-eslint/unbound-method': "off";
|
|
235
|
+
complexity: ("error" | {
|
|
236
|
+
max: number;
|
|
237
|
+
})[];
|
|
238
|
+
'dot-notation': "off";
|
|
239
|
+
'import-x/first': "error";
|
|
240
|
+
'import-x/named': "error";
|
|
241
|
+
'import-x/newline-after-import': ("error" | {
|
|
242
|
+
count: number;
|
|
243
|
+
})[];
|
|
244
|
+
'import-x/no-absolute-path': "error";
|
|
245
|
+
'import-x/no-cycle': "error";
|
|
246
|
+
'import-x/no-duplicates': "error";
|
|
247
|
+
'import-x/no-empty-named-blocks': "error";
|
|
248
|
+
'import-x/no-relative-packages': "error";
|
|
249
|
+
'import-x/no-self-import': "error";
|
|
250
|
+
'import-x/no-unresolved': "error";
|
|
251
|
+
'import-x/no-unused-modules': "off";
|
|
252
|
+
'import-x/no-useless-path-segments': "error";
|
|
253
|
+
'import-x/prefer-default-export': "off";
|
|
254
|
+
'max-classes-per-file': ("error" | {
|
|
255
|
+
ignoreExpressions: boolean;
|
|
256
|
+
max: number;
|
|
257
|
+
})[];
|
|
258
|
+
'max-lines': ("error" | {
|
|
259
|
+
max: number;
|
|
260
|
+
skipBlankLines: boolean;
|
|
261
|
+
skipComments: boolean;
|
|
262
|
+
})[];
|
|
263
|
+
'max-lines-per-function': (number | "error")[];
|
|
264
|
+
'newline-before-return': "error";
|
|
265
|
+
'no-await-in-loop': "warn";
|
|
266
|
+
'no-console': "warn";
|
|
267
|
+
'no-magic-numbers': ("warn" | {
|
|
268
|
+
enforceConst: boolean;
|
|
269
|
+
ignore: number[];
|
|
270
|
+
ignoreArrayIndexes: boolean;
|
|
271
|
+
ignoreDefaultValues: boolean;
|
|
272
|
+
})[];
|
|
273
|
+
'no-promise-executor-return': "error";
|
|
274
|
+
'no-restricted-imports': "off";
|
|
275
|
+
'no-unsafe-member-access': "off";
|
|
276
|
+
'object-curly-newline': "off";
|
|
277
|
+
'spaced-comment': ("always" | "error" | {
|
|
278
|
+
block: {
|
|
279
|
+
balanced: boolean;
|
|
280
|
+
};
|
|
281
|
+
})[];
|
|
282
|
+
};
|
|
273
283
|
};
|
|
284
|
+
export = _exports;
|
|
274
285
|
//# sourceMappingURL=rules.d.ts.map
|
package/dist/structure.d.ts
CHANGED
|
@@ -1,9 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
declare const _exports: {
|
|
2
|
+
appStructurePresets: Record<string, object>;
|
|
3
|
+
buildStructureConfig: typeof buildStructureConfig;
|
|
4
|
+
createAppStructure: typeof createAppStructure;
|
|
5
|
+
createMonorepoStructure: typeof createMonorepoStructure;
|
|
6
|
+
};
|
|
7
|
+
export = _exports;
|
|
8
|
+
declare function createMonorepoStructure(workspaces: string[]): object;
|
|
9
|
+
declare function buildStructureConfig(options?: {
|
|
10
|
+
workspaces?: string[];
|
|
11
|
+
appStructure?: string | string[] | object;
|
|
12
|
+
appPath?: string;
|
|
6
13
|
}): object | null;
|
|
7
|
-
|
|
8
|
-
export function createMonorepoStructure(workspaces: string[]): object;
|
|
14
|
+
declare function createAppStructure(presetOrDirs: string | string[] | object): object | null;
|
|
9
15
|
//# sourceMappingURL=structure.d.ts.map
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
declare const _exports: {
|
|
2
|
+
debug: typeof debug;
|
|
3
|
+
getTsConfigFile: typeof getTsConfigFile;
|
|
4
|
+
};
|
|
5
|
+
export = _exports;
|
|
6
|
+
declare function debug(message: any): void;
|
|
7
|
+
declare function getTsConfigFile(targetFile?: any, fallbackFile?: any, startDir?: any): any;
|
|
3
8
|
//# sourceMappingURL=utils.d.ts.map
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@creo-team/eslint-config","version":"
|
|
1
|
+
{"name":"@creo-team/eslint-config","version":"5.0.0","description":"ESLint flat config: TypeScript (strict), Prettier, JSDoc, complexity, no-magic-numbers. createConfig() for options.","author":"Colten Krauter <coltenkrauter>","main":"dist/eslint.config.js","homepage":"https://github.com/creo-team/eslint-config","repository":{"type":"git","url":"git+https://github.com/creo-team/eslint-config.git"},"scripts":{"build":"tsc","fix":"npm run lint -- --fix","lint":"npx eslint .","prepublishOnly":"npm run build && npm run test:types","test":"vitest run && npm run lint","test:types":"tsc -p test/types","test:watch":"vitest","typecheck":"tsc --noEmit","upgrade:all":"npx npm-check-updates --upgrade && npm install"},"keywords":["eslint","eslint-config","creo-team","flat-config","typescript","prettier","jsdoc","linting","lint"],"license":"ISC","dependencies":{"@eslint/js":"^10.0.1","@stylistic/eslint-plugin":"^5.10.0","eslint":"^10.11.0","eslint-import-resolver-typescript":"^4.4.5","eslint-plugin-import-x":"^4.17.1","eslint-plugin-jsdoc":"^64.5.4","eslint-plugin-perfectionist":"^5.12.1","eslint-plugin-prettier":"^5.5.6","typescript":"npm:@typescript/typescript6@^6.0.2","typescript-eslint":"^8.71.0"},"files":["dist/eslint.config.js","dist/index.mjs","dist/rules.js","dist/utils.js","dist/constants.js","dist/structure.js","dist/*.d.ts","dist/*.d.mts","dist/*.js.map","dist/*.mjs.map"],"type":"commonjs","devDependencies":{"@typescript/native":"npm:typescript@^7.0.2","react":"^19.3.0","react-dom":"^19.3.0","vite":"^8.3.1","vitest":"^5.0.2"},"engines":{"node":"^22.22.2 || >=24.15.0","npm":">=10"},"publishConfig":{"access":"public"},"exports":{".":{"import":"./dist/index.mjs","require":"./dist/eslint.config.js","default":"./dist/eslint.config.js"},"./constants":{"require":"./dist/constants.js","default":"./dist/constants.js"}}}
|