@shayanthenerd/eslint-config 0.26.0 → 0.26.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 CHANGED
@@ -27,7 +27,7 @@ ESLint configuration for enforcing best practices and maintaining a consistent c
27
27
  Legend:
28
28
  - ✅ Enabled by default
29
29
  - ❌ Disabled by default
30
- - 🔎 [Automatically detected](#automatic-dependency-detection) (`autoDetectDeps: true`, `env: 'browser'` for Baseline)
30
+ - 🔎 [Automatically detected](#automatic-dependency-detection)
31
31
 
32
32
  | Category | Activation |
33
33
  | :---------------------------------------------------------------------------------------------------- | :--------: |
@@ -175,6 +175,8 @@ PNPM's strict dependency resolution avoids this issue.
175
175
  > [!NOTE]
176
176
  > For example, `eslint-plugin-storybook` depends on `storybook`, which is hoisted by NPM and Bun. As a result, the integration for `storybook` will be enabled automatically, even if you haven't explicitly installed it.
177
177
 
178
+ `configs.useBaseline` is automatically enabled when `autoDetectDeps: true` and `env: 'browser'` (both are the defaults).
179
+
178
180
  To opt out of this behavior, either [globally disable automatic dependency detection](#customization) or manually disable the unwanted integrations that were enabled automatically.
179
181
 
180
182
  ## Framework and Tool Integrations
@@ -11,7 +11,7 @@ function getHtmlConfig(options) {
11
11
  const { overrides } = isEnabled(html) ? html : defaultOptions.configs.html;
12
12
  return mergeConfigs({
13
13
  name: "shayanthenerd/html",
14
- files: [globs.src, globs.html],
14
+ files: [globs.html],
15
15
  plugins: {
16
16
  "@html-eslint": eslintPluginHtml,
17
17
  ...isEnabled(unicorn) && { unicorn: eslintPluginUnicorn }
@@ -8,6 +8,7 @@ const defaultIgnorePatterns = [
8
8
  "**/typegen.d.ts",
9
9
  "**/next-env.d.ts",
10
10
  "**/components.d.ts",
11
+ "**/routeTree.gen.ts",
11
12
  "**/auto-import?(s).d.ts",
12
13
  "**/out",
13
14
  "**/dist",
@@ -7,7 +7,7 @@ const detectedPackages = [];
7
7
  function logDetectedPackages() {
8
8
  if (detectedPackages.length > 0) {
9
9
  detectedPackages.sort();
10
- console.info(`${styleText("green", "✔")} Active ESLint integrations:`, detectedPackages.map((packageName) => styleText("blue", packageName)).join(", "));
10
+ console.info(`${styleText("green", "✔")} ESLint integrations enabled via dependency detection:`, detectedPackages.map((packageName) => styleText("blue", packageName)).join(", "));
11
11
  }
12
12
  }
13
13
  function isPackageDetected(packageName, options) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shayanthenerd/eslint-config",
3
- "version": "0.26.0",
3
+ "version": "0.26.1",
4
4
  "description": "A modern, flexible ESLint configuration for enforcing best practices and maintaining a consistent coding style",
5
5
  "keywords": [
6
6
  "eslint",