@jsse/eslint-config 0.2.33 → 0.3.0
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/CHANGELOG.md +11 -0
- package/dist/cli.js +1 -1
- package/dist/esm/configs/unicorn.js +2 -3
- package/dist/esm/fixable.js +4 -1
- package/dist/esm/generated/version.d.ts +1 -1
- package/dist/esm/generated/version.js +1 -1
- package/dist/esm/plugins.d.ts +14 -1
- package/dist/esm/plugins.js +6 -0
- package/dist/esm/types.d.ts +1 -0
- package/dist/index.d.ts +179 -213
- package/dist/index.js +216 -29
- package/package.json +24 -26
- package/dist/cli.cjs +0 -723
- package/dist/cli.d.cts +0 -2
- package/dist/index.cjs +0 -13570
- package/dist/index.d.cts +0 -25888
package/CHANGELOG.md
CHANGED
package/dist/cli.js
CHANGED
|
@@ -13,7 +13,7 @@ function unicornOff() {
|
|
|
13
13
|
"unicorn/prevent-abbreviations": "off", // Super insanely annoying rule
|
|
14
14
|
};
|
|
15
15
|
}
|
|
16
|
-
function unicornRecommended() {
|
|
16
|
+
function unicornRecommended(pluginUnicorn) {
|
|
17
17
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-return, @typescript-eslint/no-unsafe-member-access
|
|
18
18
|
const rules = pluginUnicorn.configs.recommended.rules;
|
|
19
19
|
if (rules === undefined) {
|
|
@@ -30,7 +30,7 @@ export const unicorn = async () => {
|
|
|
30
30
|
unicorn: pluginUnicorn,
|
|
31
31
|
},
|
|
32
32
|
rules: {
|
|
33
|
-
...unicornRecommended(),
|
|
33
|
+
...unicornRecommended(pluginUnicorn),
|
|
34
34
|
...unicornOff(),
|
|
35
35
|
"unicorn/better-regex": "error",
|
|
36
36
|
"unicorn/consistent-empty-array-spread": "error",
|
|
@@ -60,7 +60,6 @@ export const unicorn = async () => {
|
|
|
60
60
|
"unicorn/no-static-only-class": "error",
|
|
61
61
|
"unicorn/no-unnecessary-await": "error",
|
|
62
62
|
// Keep regex literals safe!
|
|
63
|
-
"unicorn/no-unsafe-regex": "error",
|
|
64
63
|
"unicorn/no-zero-fractions": "error",
|
|
65
64
|
// Lowercase number formatting for octal, hex, binary (0x1ERROR instead of 0X1'error')
|
|
66
65
|
"unicorn/number-literal-case": "error",
|
package/dist/esm/fixable.js
CHANGED
|
@@ -264,6 +264,8 @@ export const fixableRules = {
|
|
|
264
264
|
unicorn: [
|
|
265
265
|
"unicorn/better-regex",
|
|
266
266
|
"unicorn/catch-error-name",
|
|
267
|
+
"unicorn/consistent-assert",
|
|
268
|
+
"unicorn/consistent-date-clone",
|
|
267
269
|
"unicorn/consistent-destructuring",
|
|
268
270
|
"unicorn/consistent-empty-array-spread",
|
|
269
271
|
"unicorn/consistent-existence-index-check",
|
|
@@ -279,9 +281,10 @@ export const fixableRules = {
|
|
|
279
281
|
"unicorn/no-console-spaces",
|
|
280
282
|
"unicorn/no-for-loop",
|
|
281
283
|
"unicorn/no-hex-escape",
|
|
282
|
-
"unicorn/no-instanceof-
|
|
284
|
+
"unicorn/no-instanceof-builtins",
|
|
283
285
|
"unicorn/no-length-as-slice-end",
|
|
284
286
|
"unicorn/no-lonely-if",
|
|
287
|
+
"unicorn/no-named-default",
|
|
285
288
|
"unicorn/no-negated-condition",
|
|
286
289
|
"unicorn/no-nested-ternary",
|
|
287
290
|
"unicorn/no-new-array",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.3.0";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "0.
|
|
1
|
+
export const VERSION = "0.3.0";
|
package/dist/esm/plugins.d.ts
CHANGED
|
@@ -8,6 +8,16 @@ export { default as pluginN } from "eslint-plugin-n";
|
|
|
8
8
|
export { default as pluginPerfectionist } from "eslint-plugin-perfectionist";
|
|
9
9
|
export { default as pluginUnicorn } from "eslint-plugin-unicorn";
|
|
10
10
|
export { default as pluginUnusedImports } from "eslint-plugin-unused-imports";
|
|
11
|
+
export declare function importPluginUnicorn(): Promise<{
|
|
12
|
+
pluginUnicorn: import("eslint").ESLint.Plugin & {
|
|
13
|
+
configs: {
|
|
14
|
+
recommended: import("eslint").Linter.FlatConfig;
|
|
15
|
+
all: import("eslint").Linter.FlatConfig;
|
|
16
|
+
"flat/all": import("eslint").Linter.FlatConfig;
|
|
17
|
+
"flat/recommended": import("eslint").Linter.FlatConfig;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
}>;
|
|
11
21
|
export declare function importPluginReact(): Promise<{
|
|
12
22
|
pluginReact: {
|
|
13
23
|
deprecatedRules: Partial<{
|
|
@@ -1551,7 +1561,10 @@ export declare function importPluginTsdoc(): Promise<{
|
|
|
1551
1561
|
};
|
|
1552
1562
|
}>;
|
|
1553
1563
|
export declare function importPluginStylistic(): Promise<{
|
|
1554
|
-
pluginStylistic:
|
|
1564
|
+
pluginStylistic: {
|
|
1565
|
+
rules: import("@stylistic/eslint-plugin").Rules;
|
|
1566
|
+
configs: import("eslint").ESLint.Plugin["configs"] & import("@stylistic/eslint-plugin").Configs;
|
|
1567
|
+
};
|
|
1555
1568
|
}>;
|
|
1556
1569
|
export declare function importPluginTailwind(): Promise<{
|
|
1557
1570
|
pluginTailwind: any;
|
package/dist/esm/plugins.js
CHANGED
|
@@ -14,6 +14,12 @@ export { default as pluginN } from "eslint-plugin-n";
|
|
|
14
14
|
export { default as pluginPerfectionist } from "eslint-plugin-perfectionist";
|
|
15
15
|
export { default as pluginUnicorn } from "eslint-plugin-unicorn";
|
|
16
16
|
export { default as pluginUnusedImports } from "eslint-plugin-unused-imports";
|
|
17
|
+
export async function importPluginUnicorn() {
|
|
18
|
+
const pluginUnicorn = await interopDefault(import("eslint-plugin-unicorn"));
|
|
19
|
+
return {
|
|
20
|
+
pluginUnicorn,
|
|
21
|
+
};
|
|
22
|
+
}
|
|
17
23
|
export async function importPluginReact() {
|
|
18
24
|
const pluginReact = await interopDefault(import("eslint-plugin-react"));
|
|
19
25
|
return {
|
package/dist/esm/types.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import type { Linter } from "eslint";
|
|
|
3
3
|
import type { FlatGitignoreOptions } from "eslint-config-flat-gitignore";
|
|
4
4
|
import type { RuleOptionsUnion as RuleOptions } from "./generated/rule-options.js";
|
|
5
5
|
export type Awaitable<T> = T | Promise<T>;
|
|
6
|
+
export type UnPromise<T> = T extends Promise<infer U> ? U : T;
|
|
6
7
|
export type Rules = RuleOptions;
|
|
7
8
|
export type LanguageOptions = Linter.Config["languageOptions"];
|
|
8
9
|
export type TypedFlatConfigItem = Omit<Linter.Config<Linter.RulesRecord & Rules>, "plugins"> & {
|