@fabdeh/eslint-config 0.8.0-beta.3 → 0.8.0-beta.4
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.js +3 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -609,7 +609,7 @@ async function formatters(options = {}, stylistic$1 = {}, hasAngularTemplatePars
|
|
|
609
609
|
function ignores(userIgnores = [], fromFactory) {
|
|
610
610
|
return tseslint.config({
|
|
611
611
|
name: `fabdeh/ignores${fromFactory ? `/${fromFactory}` : ""}`,
|
|
612
|
-
ignores: [
|
|
612
|
+
ignores: [...!fromFactory || fromFactory === "workspace" ? GLOB_EXCLUDE : [], ...userIgnores]
|
|
613
613
|
});
|
|
614
614
|
}
|
|
615
615
|
|
|
@@ -2287,7 +2287,8 @@ async function defineProjectConfig(baseConfig, options = {}, ...userConfigs) {
|
|
|
2287
2287
|
const workspaceOptions = resolvedBaseConfig[OPTIONS_SYMBOL];
|
|
2288
2288
|
const { angular: enableAngular = isPackageExists("@angular/core"), jsdoc: enableJsdoc = options.type === "lib", ngrx: enableNgrx = NGRX_PACKAGES.some((p) => isPackageExists(p)), tailwindcss: enableTailwind = false, typescript: typescriptOptions, vitest: enableVitest = isPackageExists("vitest") } = options;
|
|
2289
2289
|
if (enableNgrx && !enableAngular) throw new Error("NgRx rules can only be enabled if Angular rules are also enabled.");
|
|
2290
|
-
const configs$1 = [
|
|
2290
|
+
const configs$1 = [];
|
|
2291
|
+
if (options.ignores && options.ignores.length > 0) configs$1.push(ignores(options.ignores));
|
|
2291
2292
|
if (enableJsdoc) {
|
|
2292
2293
|
const stylisticOptions = workspaceOptions.stylistic === false ? false : typeof workspaceOptions.stylistic === "object" ? workspaceOptions.stylistic : {};
|
|
2293
2294
|
configs$1.push(jsdoc({ stylistic: stylisticOptions }));
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fabdeh/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.8.0-beta.
|
|
4
|
+
"version": "0.8.0-beta.4",
|
|
5
5
|
"description": "My personal eslint config preset",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Fabien Dehopré",
|
|
@@ -139,7 +139,7 @@
|
|
|
139
139
|
"tsx": "^4.20.6",
|
|
140
140
|
"typescript": "~5.8.3",
|
|
141
141
|
"vitest": "^3.2.4",
|
|
142
|
-
"@fabdeh/eslint-config": "0.8.0-beta.
|
|
142
|
+
"@fabdeh/eslint-config": "0.8.0-beta.4"
|
|
143
143
|
},
|
|
144
144
|
"resolutions": {
|
|
145
145
|
"eslint": "catalog:peer"
|