@santi020k/eslint-config-lite 2.0.0-beta.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/CHANGELOG.md +47 -0
- package/LICENSE +21 -0
- package/README.md +11 -0
- package/dist/compose.d.ts +10 -0
- package/dist/compose.js +30 -0
- package/dist/frameworks.d.ts +58 -0
- package/dist/frameworks.js +105 -0
- package/dist/index.d.ts +19 -0
- package/dist/index.js +742 -0
- package/dist/integrations.d.ts +12 -0
- package/dist/integrations.js +41 -0
- package/dist/lazy.d.ts +3 -0
- package/dist/lazy.js +9 -0
- package/dist/resolvers.d.ts +15 -0
- package/dist/resolvers.js +96 -0
- package/package.json +167 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# @santi020k/eslint-config-lite
|
|
2
|
+
|
|
3
|
+
## 2.0.0-beta.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#87](https://github.com/santi020k/eslint-config-basic/pull/87) [`2ee503b`](https://github.com/santi020k/eslint-config-basic/commit/2ee503be55f5484624ee2e873fe59f348709eadc) Thanks [@santi020k](https://github.com/santi020k)! - Add `@santi020k/eslint-config-lite` as an optional composer package for projects that want to install framework and integration config packages manually. The full `@santi020k/eslint-config-basic` package remains the recommended default install.
|
|
8
|
+
|
|
9
|
+
Expose integration composition helpers from `@santi020k/eslint-config-integrations` so the lite package can lazy-load integration configs only when selected.
|
|
10
|
+
|
|
11
|
+
Teach `basic-eslint doctor` to recognize lite configs and warn when detected frameworks or integrations are missing their manually installed config packages.
|
|
12
|
+
|
|
13
|
+
Add `basic-eslint doctor --lite-install` to print the detected package-manager install command for switching a project to the lite package, including framework config packages, integrations, ESLint, and TypeScript when needed.
|
|
14
|
+
|
|
15
|
+
Document package-choice metrics, a Basic-to-Lite migration recipe, and a lite-specific `Preset.All` warning.
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies [[`2ee503b`](https://github.com/santi020k/eslint-config-basic/commit/2ee503be55f5484624ee2e873fe59f348709eadc), [`2ee503b`](https://github.com/santi020k/eslint-config-basic/commit/2ee503be55f5484624ee2e873fe59f348709eadc), [`2ee503b`](https://github.com/santi020k/eslint-config-basic/commit/2ee503be55f5484624ee2e873fe59f348709eadc), [`2ee503b`](https://github.com/santi020k/eslint-config-basic/commit/2ee503be55f5484624ee2e873fe59f348709eadc), [`2ee503b`](https://github.com/santi020k/eslint-config-basic/commit/2ee503be55f5484624ee2e873fe59f348709eadc), [`2ee503b`](https://github.com/santi020k/eslint-config-basic/commit/2ee503be55f5484624ee2e873fe59f348709eadc), [`2ee503b`](https://github.com/santi020k/eslint-config-basic/commit/2ee503be55f5484624ee2e873fe59f348709eadc), [`2ee503b`](https://github.com/santi020k/eslint-config-basic/commit/2ee503be55f5484624ee2e873fe59f348709eadc), [`2ee503b`](https://github.com/santi020k/eslint-config-basic/commit/2ee503be55f5484624ee2e873fe59f348709eadc), [`2ee503b`](https://github.com/santi020k/eslint-config-basic/commit/2ee503be55f5484624ee2e873fe59f348709eadc), [`2ee503b`](https://github.com/santi020k/eslint-config-basic/commit/2ee503be55f5484624ee2e873fe59f348709eadc), [`2ee503b`](https://github.com/santi020k/eslint-config-basic/commit/2ee503be55f5484624ee2e873fe59f348709eadc), [`2ee503b`](https://github.com/santi020k/eslint-config-basic/commit/2ee503be55f5484624ee2e873fe59f348709eadc), [`2ee503b`](https://github.com/santi020k/eslint-config-basic/commit/2ee503be55f5484624ee2e873fe59f348709eadc)]:
|
|
20
|
+
- @santi020k/eslint-config-preact@2.0.0-beta.0
|
|
21
|
+
- @santi020k/eslint-config-core@2.0.0-beta.0
|
|
22
|
+
- @santi020k/eslint-config-integrations@2.0.0-beta.0
|
|
23
|
+
- @santi020k/eslint-config-angular@2.0.0-beta.0
|
|
24
|
+
- @santi020k/eslint-config-astro@2.0.0-beta.0
|
|
25
|
+
- @santi020k/eslint-config-expo@2.0.0-beta.0
|
|
26
|
+
- @santi020k/eslint-config-hono@2.0.0-beta.0
|
|
27
|
+
- @santi020k/eslint-config-lit@2.0.0-beta.0
|
|
28
|
+
- @santi020k/eslint-config-nest@2.0.0-beta.0
|
|
29
|
+
- @santi020k/eslint-config-next@2.0.0-beta.0
|
|
30
|
+
- @santi020k/eslint-config-nuxt@2.0.0-beta.0
|
|
31
|
+
- @santi020k/eslint-config-qwik@2.0.0-beta.0
|
|
32
|
+
- @santi020k/eslint-config-react@2.0.0-beta.0
|
|
33
|
+
- @santi020k/eslint-config-react-router@2.0.0-beta.0
|
|
34
|
+
- @santi020k/eslint-config-remix@2.0.0-beta.0
|
|
35
|
+
- @santi020k/eslint-config-slidev@2.0.0-beta.0
|
|
36
|
+
- @santi020k/eslint-config-solid@2.0.0-beta.0
|
|
37
|
+
- @santi020k/eslint-config-svelte@2.0.0-beta.0
|
|
38
|
+
- @santi020k/eslint-config-tanstack-start@2.0.0-beta.0
|
|
39
|
+
- @santi020k/eslint-config-typescript@2.0.0-beta.0
|
|
40
|
+
- @santi020k/eslint-config-vite@2.0.0-beta.0
|
|
41
|
+
- @santi020k/eslint-config-vue@2.0.0-beta.0
|
|
42
|
+
|
|
43
|
+
## 1.6.0
|
|
44
|
+
|
|
45
|
+
### Minor Changes
|
|
46
|
+
|
|
47
|
+
- Add the lite composer package for manual framework and integration installs.
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 santi020k
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# @santi020k/eslint-config-lite
|
|
2
|
+
|
|
3
|
+
Lite composer for projects that install framework and integration config packages manually.
|
|
4
|
+
|
|
5
|
+
This package is part of the [`@santi020k/eslint-config-basic`](https://github.com/santi020k/eslint-config-basic) monorepo.
|
|
6
|
+
|
|
7
|
+
- Docs: [Lite package](https://eslint.santi020k.com/packages/lite.html)
|
|
8
|
+
- Repository: [santi020k/eslint-config-basic](https://github.com/santi020k/eslint-config-basic)
|
|
9
|
+
- Author: [santi020k](https://santi020k.com)
|
|
10
|
+
|
|
11
|
+
The canonical documentation lives on the Starlight site, so this README intentionally stays short to avoid duplication.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FlatConfigArray } from '@santi020k/eslint-config-core';
|
|
2
|
+
|
|
3
|
+
type NormalizedStrictMode = 'ci' | 'pedantic' | 'recommended';
|
|
4
|
+
declare const normalizeStrictMode: (strict: boolean | NormalizedStrictMode | undefined) => NormalizedStrictMode;
|
|
5
|
+
/**
|
|
6
|
+
* Applies strict mode by promoting all 'warn' rules to 'error'.
|
|
7
|
+
*/
|
|
8
|
+
declare const applyStrictMode: (configs: FlatConfigArray, strict: boolean | NormalizedStrictMode | undefined) => FlatConfigArray;
|
|
9
|
+
|
|
10
|
+
export { type NormalizedStrictMode, applyStrictMode, normalizeStrictMode };
|
package/dist/compose.js
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
const normalizeStrictMode = (strict) => {
|
|
2
|
+
if (strict === true) return "ci";
|
|
3
|
+
if (strict === "ci" || strict === "pedantic") return strict;
|
|
4
|
+
return "recommended";
|
|
5
|
+
};
|
|
6
|
+
const promoteRuleSeverity = (value) => {
|
|
7
|
+
if (value === void 0) return void 0;
|
|
8
|
+
if (value === "warn" || value === 1) return "error";
|
|
9
|
+
if (Array.isArray(value) && (value[0] === "warn" || value[0] === 1)) {
|
|
10
|
+
return ["error", ...value.slice(1)];
|
|
11
|
+
}
|
|
12
|
+
return value;
|
|
13
|
+
};
|
|
14
|
+
const applyStrictMode = (configs, strict) => {
|
|
15
|
+
const strictMode = normalizeStrictMode(strict);
|
|
16
|
+
if (strictMode === "recommended") return configs;
|
|
17
|
+
return configs.map((config) => {
|
|
18
|
+
if (config.rules) {
|
|
19
|
+
const strictRules = Object.fromEntries(
|
|
20
|
+
Object.entries(config.rules).map(([key, value]) => [key, promoteRuleSeverity(value)])
|
|
21
|
+
);
|
|
22
|
+
return { ...config, rules: strictRules };
|
|
23
|
+
}
|
|
24
|
+
return config;
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
export {
|
|
28
|
+
applyStrictMode,
|
|
29
|
+
normalizeStrictMode
|
|
30
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { DetectedFrameworkName, Runtime, FlatConfigArray } from '@santi020k/eslint-config-core';
|
|
2
|
+
|
|
3
|
+
type FrameworkFlags = Partial<Record<FrameworkName, true>>;
|
|
4
|
+
type FrameworkName = DetectedFrameworkName;
|
|
5
|
+
interface FrameworkOptions {
|
|
6
|
+
[key: string]: unknown;
|
|
7
|
+
hasReact?: boolean;
|
|
8
|
+
hasSolid?: boolean;
|
|
9
|
+
hasSvelte?: boolean;
|
|
10
|
+
hasVue?: boolean;
|
|
11
|
+
runtime?: Runtime;
|
|
12
|
+
}
|
|
13
|
+
declare const createDetectedFrameworkFlags: (detectedFrameworks?: DetectedFrameworkName[]) => FrameworkFlags;
|
|
14
|
+
declare const getBundledFrameworkConfig: (frameworkName: FrameworkName, options?: FrameworkOptions) => Promise<FlatConfigArray>;
|
|
15
|
+
declare const angular: (options?: FrameworkOptions) => Promise<FlatConfigArray>;
|
|
16
|
+
declare const astro: (options?: FrameworkOptions) => Promise<FlatConfigArray>;
|
|
17
|
+
declare const expo: (options?: FrameworkOptions) => Promise<FlatConfigArray>;
|
|
18
|
+
declare const hono: (options?: FrameworkOptions) => Promise<FlatConfigArray>;
|
|
19
|
+
declare const lit: (options?: FrameworkOptions) => Promise<FlatConfigArray>;
|
|
20
|
+
declare const nest: (options?: FrameworkOptions) => Promise<FlatConfigArray>;
|
|
21
|
+
declare const next: (options?: FrameworkOptions) => Promise<FlatConfigArray>;
|
|
22
|
+
declare const nuxt: (options?: FrameworkOptions) => Promise<FlatConfigArray>;
|
|
23
|
+
declare const preact: (options?: FrameworkOptions) => Promise<FlatConfigArray>;
|
|
24
|
+
declare const qwik: (options?: FrameworkOptions) => Promise<FlatConfigArray>;
|
|
25
|
+
declare const react: (options?: FrameworkOptions) => Promise<FlatConfigArray>;
|
|
26
|
+
declare const reactRouter: (options?: FrameworkOptions) => Promise<FlatConfigArray>;
|
|
27
|
+
declare const slidev: (options?: FrameworkOptions) => Promise<FlatConfigArray>;
|
|
28
|
+
declare const solid: (options?: FrameworkOptions) => Promise<FlatConfigArray>;
|
|
29
|
+
declare const svelte: (options?: FrameworkOptions) => Promise<FlatConfigArray>;
|
|
30
|
+
declare const tanstackStart: (options?: FrameworkOptions) => Promise<FlatConfigArray>;
|
|
31
|
+
declare const vite: (options?: FrameworkOptions) => Promise<FlatConfigArray>;
|
|
32
|
+
declare const vue: (options?: FrameworkOptions) => Promise<FlatConfigArray>;
|
|
33
|
+
/**
|
|
34
|
+
* @deprecated Remix merged into React Router v7. Use `reactRouter` (the
|
|
35
|
+
* `react-router` framework key) instead. This alias loads the legacy Remix
|
|
36
|
+
* config and will be removed in the next major version.
|
|
37
|
+
*/
|
|
38
|
+
declare const remix: (options?: FrameworkOptions) => Promise<FlatConfigArray>;
|
|
39
|
+
/** @deprecated Use `angular` instead. */
|
|
40
|
+
declare const angularConfig: (options?: FrameworkOptions) => Promise<FlatConfigArray>;
|
|
41
|
+
/** @deprecated Use `expo` instead. */
|
|
42
|
+
declare const expoConfig: (options?: FrameworkOptions) => Promise<FlatConfigArray>;
|
|
43
|
+
/** @deprecated Use `nest` instead. */
|
|
44
|
+
declare const nestConfig: (options?: FrameworkOptions) => Promise<FlatConfigArray>;
|
|
45
|
+
/** @deprecated Use `next` instead. */
|
|
46
|
+
declare const nextConfig: (options?: FrameworkOptions) => Promise<FlatConfigArray>;
|
|
47
|
+
/** @deprecated Use `preact` instead. */
|
|
48
|
+
declare const preactConfig: (options?: FrameworkOptions) => Promise<FlatConfigArray>;
|
|
49
|
+
/** @deprecated Use `react` instead. */
|
|
50
|
+
declare const reactConfig: (options?: FrameworkOptions) => Promise<FlatConfigArray>;
|
|
51
|
+
/** @deprecated Use `solid` instead. */
|
|
52
|
+
declare const solidConfig: (options?: FrameworkOptions) => Promise<FlatConfigArray>;
|
|
53
|
+
/** @deprecated Use `svelte` instead. */
|
|
54
|
+
declare const svelteConfig: (options?: FrameworkOptions) => Promise<FlatConfigArray>;
|
|
55
|
+
/** @deprecated Use `vue` instead. */
|
|
56
|
+
declare const vueConfig: (options?: FrameworkOptions) => Promise<FlatConfigArray>;
|
|
57
|
+
|
|
58
|
+
export { type FrameworkFlags, type FrameworkName, type FrameworkOptions, angular, angularConfig, astro, createDetectedFrameworkFlags, expo, expoConfig, getBundledFrameworkConfig, hono, lit, nest, nestConfig, next, nextConfig, nuxt, preact, preactConfig, qwik, react, reactConfig, reactRouter, remix, slidev, solid, solidConfig, svelte, svelteConfig, tanstackStart, vite, vue, vueConfig };
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { loadModule } from "./lazy.js";
|
|
2
|
+
const createDetectedFrameworkFlags = (detectedFrameworks = []) => Object.fromEntries(
|
|
3
|
+
detectedFrameworks.map((framework) => [framework, true])
|
|
4
|
+
);
|
|
5
|
+
const frameworkLoaders = /* @__PURE__ */ new Map([
|
|
6
|
+
["angular", async () => (await loadModule("@santi020k/eslint-config-angular")).angularConfig],
|
|
7
|
+
["astro", async () => (await loadModule("@santi020k/eslint-config-astro")).default],
|
|
8
|
+
["expo", async () => (await loadModule("@santi020k/eslint-config-expo")).expoConfig],
|
|
9
|
+
["hono", async () => (await loadModule("@santi020k/eslint-config-hono")).hono],
|
|
10
|
+
["lit", async () => (await loadModule("@santi020k/eslint-config-lit")).lit],
|
|
11
|
+
["nest", async () => (await loadModule("@santi020k/eslint-config-nest")).nestConfig],
|
|
12
|
+
["next", async () => (await loadModule("@santi020k/eslint-config-next")).nextConfig],
|
|
13
|
+
["nuxt", async () => (await loadModule("@santi020k/eslint-config-nuxt")).nuxt],
|
|
14
|
+
["preact", async () => (await loadModule("@santi020k/eslint-config-preact")).preactConfig],
|
|
15
|
+
["qwik", async () => (await loadModule("@santi020k/eslint-config-qwik")).qwik],
|
|
16
|
+
["react", async () => (await loadModule("@santi020k/eslint-config-react")).reactConfig],
|
|
17
|
+
["react-router", async () => (await loadModule("@santi020k/eslint-config-react-router")).reactRouter],
|
|
18
|
+
["remix", async () => (await loadModule("@santi020k/eslint-config-remix")).default],
|
|
19
|
+
["slidev", async () => (await loadModule("@santi020k/eslint-config-slidev")).slidev],
|
|
20
|
+
["solid", async () => (await loadModule("@santi020k/eslint-config-solid")).solidConfig],
|
|
21
|
+
["svelte", async () => (await loadModule("@santi020k/eslint-config-svelte")).svelteConfig],
|
|
22
|
+
["tanstack-start", async () => (await loadModule("@santi020k/eslint-config-tanstack-start")).tanstackStart],
|
|
23
|
+
["vite", async () => (await loadModule("@santi020k/eslint-config-vite")).vite],
|
|
24
|
+
["vue", async () => (await loadModule("@santi020k/eslint-config-vue")).vueConfig]
|
|
25
|
+
]);
|
|
26
|
+
const frameworkConfigCache = /* @__PURE__ */ new Map();
|
|
27
|
+
const loadFrameworkConfigInput = (frameworkName) => {
|
|
28
|
+
const cached = frameworkConfigCache.get(frameworkName);
|
|
29
|
+
if (cached) return cached;
|
|
30
|
+
const loader = frameworkLoaders.get(frameworkName);
|
|
31
|
+
if (!loader) return Promise.resolve([]);
|
|
32
|
+
const pending = loader().catch((error) => {
|
|
33
|
+
throw new Error(
|
|
34
|
+
`Unable to load optional framework config "${frameworkName}". Install "@santi020k/eslint-config-${frameworkName}" when using @santi020k/eslint-config-lite, or remove that framework from your eslintConfig options.`,
|
|
35
|
+
{ cause: error }
|
|
36
|
+
);
|
|
37
|
+
});
|
|
38
|
+
frameworkConfigCache.set(frameworkName, pending);
|
|
39
|
+
return pending;
|
|
40
|
+
};
|
|
41
|
+
const getBundledFrameworkConfig = async (frameworkName, options) => {
|
|
42
|
+
const input = await loadFrameworkConfigInput(frameworkName);
|
|
43
|
+
return typeof input === "function" ? input(options) : input;
|
|
44
|
+
};
|
|
45
|
+
const createBundledFramework = (frameworkName) => async (options) => getBundledFrameworkConfig(frameworkName, options);
|
|
46
|
+
const angular = createBundledFramework("angular");
|
|
47
|
+
const astro = createBundledFramework("astro");
|
|
48
|
+
const expo = createBundledFramework("expo");
|
|
49
|
+
const hono = createBundledFramework("hono");
|
|
50
|
+
const lit = createBundledFramework("lit");
|
|
51
|
+
const nest = createBundledFramework("nest");
|
|
52
|
+
const next = createBundledFramework("next");
|
|
53
|
+
const nuxt = createBundledFramework("nuxt");
|
|
54
|
+
const preact = createBundledFramework("preact");
|
|
55
|
+
const qwik = createBundledFramework("qwik");
|
|
56
|
+
const react = createBundledFramework("react");
|
|
57
|
+
const reactRouter = createBundledFramework("react-router");
|
|
58
|
+
const slidev = createBundledFramework("slidev");
|
|
59
|
+
const solid = createBundledFramework("solid");
|
|
60
|
+
const svelte = createBundledFramework("svelte");
|
|
61
|
+
const tanstackStart = createBundledFramework("tanstack-start");
|
|
62
|
+
const vite = createBundledFramework("vite");
|
|
63
|
+
const vue = createBundledFramework("vue");
|
|
64
|
+
const remix = createBundledFramework("remix");
|
|
65
|
+
const angularConfig = angular;
|
|
66
|
+
const expoConfig = expo;
|
|
67
|
+
const nestConfig = nest;
|
|
68
|
+
const nextConfig = next;
|
|
69
|
+
const preactConfig = preact;
|
|
70
|
+
const reactConfig = react;
|
|
71
|
+
const solidConfig = solid;
|
|
72
|
+
const svelteConfig = svelte;
|
|
73
|
+
const vueConfig = vue;
|
|
74
|
+
export {
|
|
75
|
+
angular,
|
|
76
|
+
angularConfig,
|
|
77
|
+
astro,
|
|
78
|
+
createDetectedFrameworkFlags,
|
|
79
|
+
expo,
|
|
80
|
+
expoConfig,
|
|
81
|
+
getBundledFrameworkConfig,
|
|
82
|
+
hono,
|
|
83
|
+
lit,
|
|
84
|
+
nest,
|
|
85
|
+
nestConfig,
|
|
86
|
+
next,
|
|
87
|
+
nextConfig,
|
|
88
|
+
nuxt,
|
|
89
|
+
preact,
|
|
90
|
+
preactConfig,
|
|
91
|
+
qwik,
|
|
92
|
+
react,
|
|
93
|
+
reactConfig,
|
|
94
|
+
reactRouter,
|
|
95
|
+
remix,
|
|
96
|
+
slidev,
|
|
97
|
+
solid,
|
|
98
|
+
solidConfig,
|
|
99
|
+
svelte,
|
|
100
|
+
svelteConfig,
|
|
101
|
+
tanstackStart,
|
|
102
|
+
vite,
|
|
103
|
+
vue,
|
|
104
|
+
vueConfig
|
|
105
|
+
};
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { EslintConfigOptions, FlatConfigArray } from '@santi020k/eslint-config-core';
|
|
2
|
+
export { DetectedFrameworkName, DetectionOptions, EslintConfigOptions, Extension, ExtensionName, ExtensionOption, FlatConfigArray, Format, FormatName, FormatOption, ImportedFramework, Library, LibraryName, LibraryOption, NextMode, NextModeName, NextModeOption, OptionalConfigMap, OptionalConfigName, Preset, PresetName, PresetOption, ReactConfigKeys, Runtime, RuntimeName, RuntimeOption, Setting, SettingName, SettingOption, StrictMode, Testing, TestingName, TestingOption, Tool, ToolName, ToolOption, TypeScriptMode, TypeScriptOptions, coreConfig, createCoreConfig, createImportGroups, detectProjectOptions, getGlobalsForRuntime, gitignore, hasReactConfig, jsConfig } from '@santi020k/eslint-config-core';
|
|
3
|
+
export { angular, angularConfig, astro, expo, expoConfig, hono, lit, nest, nestConfig, next, nextConfig, nuxt, preact, preactConfig, qwik, react, reactConfig, reactRouter, remix, slidev, solid, solidConfig, svelte, svelteConfig, tanstackStart, vite, vue, vueConfig } from './frameworks.js';
|
|
4
|
+
export { tsConfig, typescriptConfig } from '@santi020k/eslint-config-typescript';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Generates the ESLint configuration array, applying configurations
|
|
8
|
+
* and integration settings based on the input configuration.
|
|
9
|
+
*
|
|
10
|
+
* @param {EslintConfigOptions} options - Configuration and integration settings
|
|
11
|
+
* @returns {FlatConfigArray} The final ESLint configuration array
|
|
12
|
+
*/
|
|
13
|
+
declare const eslintConfig: (options?: EslintConfigOptions) => Promise<FlatConfigArray>;
|
|
14
|
+
/**
|
|
15
|
+
* Alias for `eslintConfig()` that reads naturally in `eslint.config.*` files.
|
|
16
|
+
*/
|
|
17
|
+
declare const defineConfig: (options?: EslintConfigOptions) => Promise<FlatConfigArray>;
|
|
18
|
+
|
|
19
|
+
export { defineConfig, eslintConfig };
|