@favorodera/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.d.mts +1 -1
- package/dist/index.mjs +9 -5
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -18421,7 +18421,7 @@ declare const mdGlob = "**/*.md";
|
|
|
18421
18421
|
/** Glob pattern for matching virtual files extracted from Markdown */
|
|
18422
18422
|
declare const mdInMdGlob = "**/*.md/*.md";
|
|
18423
18423
|
/** Glob pattern for matching code blocks embedded in Markdown files */
|
|
18424
|
-
declare const codeInMdGlob = "**/*.md
|
|
18424
|
+
declare const codeInMdGlob = "**/*.md/*.{js,cjs,mjs,ts,cts,mts,vue}";
|
|
18425
18425
|
/** Glob pattern for matching scripts files */
|
|
18426
18426
|
declare const scriptsGlob = "**/*.{js,cjs,mjs,ts,cts,mts}";
|
|
18427
18427
|
/** Glob pattern for matching test files */
|
package/dist/index.mjs
CHANGED
|
@@ -15,7 +15,7 @@ const mdGlob = "**/*.md";
|
|
|
15
15
|
/** Glob pattern for matching virtual files extracted from Markdown */
|
|
16
16
|
const mdInMdGlob = "**/*.md/*.md";
|
|
17
17
|
/** Glob pattern for matching code blocks embedded in Markdown files */
|
|
18
|
-
const codeInMdGlob = "**/*.md
|
|
18
|
+
const codeInMdGlob = "**/*.md/*.{js,cjs,mjs,ts,cts,mts,vue}";
|
|
19
19
|
/** Glob pattern for matching scripts files */
|
|
20
20
|
const scriptsGlob = "**/*.{js,cjs,mjs,ts,cts,mts}";
|
|
21
21
|
/** Glob pattern for matching test files */
|
|
@@ -320,6 +320,7 @@ async function jsdoc(options) {
|
|
|
320
320
|
"jsdoc/check-indentation": "error",
|
|
321
321
|
"jsdoc/check-template-names": "error",
|
|
322
322
|
"jsdoc/imports-as-dependencies": "error",
|
|
323
|
+
"jsdoc/lines-before-block": ["error", { ignoreSingleLines: false }],
|
|
323
324
|
"jsdoc/multiline-blocks": "error",
|
|
324
325
|
"jsdoc/no-bad-blocks": "error",
|
|
325
326
|
"jsdoc/no-blank-block-descriptions": "error",
|
|
@@ -653,6 +654,7 @@ async function markdown(options) {
|
|
|
653
654
|
files: resolved.files,
|
|
654
655
|
ignores: [mdInMdGlob],
|
|
655
656
|
language: resolved.gfm ? "md/gfm" : "md/commonmark",
|
|
657
|
+
languageOptions: { frontmatter: "yaml" },
|
|
656
658
|
name: "favorodera/markdown/rules",
|
|
657
659
|
processor: mergeProcessors([markdownPlugin.processors?.markdown, processorPassThrough]),
|
|
658
660
|
rules: {
|
|
@@ -676,6 +678,7 @@ async function markdown(options) {
|
|
|
676
678
|
"no-unused-expressions": "off",
|
|
677
679
|
"no-unused-labels": "off",
|
|
678
680
|
"no-unused-vars": "off",
|
|
681
|
+
"unicode-bom": "off",
|
|
679
682
|
"node/prefer-global/process": "off",
|
|
680
683
|
"style/comma-dangle": "off",
|
|
681
684
|
"style/eol-last": "off",
|
|
@@ -688,9 +691,10 @@ async function markdown(options) {
|
|
|
688
691
|
"ts/no-unused-expressions": "off",
|
|
689
692
|
"ts/no-unused-vars": "off",
|
|
690
693
|
"ts/no-use-before-define": "off",
|
|
691
|
-
"unicode-bom": "off",
|
|
692
694
|
"unused-imports/no-unused-imports": "off",
|
|
693
|
-
"unused-imports/no-unused-vars": "off"
|
|
695
|
+
"unused-imports/no-unused-vars": "off",
|
|
696
|
+
"vue/no-unused-vars": "off",
|
|
697
|
+
"jsdoc/require-jsdoc": "off"
|
|
694
698
|
}
|
|
695
699
|
}
|
|
696
700
|
];
|
|
@@ -932,7 +936,7 @@ async function tailwind(options) {
|
|
|
932
936
|
return [{
|
|
933
937
|
name: "favorodera/tailwind/setup",
|
|
934
938
|
plugins: { tailwind: tailwindPlugin },
|
|
935
|
-
settings: {
|
|
939
|
+
settings: { "better-tailwindcss": resolved.settings }
|
|
936
940
|
}, {
|
|
937
941
|
files: resolved.files,
|
|
938
942
|
name: "favorodera/tailwind/rules",
|
|
@@ -1107,8 +1111,8 @@ async function unicorn(options) {
|
|
|
1107
1111
|
rules: {
|
|
1108
1112
|
...baseRules,
|
|
1109
1113
|
"unicorn/filename-case": "off",
|
|
1110
|
-
"unicorn/prevent-abbreviations": "off",
|
|
1111
1114
|
"unicorn/no-process-exit": "off",
|
|
1115
|
+
"unicorn/prevent-abbreviations": "off",
|
|
1112
1116
|
...resolved.overrides
|
|
1113
1117
|
}
|
|
1114
1118
|
}];
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@favorodera/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.2",
|
|
5
5
|
"private": false,
|
|
6
6
|
"description": "Opinionated, type-safe flat ESLint configuration factory for Vue, TypeScript, Tailwind, and more.",
|
|
7
7
|
"author": "Favour Emeka <favorodera@gmail.com>",
|