@santi020k/eslint-config-basic 2.1.1 → 3.1.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.
@@ -30,29 +30,5 @@ declare const svelte: (options?: FrameworkOptions) => Promise<FlatConfigArray>;
30
30
  declare const tanstackStart: (options?: FrameworkOptions) => Promise<FlatConfigArray>;
31
31
  declare const vite: (options?: FrameworkOptions) => Promise<FlatConfigArray>;
32
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
33
 
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 };
34
+ export { type FrameworkFlags, type FrameworkName, type FrameworkOptions, angular, astro, createDetectedFrameworkFlags, expo, getBundledFrameworkConfig, hono, lit, nest, next, nuxt, preact, qwik, react, reactRouter, slidev, solid, svelte, tanstackStart, vite, vue };
@@ -18,7 +18,6 @@ const frameworkLoaders = /* @__PURE__ */ new Map([
18
18
  ["qwik", async () => (await loadModule("@santi020k/eslint-config-qwik")).qwik],
19
19
  ["react", async () => (await loadModule("@santi020k/eslint-config-react")).reactConfig],
20
20
  ["react-router", async () => (await loadModule("@santi020k/eslint-config-react-router")).reactRouter],
21
- ["remix", async () => (await loadModule("@santi020k/eslint-config-remix")).default],
22
21
  ["slidev", async () => (await loadModule("@santi020k/eslint-config-slidev")).slidev],
23
22
  ["solid", async () => (await loadModule("@santi020k/eslint-config-solid")).solidConfig],
24
23
  ["svelte", async () => (await loadModule("@santi020k/eslint-config-svelte")).svelteConfig],
@@ -35,7 +34,7 @@ const loadFrameworkConfigInput = (frameworkName) => {
35
34
  const pending = loader().catch((error) => {
36
35
  frameworkConfigCache.delete(frameworkName);
37
36
  throw new Error(
38
- `Unable to load optional framework config "${frameworkName}". Install "@santi020k/eslint-config-${frameworkName}" or remove that framework from your eslintConfig options.`,
37
+ `Unable to load optional framework config "${frameworkName}". Install "@santi020k/eslint-config-${frameworkName}" or remove that framework from your defineConfig options.`,
39
38
  { cause: error }
40
39
  );
41
40
  });
@@ -65,45 +64,25 @@ const svelte = createBundledFramework("svelte");
65
64
  const tanstackStart = createBundledFramework("tanstack-start");
66
65
  const vite = createBundledFramework("vite");
67
66
  const vue = createBundledFramework("vue");
68
- const remix = createBundledFramework("remix");
69
- const angularConfig = angular;
70
- const expoConfig = expo;
71
- const nestConfig = nest;
72
- const nextConfig = next;
73
- const preactConfig = preact;
74
- const reactConfig = react;
75
- const solidConfig = solid;
76
- const svelteConfig = svelte;
77
- const vueConfig = vue;
78
67
  export {
79
68
  angular,
80
- angularConfig,
81
69
  astro,
82
70
  createDetectedFrameworkFlags,
83
71
  expo,
84
- expoConfig,
85
72
  getBundledFrameworkConfig,
86
73
  hono,
87
74
  lit,
88
75
  nest,
89
- nestConfig,
90
76
  next,
91
- nextConfig,
92
77
  nuxt,
93
78
  preact,
94
- preactConfig,
95
79
  qwik,
96
80
  react,
97
- reactConfig,
98
81
  reactRouter,
99
- remix,
100
82
  slidev,
101
83
  solid,
102
- solidConfig,
103
84
  svelte,
104
- svelteConfig,
105
85
  tanstackStart,
106
86
  vite,
107
- vue,
108
- vueConfig
87
+ vue
109
88
  };
package/dist/index.d.ts CHANGED
@@ -1,9 +1,7 @@
1
1
  import { EslintConfigOptions, ConfigInput, FlatConfigArray } from '@santi020k/eslint-config-core';
2
- export { DetectedFrameworkName, DetectionOptions, EslintConfigOptions, Extension, ExtensionName, ExtensionOption, FlatConfigArray, Format, FormatName, FormatOption, ImportGroupOptions, 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, groups, hasReactConfig, jsConfig } from '@santi020k/eslint-config-core';
3
- export { AGENT_TARGETS, AgentTarget, EslintConfigFeatures, GenerateSkillOptions, GenerateSkillResult, generateAgentSkills, generateSkillContent } from './agent-skill-generator.js';
4
- 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';
5
- export { a11y, aiSdk, autogen, bestPractices, biome, boundaries, command, compat, cspell, css, cypress, deMorgan, depend, docker, drizzle, githubActions, googleGenAi, graphql, html, i18next, jest, jestDom, jsdoc, jsonc, langchain, llamaIndex, markdown, mastra, mcp, mdx, mikroOrm, noOnlyTests, node, nx, openAiAgents, oxlint, packageJson, perfectionist, playwright, pnpm, prettier, prisma, regexp, security, sequelize, sonarjs, stencil, storybook, swagger, tailwind, tanstackQuery, tanstackRouter, testingLibrary, toml, turbo, typeorm, unicorn, vitest, yaml, zod } from '@santi020k/eslint-config-integrations';
6
- export { tsConfig, typescriptConfig } from '@santi020k/eslint-config-typescript';
2
+ export { DetectedFrameworkName, DetectionOptions, EslintConfigOptions, Extension, ExtensionName, ExtensionOption, FlatConfigArray, Format, FormatName, FormatOption, ImportGroupOptions, ImportedFramework, Library, LibraryName, LibraryOption, NextMode, NextModeName, NextModeOption, OptionalConfigMap, OptionalConfigName, Preset, PresetName, PresetOption, ProjectConfigOptions, ReactConfigKeys, Runtime, RuntimeName, RuntimeOption, Setting, SettingName, SettingOption, StrictMode, Testing, TestingName, TestingOption, Tool, ToolName, ToolOption, TypeScriptMode, TypeScriptOptions, coreConfig, createCoreConfig, createGitignoreConfig, createImportGroups, detectProjectOptions, getGlobalsForRuntime, groups, hasReactConfig } from '@santi020k/eslint-config-core';
3
+ export { angular, astro, expo, hono, lit, nest, next, nuxt, preact, qwik, react, reactRouter, slidev, solid, svelte, tanstackStart, vite, vue } from './frameworks.js';
4
+ export { typescriptConfig } from '@santi020k/eslint-config-typescript';
7
5
 
8
6
  /**
9
7
  * Generates the ESLint configuration array, applying configurations
@@ -13,10 +11,6 @@ export { tsConfig, typescriptConfig } from '@santi020k/eslint-config-typescript'
13
11
  * @param {ConfigInput[]} extraConfigs - Local flat-config overrides appended after generated config
14
12
  * @returns {FlatConfigArray} The final ESLint configuration array
15
13
  */
16
- declare const eslintConfig: (options?: EslintConfigOptions, ...extraConfigs: ConfigInput[]) => Promise<FlatConfigArray>;
17
- /**
18
- * Alias for `eslintConfig()` that reads naturally in `eslint.config.*` files.
19
- */
20
14
  declare const defineConfig: (options?: EslintConfigOptions, ...extraConfigs: ConfigInput[]) => Promise<FlatConfigArray>;
21
15
 
22
- export { defineConfig, eslintConfig };
16
+ export { defineConfig };