@fabdeh/eslint-config 0.1.0 → 0.1.2
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.cjs +6 -1
- package/dist/index.d.cts +8 -0
- package/dist/index.d.mts +8 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.mjs +6 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -103,7 +103,7 @@ const GLOB_EXCLUDE = [
|
|
|
103
103
|
];
|
|
104
104
|
|
|
105
105
|
const SCOPE_URL = node_url.fileURLToPath(new URL(".", (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index.cjs', document.baseURI).href))));
|
|
106
|
-
const IS_CWD_IN_SCOPE = localPkg.isPackageExists("@
|
|
106
|
+
const IS_CWD_IN_SCOPE = localPkg.isPackageExists("@fabdeh/eslint-config");
|
|
107
107
|
function isInEditorEnv() {
|
|
108
108
|
if (process__default.env.CI) {
|
|
109
109
|
return false;
|
|
@@ -1946,6 +1946,11 @@ async function createConfig(options = {}, ...userConfigs) {
|
|
|
1946
1946
|
stylistic: stylisticOptions
|
|
1947
1947
|
}));
|
|
1948
1948
|
}
|
|
1949
|
+
if (options.markdown ?? true) {
|
|
1950
|
+
configs.push(markdown({
|
|
1951
|
+
overrides: typeof options.markdown === "object" ? options.markdown.overrides : {}
|
|
1952
|
+
}));
|
|
1953
|
+
}
|
|
1949
1954
|
if (options.formatters) {
|
|
1950
1955
|
configs.push(formatters(options.formatters, typeof stylisticOptions === "boolean" ? {} : stylisticOptions));
|
|
1951
1956
|
}
|
package/dist/index.d.cts
CHANGED
|
@@ -378,6 +378,14 @@ interface CreateConfigOptions {
|
|
|
378
378
|
* @default true
|
|
379
379
|
*/
|
|
380
380
|
toml?: OverridesOptions | boolean;
|
|
381
|
+
/**
|
|
382
|
+
* Enable linting for **code snippets** in Markdown.
|
|
383
|
+
*
|
|
384
|
+
* For formatting Markdown content, enable also `formatters.markdown`.
|
|
385
|
+
*
|
|
386
|
+
* @default true
|
|
387
|
+
*/
|
|
388
|
+
markdown?: OverridesOptions | boolean;
|
|
381
389
|
/**
|
|
382
390
|
* Use external formatters to format files.
|
|
383
391
|
*
|
package/dist/index.d.mts
CHANGED
|
@@ -378,6 +378,14 @@ interface CreateConfigOptions {
|
|
|
378
378
|
* @default true
|
|
379
379
|
*/
|
|
380
380
|
toml?: OverridesOptions | boolean;
|
|
381
|
+
/**
|
|
382
|
+
* Enable linting for **code snippets** in Markdown.
|
|
383
|
+
*
|
|
384
|
+
* For formatting Markdown content, enable also `formatters.markdown`.
|
|
385
|
+
*
|
|
386
|
+
* @default true
|
|
387
|
+
*/
|
|
388
|
+
markdown?: OverridesOptions | boolean;
|
|
381
389
|
/**
|
|
382
390
|
* Use external formatters to format files.
|
|
383
391
|
*
|
package/dist/index.d.ts
CHANGED
|
@@ -378,6 +378,14 @@ interface CreateConfigOptions {
|
|
|
378
378
|
* @default true
|
|
379
379
|
*/
|
|
380
380
|
toml?: OverridesOptions | boolean;
|
|
381
|
+
/**
|
|
382
|
+
* Enable linting for **code snippets** in Markdown.
|
|
383
|
+
*
|
|
384
|
+
* For formatting Markdown content, enable also `formatters.markdown`.
|
|
385
|
+
*
|
|
386
|
+
* @default true
|
|
387
|
+
*/
|
|
388
|
+
markdown?: OverridesOptions | boolean;
|
|
381
389
|
/**
|
|
382
390
|
* Use external formatters to format files.
|
|
383
391
|
*
|
package/dist/index.mjs
CHANGED
|
@@ -74,7 +74,7 @@ const GLOB_EXCLUDE = [
|
|
|
74
74
|
];
|
|
75
75
|
|
|
76
76
|
const SCOPE_URL = fileURLToPath(new URL(".", import.meta.url));
|
|
77
|
-
const IS_CWD_IN_SCOPE = isPackageExists("@
|
|
77
|
+
const IS_CWD_IN_SCOPE = isPackageExists("@fabdeh/eslint-config");
|
|
78
78
|
function isInEditorEnv() {
|
|
79
79
|
if (process.env.CI) {
|
|
80
80
|
return false;
|
|
@@ -1917,6 +1917,11 @@ async function createConfig(options = {}, ...userConfigs) {
|
|
|
1917
1917
|
stylistic: stylisticOptions
|
|
1918
1918
|
}));
|
|
1919
1919
|
}
|
|
1920
|
+
if (options.markdown ?? true) {
|
|
1921
|
+
configs.push(markdown({
|
|
1922
|
+
overrides: typeof options.markdown === "object" ? options.markdown.overrides : {}
|
|
1923
|
+
}));
|
|
1924
|
+
}
|
|
1920
1925
|
if (options.formatters) {
|
|
1921
1926
|
configs.push(formatters(options.formatters, typeof stylisticOptions === "boolean" ? {} : stylisticOptions));
|
|
1922
1927
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fabdeh/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.2",
|
|
5
5
|
"packageManager": "pnpm@10.0.0",
|
|
6
6
|
"description": "My personal eslint config preset",
|
|
7
7
|
"author": "Fabien Dehopré <fabien@dehopre.dev> (https://github.com/FabienDehopre)",
|