glosslint 0.0.1 → 0.1.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 +56 -36
- package/dist/cli.d.mts +49 -5
- package/dist/cli.mjs +469 -61
- package/dist/eslint.d.mts +10 -6
- package/dist/eslint.mjs +19 -771
- package/dist/format-E5eFHoQT.mjs +66 -0
- package/dist/glossary-DmTK_e1d.d.mts +32 -0
- package/dist/glossary-ztPpmozR.mjs +1905 -0
- package/dist/inclusive-CP6oU8NW.mjs +520 -0
- package/dist/index.d.mts +6 -27
- package/dist/index.mjs +3 -459
- package/dist/oxlint.d.mts +26 -0
- package/dist/oxlint.mjs +33 -0
- package/dist/presets/inclusive.d.mts +1 -1
- package/dist/presets/inclusive.mjs +1 -520
- package/dist/presets/tech.d.mts +1 -1
- package/dist/presets/tech.mjs +1 -2401
- package/dist/rules-D9Jd07u1.mjs +792 -0
- package/dist/tech-D0v3ss45.mjs +2401 -0
- package/dist/{types-CBQGgzID.d.mts → types-Bbp_cYfZ.d.mts} +3 -1
- package/dist/x18n.d.mts +10 -5
- package/dist/x18n.mjs +12 -4
- package/package.json +17 -2
- package/dist/matcher-Xz4vspsE.mjs +0 -715
- package/dist/tools-BrdtyK9t.mjs +0 -275
package/dist/eslint.d.mts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { c as Corpus, h as KindOf } from "./types-
|
|
1
|
+
import { c as Corpus, h as KindOf } from "./types-Bbp_cYfZ.mjs";
|
|
2
2
|
import { Linter } from "eslint";
|
|
3
3
|
/** Options of the ESLint config. */
|
|
4
4
|
export interface GlosslintEslintOptions {
|
|
5
|
-
/** The
|
|
6
|
-
|
|
5
|
+
/** The glossary file to read instead of `.agents/glossary.md`. A string resolves from the current folder. */
|
|
6
|
+
glossary?: string | URL;
|
|
7
|
+
/** A corpus to use instead of a glossary file, such as `defineCorpus({ extends: [fromGlossary()], … })`. */
|
|
8
|
+
corpus?: Corpus;
|
|
7
9
|
/** Files the rules run on. */
|
|
8
10
|
files?: string[];
|
|
9
11
|
/**
|
|
@@ -20,7 +22,9 @@ export interface GlosslintEslintOptions {
|
|
|
20
22
|
kindOf?: KindOf;
|
|
21
23
|
}
|
|
22
24
|
/**
|
|
23
|
-
* ESLint flat configs that run glosslint's rules: `...glosslint(
|
|
24
|
-
*
|
|
25
|
+
* ESLint flat configs that run glosslint's rules: `...glosslint()`. The corpus comes from `corpus`, else
|
|
26
|
+
* from the `glossary` file, else from `.agents/glossary.md`, read once when the config is built. They set
|
|
27
|
+
* no parser: your config supplies typescript-eslint, vue-eslint-parser, yaml-eslint-parser or
|
|
28
|
+
* jsonc-eslint-parser.
|
|
25
29
|
*/
|
|
26
|
-
export default function glosslint(options
|
|
30
|
+
export default function glosslint(options?: GlosslintEslintOptions): Linter.Config[];
|