@fabdeh/eslint-config 0.0.1 → 0.0.3
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/dist/index.cjs +107 -30104
- package/dist/index.d.cts +48 -13
- package/dist/index.d.ts +48 -13
- package/dist/index.js +77 -30110
- package/package.json +4 -3
package/dist/index.d.cts
CHANGED
|
@@ -1,25 +1,60 @@
|
|
|
1
1
|
import * as _typescript_eslint_utils_ts_eslint from '@typescript-eslint/utils/ts-eslint';
|
|
2
|
+
import { TSESLint } from '@typescript-eslint/utils';
|
|
3
|
+
import { ConfigWithExtends } from 'typescript-eslint';
|
|
4
|
+
|
|
5
|
+
declare const _default$7: _typescript_eslint_utils_ts_eslint.FlatConfig.ConfigArray;
|
|
6
|
+
|
|
7
|
+
declare const _default$6: _typescript_eslint_utils_ts_eslint.FlatConfig.ConfigArray;
|
|
8
|
+
|
|
9
|
+
declare const _default$5: _typescript_eslint_utils_ts_eslint.FlatConfig.ConfigArray;
|
|
10
|
+
|
|
11
|
+
declare const _default$4: _typescript_eslint_utils_ts_eslint.FlatConfig.ConfigArray;
|
|
2
12
|
|
|
3
13
|
declare const _default$3: _typescript_eslint_utils_ts_eslint.FlatConfig.ConfigArray;
|
|
4
14
|
|
|
5
15
|
declare const _default$2: _typescript_eslint_utils_ts_eslint.FlatConfig.ConfigArray;
|
|
6
16
|
|
|
17
|
+
declare namespace index {
|
|
18
|
+
export { _default$4 as effects, _default$3 as signals, _default$2 as store };
|
|
19
|
+
}
|
|
20
|
+
|
|
7
21
|
declare const _default$1: _typescript_eslint_utils_ts_eslint.FlatConfig.ConfigArray;
|
|
8
22
|
|
|
9
|
-
declare
|
|
10
|
-
|
|
23
|
+
declare const _default: _typescript_eslint_utils_ts_eslint.FlatConfig.ConfigArray;
|
|
24
|
+
|
|
25
|
+
declare namespace configs {
|
|
26
|
+
export { _default$7 as angular, _default$6 as base, _default$5 as jest, index as ngrx, _default$1 as tailwindcss, _default as vitest };
|
|
11
27
|
}
|
|
12
28
|
|
|
13
|
-
declare const
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
29
|
+
declare const GLOB_SRC_EXT = "?([cm])[jt]s?(x)";
|
|
30
|
+
declare const GLOB_SRC = "**/*.?([cm])[jt]s?(x)";
|
|
31
|
+
declare const GLOB_JS = "**/*.?([cm])js?(x)";
|
|
32
|
+
declare const GLOB_TS_EXT = "?([cm])ts?(x)";
|
|
33
|
+
declare const GLOB_TS = "**/*.?([cm])ts?(x)";
|
|
34
|
+
declare const GLOB_HTML = "**/*.htm?(l)";
|
|
35
|
+
declare const GLOB_TESTS: string[];
|
|
36
|
+
declare const GLOB_EXCLUDE: string[];
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Detect if the program is running inside an editor environment.
|
|
40
|
+
* @returns `true` if the program is running inside an editor environment; `false` otherwise.
|
|
41
|
+
*/
|
|
42
|
+
declare function isInEditorEnv(): boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Dedupe the base TS ESLint config.
|
|
45
|
+
* @param configs The list of configs.
|
|
46
|
+
* @returns The filtered configs.
|
|
47
|
+
*/
|
|
48
|
+
declare function dedupeTsBaseConfig(...configs: ConfigWithExtends[]): TSESLint.FlatConfig.ConfigArray;
|
|
49
|
+
/**
|
|
50
|
+
* Ensures that the "files" property is correctly set.
|
|
51
|
+
* @param files The files property value to use.
|
|
52
|
+
* @returns A function that takes the configuration and fix it.
|
|
53
|
+
*/
|
|
54
|
+
declare function ensureCorrectFiles<T extends object>(files: string[]): (config: T) => T;
|
|
55
|
+
|
|
56
|
+
declare const DEFAULT: {
|
|
57
|
+
configs: typeof configs;
|
|
22
58
|
};
|
|
23
59
|
|
|
24
|
-
export {
|
|
25
|
-
export = _default
|
|
60
|
+
export { GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_SRC, GLOB_SRC_EXT, GLOB_TESTS, GLOB_TS, GLOB_TS_EXT, dedupeTsBaseConfig, DEFAULT as default, ensureCorrectFiles, isInEditorEnv };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,25 +1,60 @@
|
|
|
1
1
|
import * as _typescript_eslint_utils_ts_eslint from '@typescript-eslint/utils/ts-eslint';
|
|
2
|
+
import { TSESLint } from '@typescript-eslint/utils';
|
|
3
|
+
import { ConfigWithExtends } from 'typescript-eslint';
|
|
4
|
+
|
|
5
|
+
declare const _default$7: _typescript_eslint_utils_ts_eslint.FlatConfig.ConfigArray;
|
|
6
|
+
|
|
7
|
+
declare const _default$6: _typescript_eslint_utils_ts_eslint.FlatConfig.ConfigArray;
|
|
8
|
+
|
|
9
|
+
declare const _default$5: _typescript_eslint_utils_ts_eslint.FlatConfig.ConfigArray;
|
|
10
|
+
|
|
11
|
+
declare const _default$4: _typescript_eslint_utils_ts_eslint.FlatConfig.ConfigArray;
|
|
2
12
|
|
|
3
13
|
declare const _default$3: _typescript_eslint_utils_ts_eslint.FlatConfig.ConfigArray;
|
|
4
14
|
|
|
5
15
|
declare const _default$2: _typescript_eslint_utils_ts_eslint.FlatConfig.ConfigArray;
|
|
6
16
|
|
|
17
|
+
declare namespace index {
|
|
18
|
+
export { _default$4 as effects, _default$3 as signals, _default$2 as store };
|
|
19
|
+
}
|
|
20
|
+
|
|
7
21
|
declare const _default$1: _typescript_eslint_utils_ts_eslint.FlatConfig.ConfigArray;
|
|
8
22
|
|
|
9
|
-
declare
|
|
10
|
-
|
|
23
|
+
declare const _default: _typescript_eslint_utils_ts_eslint.FlatConfig.ConfigArray;
|
|
24
|
+
|
|
25
|
+
declare namespace configs {
|
|
26
|
+
export { _default$7 as angular, _default$6 as base, _default$5 as jest, index as ngrx, _default$1 as tailwindcss, _default as vitest };
|
|
11
27
|
}
|
|
12
28
|
|
|
13
|
-
declare const
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
29
|
+
declare const GLOB_SRC_EXT = "?([cm])[jt]s?(x)";
|
|
30
|
+
declare const GLOB_SRC = "**/*.?([cm])[jt]s?(x)";
|
|
31
|
+
declare const GLOB_JS = "**/*.?([cm])js?(x)";
|
|
32
|
+
declare const GLOB_TS_EXT = "?([cm])ts?(x)";
|
|
33
|
+
declare const GLOB_TS = "**/*.?([cm])ts?(x)";
|
|
34
|
+
declare const GLOB_HTML = "**/*.htm?(l)";
|
|
35
|
+
declare const GLOB_TESTS: string[];
|
|
36
|
+
declare const GLOB_EXCLUDE: string[];
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Detect if the program is running inside an editor environment.
|
|
40
|
+
* @returns `true` if the program is running inside an editor environment; `false` otherwise.
|
|
41
|
+
*/
|
|
42
|
+
declare function isInEditorEnv(): boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Dedupe the base TS ESLint config.
|
|
45
|
+
* @param configs The list of configs.
|
|
46
|
+
* @returns The filtered configs.
|
|
47
|
+
*/
|
|
48
|
+
declare function dedupeTsBaseConfig(...configs: ConfigWithExtends[]): TSESLint.FlatConfig.ConfigArray;
|
|
49
|
+
/**
|
|
50
|
+
* Ensures that the "files" property is correctly set.
|
|
51
|
+
* @param files The files property value to use.
|
|
52
|
+
* @returns A function that takes the configuration and fix it.
|
|
53
|
+
*/
|
|
54
|
+
declare function ensureCorrectFiles<T extends object>(files: string[]): (config: T) => T;
|
|
55
|
+
|
|
56
|
+
declare const DEFAULT: {
|
|
57
|
+
configs: typeof configs;
|
|
22
58
|
};
|
|
23
59
|
|
|
24
|
-
export {
|
|
25
|
-
export = _default
|
|
60
|
+
export { GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_SRC, GLOB_SRC_EXT, GLOB_TESTS, GLOB_TS, GLOB_TS_EXT, dedupeTsBaseConfig, DEFAULT as default, ensureCorrectFiles, isInEditorEnv };
|