@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)
|
|
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
|
package/dist/configs/html.mjs
CHANGED
|
@@ -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.
|
|
14
|
+
files: [globs.html],
|
|
15
15
|
plugins: {
|
|
16
16
|
"@html-eslint": eslintPluginHtml,
|
|
17
17
|
...isEnabled(unicorn) && { unicorn: eslintPluginUnicorn }
|
|
@@ -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", "✔")}
|
|
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