eslint-plugin-baseline-js 0.0.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/LICENSE +22 -0
- package/README.md +132 -0
- package/dist/index.cjs +1312 -0
- package/dist/index.d.cts +21 -0
- package/dist/index.d.mts +22 -0
- package/dist/index.mjs +1287 -0
- package/package.json +73 -0
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Rule } from "eslint";
|
|
2
|
+
|
|
3
|
+
//#region src/config.d.ts
|
|
4
|
+
type BaselineOption = "widely" | "newly" | number;
|
|
5
|
+
//#endregion
|
|
6
|
+
//#region src/configs/baseline.d.ts
|
|
7
|
+
declare function baselineConfigs(opts?: {
|
|
8
|
+
baseline?: BaselineOption;
|
|
9
|
+
env?: "browser" | "worker" | "node";
|
|
10
|
+
}): {
|
|
11
|
+
rules: Record<string, unknown>;
|
|
12
|
+
}[];
|
|
13
|
+
//#endregion
|
|
14
|
+
//#region src/index.d.ts
|
|
15
|
+
declare const _default: {
|
|
16
|
+
readonly rules: Record<string, Rule.RuleModule>;
|
|
17
|
+
readonly configs: {
|
|
18
|
+
readonly baseline: typeof baselineConfigs;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
export = _default;
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Rule } from "eslint";
|
|
2
|
+
|
|
3
|
+
//#region src/config.d.ts
|
|
4
|
+
type BaselineOption = "widely" | "newly" | number;
|
|
5
|
+
//#endregion
|
|
6
|
+
//#region src/configs/baseline.d.ts
|
|
7
|
+
declare function baselineConfigs(opts?: {
|
|
8
|
+
baseline?: BaselineOption;
|
|
9
|
+
env?: "browser" | "worker" | "node";
|
|
10
|
+
}): {
|
|
11
|
+
rules: Record<string, unknown>;
|
|
12
|
+
}[];
|
|
13
|
+
//#endregion
|
|
14
|
+
//#region src/index.d.ts
|
|
15
|
+
declare const _default: {
|
|
16
|
+
readonly rules: Record<string, Rule.RuleModule>;
|
|
17
|
+
readonly configs: {
|
|
18
|
+
readonly baseline: typeof baselineConfigs;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
//#endregion
|
|
22
|
+
export { _default as default };
|