@jadeja/ts 1.0.0-alpha.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 +14 -0
- package/CODE_OF_CONDUCT.md +82 -0
- package/CONTRIBUTING.md +103 -0
- package/LICENSE +20 -0
- package/README.md +38 -0
- package/SECURITY.md +11 -0
- package/dist/lib.js +36 -0
- package/dist/lib.js.map +1 -0
- package/dist/oxfmt.js +65 -0
- package/dist/oxfmt.js.map +1 -0
- package/dist/oxlint.js +185 -0
- package/dist/oxlint.js.map +1 -0
- package/dist/src/configs/oxfmt/base.d.ts +42 -0
- package/dist/src/configs/oxfmt/base.d.ts.map +1 -0
- package/dist/src/configs/oxfmt/index.d.ts +4 -0
- package/dist/src/configs/oxfmt/index.d.ts.map +1 -0
- package/dist/src/configs/oxfmt/lib.d.ts +42 -0
- package/dist/src/configs/oxfmt/lib.d.ts.map +1 -0
- package/dist/src/configs/oxfmt/next.d.ts +47 -0
- package/dist/src/configs/oxfmt/next.d.ts.map +1 -0
- package/dist/src/configs/oxfmt/types.d.ts +2 -0
- package/dist/src/configs/oxfmt/types.d.ts.map +1 -0
- package/dist/src/configs/oxlint/base.d.ts +105 -0
- package/dist/src/configs/oxlint/base.d.ts.map +1 -0
- package/dist/src/configs/oxlint/index.d.ts +4 -0
- package/dist/src/configs/oxlint/index.d.ts.map +1 -0
- package/dist/src/configs/oxlint/lib.d.ts +105 -0
- package/dist/src/configs/oxlint/lib.d.ts.map +1 -0
- package/dist/src/configs/oxlint/next.d.ts +151 -0
- package/dist/src/configs/oxlint/next.d.ts.map +1 -0
- package/dist/src/configs/oxlint/types.d.ts +2 -0
- package/dist/src/configs/oxlint/types.d.ts.map +1 -0
- package/dist/src/configs/ts/base.json +12 -0
- package/dist/src/configs/ts/lib.json +9 -0
- package/dist/src/configs/ts/next.json +18 -0
- package/dist/src/lib/debounce.d.ts +9 -0
- package/dist/src/lib/debounce.d.ts.map +1 -0
- package/dist/src/lib/index.d.ts +5 -0
- package/dist/src/lib/index.d.ts.map +1 -0
- package/dist/src/lib/logger.d.ts +44 -0
- package/dist/src/lib/logger.d.ts.map +1 -0
- package/dist/src/lib/operations.d.ts +41 -0
- package/dist/src/lib/operations.d.ts.map +1 -0
- package/dist/src/lib/types.d.ts +41 -0
- package/dist/src/lib/types.d.ts.map +1 -0
- package/dist/src/lib/utils.d.ts +8 -0
- package/dist/src/lib/utils.d.ts.map +1 -0
- package/dist/src/plugins/vite/copy-folders.d.ts +17 -0
- package/dist/src/plugins/vite/copy-folders.d.ts.map +1 -0
- package/dist/src/plugins/vite/index.d.ts +2 -0
- package/dist/src/plugins/vite/index.d.ts.map +1 -0
- package/dist/src/types/index.d.ts +2 -0
- package/dist/src/types/index.d.ts.map +1 -0
- package/dist/src/types/shared.d.ts +34 -0
- package/dist/src/types/shared.d.ts.map +1 -0
- package/dist/types.js +0 -0
- package/dist/vite-plugins.js +22 -0
- package/dist/vite-plugins.js.map +1 -0
- package/package.json +119 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/configs/oxfmt/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAE,OAAO,IAAI,GAAG,EAAE,MAAM,UAAU,CAAC;AAC1C,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,WAAW,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
declare const lib: {
|
|
2
|
+
arrowParens: "always";
|
|
3
|
+
bracketSpacing: true;
|
|
4
|
+
endOfLine: "lf";
|
|
5
|
+
ignorePatterns: never[];
|
|
6
|
+
insertFinalNewline: true;
|
|
7
|
+
jsdoc: {
|
|
8
|
+
addDefaultToDescription: true;
|
|
9
|
+
bracketSpacing: true;
|
|
10
|
+
capitalizeDescriptions: false;
|
|
11
|
+
commentLineStrategy: string;
|
|
12
|
+
descriptionTag: false;
|
|
13
|
+
descriptionWithDot: false;
|
|
14
|
+
keepUnparsableExampleIndent: true;
|
|
15
|
+
lineWrappingStyle: string;
|
|
16
|
+
preferCodeFences: true;
|
|
17
|
+
separateReturnsFromParam: true;
|
|
18
|
+
separateTagGroups: true;
|
|
19
|
+
};
|
|
20
|
+
objectWrap: "preserve";
|
|
21
|
+
printWidth: number;
|
|
22
|
+
proseWrap: "always";
|
|
23
|
+
quoteProps: "as-needed";
|
|
24
|
+
semi: true;
|
|
25
|
+
singleQuote: false;
|
|
26
|
+
sortImports: {
|
|
27
|
+
groups: (string | string[])[];
|
|
28
|
+
ignoreCase: true;
|
|
29
|
+
internalPattern: string[];
|
|
30
|
+
newlinesBetween: true;
|
|
31
|
+
order: "asc";
|
|
32
|
+
partitionByComment: true;
|
|
33
|
+
partitionByNewline: false;
|
|
34
|
+
sortSideEffects: false;
|
|
35
|
+
};
|
|
36
|
+
sortPackageJson: false;
|
|
37
|
+
tabWidth: number;
|
|
38
|
+
trailingComma: "all";
|
|
39
|
+
useTabs: false;
|
|
40
|
+
};
|
|
41
|
+
export default lib;
|
|
42
|
+
//# sourceMappingURL=lib.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lib.d.ts","sourceRoot":"","sources":["../../../../src/configs/oxfmt/lib.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAoC,CAAC;AAI9C,eAAe,GAAG,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
declare const next: {
|
|
2
|
+
bracketSameLine: false;
|
|
3
|
+
embeddedLanguageFormatting: "auto";
|
|
4
|
+
htmlWhitespaceSensitivity: "css";
|
|
5
|
+
jsxSingleQuote: false;
|
|
6
|
+
singleAttributePerLine: false;
|
|
7
|
+
arrowParens: "always";
|
|
8
|
+
bracketSpacing: true;
|
|
9
|
+
endOfLine: "lf";
|
|
10
|
+
ignorePatterns: never[];
|
|
11
|
+
insertFinalNewline: true;
|
|
12
|
+
jsdoc: {
|
|
13
|
+
addDefaultToDescription: true;
|
|
14
|
+
bracketSpacing: true;
|
|
15
|
+
capitalizeDescriptions: false;
|
|
16
|
+
commentLineStrategy: string;
|
|
17
|
+
descriptionTag: false;
|
|
18
|
+
descriptionWithDot: false;
|
|
19
|
+
keepUnparsableExampleIndent: true;
|
|
20
|
+
lineWrappingStyle: string;
|
|
21
|
+
preferCodeFences: true;
|
|
22
|
+
separateReturnsFromParam: true;
|
|
23
|
+
separateTagGroups: true;
|
|
24
|
+
};
|
|
25
|
+
objectWrap: "preserve";
|
|
26
|
+
printWidth: number;
|
|
27
|
+
proseWrap: "always";
|
|
28
|
+
quoteProps: "as-needed";
|
|
29
|
+
semi: true;
|
|
30
|
+
singleQuote: false;
|
|
31
|
+
sortImports: {
|
|
32
|
+
groups: (string | string[])[];
|
|
33
|
+
ignoreCase: true;
|
|
34
|
+
internalPattern: string[];
|
|
35
|
+
newlinesBetween: true;
|
|
36
|
+
order: "asc";
|
|
37
|
+
partitionByComment: true;
|
|
38
|
+
partitionByNewline: false;
|
|
39
|
+
sortSideEffects: false;
|
|
40
|
+
};
|
|
41
|
+
sortPackageJson: false;
|
|
42
|
+
tabWidth: number;
|
|
43
|
+
trailingComma: "all";
|
|
44
|
+
useTabs: false;
|
|
45
|
+
};
|
|
46
|
+
export default next;
|
|
47
|
+
//# sourceMappingURL=next.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"next.d.ts","sourceRoot":"","sources":["../../../../src/configs/oxfmt/next.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOa,CAAC;AAIxB,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/configs/oxfmt/types.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC"}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
declare const base: {
|
|
2
|
+
categories: {
|
|
3
|
+
correctness: "error";
|
|
4
|
+
nursery: "warn";
|
|
5
|
+
pedantic: "error";
|
|
6
|
+
perf: "error";
|
|
7
|
+
restriction: "error";
|
|
8
|
+
style: "error";
|
|
9
|
+
suspicious: "error";
|
|
10
|
+
};
|
|
11
|
+
env: {
|
|
12
|
+
builtin: true;
|
|
13
|
+
node: true;
|
|
14
|
+
};
|
|
15
|
+
options: {
|
|
16
|
+
denyWarnings: false;
|
|
17
|
+
reportUnusedDisableDirectives: "error";
|
|
18
|
+
respectEslintDisableDirectives: false;
|
|
19
|
+
typeAware: true;
|
|
20
|
+
typeCheck: false;
|
|
21
|
+
};
|
|
22
|
+
plugins: ("jsdoc" | "node" | "eslint" | "unicorn" | "typescript" | "oxc" | "import" | "promise")[];
|
|
23
|
+
rules: {
|
|
24
|
+
"capitalized-comments": ["error", string, {
|
|
25
|
+
block: {
|
|
26
|
+
ignorePattern: string;
|
|
27
|
+
};
|
|
28
|
+
ignorePattern: string;
|
|
29
|
+
}];
|
|
30
|
+
"eslint/class-methods-use-this": "off";
|
|
31
|
+
"eslint/complexity": ["error", {
|
|
32
|
+
max: number;
|
|
33
|
+
}];
|
|
34
|
+
"eslint/id-length": ["error", {
|
|
35
|
+
checkGeneric: boolean;
|
|
36
|
+
exceptions: string[];
|
|
37
|
+
}];
|
|
38
|
+
"eslint/init-declarations": "off";
|
|
39
|
+
"eslint/max-lines-per-function": ["error", {
|
|
40
|
+
max: number;
|
|
41
|
+
skipBlankLines: boolean;
|
|
42
|
+
skipComments: boolean;
|
|
43
|
+
}];
|
|
44
|
+
"eslint/max-params": ["error", {
|
|
45
|
+
max: number;
|
|
46
|
+
}];
|
|
47
|
+
"eslint/max-statements": ["error", {
|
|
48
|
+
max: number;
|
|
49
|
+
}];
|
|
50
|
+
"eslint/no-await-in-loop": "off";
|
|
51
|
+
"eslint/no-continue": "off";
|
|
52
|
+
"eslint/no-duplicate-imports": ["error", {
|
|
53
|
+
allowSeparateTypeImports: boolean;
|
|
54
|
+
}];
|
|
55
|
+
"eslint/no-magic-numbers": "off";
|
|
56
|
+
"eslint/no-plusplus": "off";
|
|
57
|
+
"eslint/no-ternary": "off";
|
|
58
|
+
"eslint/no-underscore-dangle": ["error", {
|
|
59
|
+
allow: never[];
|
|
60
|
+
}];
|
|
61
|
+
"eslint/no-use-before-define": "off";
|
|
62
|
+
"eslint/no-warning-comments": "off";
|
|
63
|
+
"eslint/require-unicode-regexp": "off";
|
|
64
|
+
"eslint/sort-imports": "off";
|
|
65
|
+
"eslint/sort-keys": "off";
|
|
66
|
+
"import/exports-last": "off";
|
|
67
|
+
"import/group-exports": "off";
|
|
68
|
+
"import/max-dependencies": ["error", {
|
|
69
|
+
max: number;
|
|
70
|
+
}];
|
|
71
|
+
"import/no-default-export": "off";
|
|
72
|
+
"import/no-named-default": "off";
|
|
73
|
+
"import/no-named-export": "off";
|
|
74
|
+
"import/no-nodejs-modules": "off";
|
|
75
|
+
"jsdoc/require-param-type": "off";
|
|
76
|
+
"jsdoc/require-returns": "off";
|
|
77
|
+
"jsdoc/require-returns-type": "off";
|
|
78
|
+
"no-unused-vars": ["error", {
|
|
79
|
+
args: string;
|
|
80
|
+
argsIgnorePattern: string;
|
|
81
|
+
caughtErrors: string;
|
|
82
|
+
caughtErrorsIgnorePattern: string;
|
|
83
|
+
destructuredArrayIgnorePattern: string;
|
|
84
|
+
}];
|
|
85
|
+
"oxc/no-async-await": "off";
|
|
86
|
+
"oxc/no-optional-chaining": "off";
|
|
87
|
+
"oxc/no-rest-spread-properties": "off";
|
|
88
|
+
"promise/avoid-new": "off";
|
|
89
|
+
"typescript/explicit-function-return-type": "off";
|
|
90
|
+
"typescript/explicit-module-boundary-types": "off";
|
|
91
|
+
"typescript/no-inferrable-types": "off";
|
|
92
|
+
"typescript/no-unnecessary-condition": "off";
|
|
93
|
+
"typescript/no-unnecessary-type-parameters": "off";
|
|
94
|
+
"typescript/no-unsafe-type-assertion": "off";
|
|
95
|
+
"typescript/no-useless-default-assignment": "off";
|
|
96
|
+
"typescript/prefer-readonly-parameter-types": "off";
|
|
97
|
+
"typescript/restrict-template-expressions": "off";
|
|
98
|
+
"typescript/strict-boolean-expressions": "off";
|
|
99
|
+
"unicorn/no-null": "off";
|
|
100
|
+
"unicorn/no-lonely-if": "off";
|
|
101
|
+
"unicorn/switch-case-braces": "off";
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
export default base;
|
|
105
|
+
//# sourceMappingURL=base.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../src/configs/oxlint/base.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmGc,CAAC;AAIzB,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/configs/oxlint/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAE,OAAO,IAAI,GAAG,EAAE,MAAM,UAAU,CAAC;AAC1C,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,WAAW,CAAC"}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
declare const lib: {
|
|
2
|
+
rules: {
|
|
3
|
+
"eslint/id-length": ["error", {
|
|
4
|
+
checkGeneric: boolean;
|
|
5
|
+
exceptions: string[];
|
|
6
|
+
}];
|
|
7
|
+
"capitalized-comments": ["error", string, {
|
|
8
|
+
block: {
|
|
9
|
+
ignorePattern: string;
|
|
10
|
+
};
|
|
11
|
+
ignorePattern: string;
|
|
12
|
+
}];
|
|
13
|
+
"eslint/class-methods-use-this": "off";
|
|
14
|
+
"eslint/complexity": ["error", {
|
|
15
|
+
max: number;
|
|
16
|
+
}];
|
|
17
|
+
"eslint/init-declarations": "off";
|
|
18
|
+
"eslint/max-lines-per-function": ["error", {
|
|
19
|
+
max: number;
|
|
20
|
+
skipBlankLines: boolean;
|
|
21
|
+
skipComments: boolean;
|
|
22
|
+
}];
|
|
23
|
+
"eslint/max-params": ["error", {
|
|
24
|
+
max: number;
|
|
25
|
+
}];
|
|
26
|
+
"eslint/max-statements": ["error", {
|
|
27
|
+
max: number;
|
|
28
|
+
}];
|
|
29
|
+
"eslint/no-await-in-loop": "off";
|
|
30
|
+
"eslint/no-continue": "off";
|
|
31
|
+
"eslint/no-duplicate-imports": ["error", {
|
|
32
|
+
allowSeparateTypeImports: boolean;
|
|
33
|
+
}];
|
|
34
|
+
"eslint/no-magic-numbers": "off";
|
|
35
|
+
"eslint/no-plusplus": "off";
|
|
36
|
+
"eslint/no-ternary": "off";
|
|
37
|
+
"eslint/no-underscore-dangle": ["error", {
|
|
38
|
+
allow: never[];
|
|
39
|
+
}];
|
|
40
|
+
"eslint/no-use-before-define": "off";
|
|
41
|
+
"eslint/no-warning-comments": "off";
|
|
42
|
+
"eslint/require-unicode-regexp": "off";
|
|
43
|
+
"eslint/sort-imports": "off";
|
|
44
|
+
"eslint/sort-keys": "off";
|
|
45
|
+
"import/exports-last": "off";
|
|
46
|
+
"import/group-exports": "off";
|
|
47
|
+
"import/max-dependencies": ["error", {
|
|
48
|
+
max: number;
|
|
49
|
+
}];
|
|
50
|
+
"import/no-default-export": "off";
|
|
51
|
+
"import/no-named-default": "off";
|
|
52
|
+
"import/no-named-export": "off";
|
|
53
|
+
"import/no-nodejs-modules": "off";
|
|
54
|
+
"jsdoc/require-param-type": "off";
|
|
55
|
+
"jsdoc/require-returns": "off";
|
|
56
|
+
"jsdoc/require-returns-type": "off";
|
|
57
|
+
"no-unused-vars": ["error", {
|
|
58
|
+
args: string;
|
|
59
|
+
argsIgnorePattern: string;
|
|
60
|
+
caughtErrors: string;
|
|
61
|
+
caughtErrorsIgnorePattern: string;
|
|
62
|
+
destructuredArrayIgnorePattern: string;
|
|
63
|
+
}];
|
|
64
|
+
"oxc/no-async-await": "off";
|
|
65
|
+
"oxc/no-optional-chaining": "off";
|
|
66
|
+
"oxc/no-rest-spread-properties": "off";
|
|
67
|
+
"promise/avoid-new": "off";
|
|
68
|
+
"typescript/explicit-function-return-type": "off";
|
|
69
|
+
"typescript/explicit-module-boundary-types": "off";
|
|
70
|
+
"typescript/no-inferrable-types": "off";
|
|
71
|
+
"typescript/no-unnecessary-condition": "off";
|
|
72
|
+
"typescript/no-unnecessary-type-parameters": "off";
|
|
73
|
+
"typescript/no-unsafe-type-assertion": "off";
|
|
74
|
+
"typescript/no-useless-default-assignment": "off";
|
|
75
|
+
"typescript/prefer-readonly-parameter-types": "off";
|
|
76
|
+
"typescript/restrict-template-expressions": "off";
|
|
77
|
+
"typescript/strict-boolean-expressions": "off";
|
|
78
|
+
"unicorn/no-null": "off";
|
|
79
|
+
"unicorn/no-lonely-if": "off";
|
|
80
|
+
"unicorn/switch-case-braces": "off";
|
|
81
|
+
};
|
|
82
|
+
categories: {
|
|
83
|
+
correctness: "error";
|
|
84
|
+
nursery: "warn";
|
|
85
|
+
pedantic: "error";
|
|
86
|
+
perf: "error";
|
|
87
|
+
restriction: "error";
|
|
88
|
+
style: "error";
|
|
89
|
+
suspicious: "error";
|
|
90
|
+
};
|
|
91
|
+
env: {
|
|
92
|
+
builtin: true;
|
|
93
|
+
node: true;
|
|
94
|
+
};
|
|
95
|
+
options: {
|
|
96
|
+
denyWarnings: false;
|
|
97
|
+
reportUnusedDisableDirectives: "error";
|
|
98
|
+
respectEslintDisableDirectives: false;
|
|
99
|
+
typeAware: true;
|
|
100
|
+
typeCheck: false;
|
|
101
|
+
};
|
|
102
|
+
plugins: ("jsdoc" | "node" | "eslint" | "unicorn" | "typescript" | "oxc" | "import" | "promise")[];
|
|
103
|
+
};
|
|
104
|
+
export default lib;
|
|
105
|
+
//# sourceMappingURL=lib.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lib.d.ts","sourceRoot":"","sources":["../../../../src/configs/oxlint/lib.ts"],"names":[],"mappings":"AASA,QAAA,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMe,CAAC;AAIzB,eAAe,GAAG,CAAC"}
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
declare const next: {
|
|
2
|
+
env: {
|
|
3
|
+
browser: true;
|
|
4
|
+
builtin: true;
|
|
5
|
+
node: true;
|
|
6
|
+
};
|
|
7
|
+
jsPlugins: {
|
|
8
|
+
name: string;
|
|
9
|
+
specifier: string;
|
|
10
|
+
}[];
|
|
11
|
+
plugins: ("jsdoc" | "node" | "eslint" | "react" | "unicorn" | "typescript" | "oxc" | "import" | "jsx-a11y" | "nextjs" | "react-perf" | "promise")[];
|
|
12
|
+
rules: {
|
|
13
|
+
"eslint/no-undefined": "off";
|
|
14
|
+
"import/no-unassigned-import": ["error", {
|
|
15
|
+
allow: string[];
|
|
16
|
+
}];
|
|
17
|
+
"react/forbid-component-props": ["error", {
|
|
18
|
+
forbid: string[];
|
|
19
|
+
}];
|
|
20
|
+
"react/jsx-filename-extension": ["error", {
|
|
21
|
+
extensions: string[];
|
|
22
|
+
}];
|
|
23
|
+
"react/jsx-pascal-case": ["error", {
|
|
24
|
+
allowAllCaps: boolean;
|
|
25
|
+
}];
|
|
26
|
+
"react/jsx-props-no-spreading": "off";
|
|
27
|
+
"react/jsx-max-depth": ["error", {
|
|
28
|
+
max: number;
|
|
29
|
+
}];
|
|
30
|
+
"react/no-multi-comp": ["error", {
|
|
31
|
+
ignoreStateless: boolean;
|
|
32
|
+
}];
|
|
33
|
+
"react/only-export-components": ["error", {
|
|
34
|
+
allowExportNames: string[];
|
|
35
|
+
}];
|
|
36
|
+
"react/react-in-jsx-scope": "off";
|
|
37
|
+
"react-hooks-js/error-boundaries": "error";
|
|
38
|
+
"react-hooks-js/config": "error";
|
|
39
|
+
"react-hooks-js/globals": "error";
|
|
40
|
+
"react-hooks-js/immutability": "error";
|
|
41
|
+
"react-hooks-js/incompatible-library": "error";
|
|
42
|
+
"react-hooks-js/preserve-manual-memoization": "error";
|
|
43
|
+
"react-hooks-js/purity": "error";
|
|
44
|
+
"react-hooks-js/refs": "error";
|
|
45
|
+
"react-hooks-js/set-state-in-effect": "error";
|
|
46
|
+
"react-hooks-js/set-state-in-render": "error";
|
|
47
|
+
"react-hooks-js/static-components": "error";
|
|
48
|
+
"react-hooks-js/unsupported-syntax": "error";
|
|
49
|
+
"react-hooks-js/use-memo": "error";
|
|
50
|
+
"react-perf/jsx-no-jsx-as-prop": "off";
|
|
51
|
+
"react-perf/jsx-no-new-array-as-prop": "off";
|
|
52
|
+
"react-perf/jsx-no-new-function-as-prop": "off";
|
|
53
|
+
"react-perf/jsx-no-new-object-as-prop": "off";
|
|
54
|
+
"capitalized-comments": ["error", string, {
|
|
55
|
+
block: {
|
|
56
|
+
ignorePattern: string;
|
|
57
|
+
};
|
|
58
|
+
ignorePattern: string;
|
|
59
|
+
}];
|
|
60
|
+
"eslint/class-methods-use-this": "off";
|
|
61
|
+
"eslint/complexity": ["error", {
|
|
62
|
+
max: number;
|
|
63
|
+
}];
|
|
64
|
+
"eslint/id-length": ["error", {
|
|
65
|
+
checkGeneric: boolean;
|
|
66
|
+
exceptions: string[];
|
|
67
|
+
}];
|
|
68
|
+
"eslint/init-declarations": "off";
|
|
69
|
+
"eslint/max-lines-per-function": ["error", {
|
|
70
|
+
max: number;
|
|
71
|
+
skipBlankLines: boolean;
|
|
72
|
+
skipComments: boolean;
|
|
73
|
+
}];
|
|
74
|
+
"eslint/max-params": ["error", {
|
|
75
|
+
max: number;
|
|
76
|
+
}];
|
|
77
|
+
"eslint/max-statements": ["error", {
|
|
78
|
+
max: number;
|
|
79
|
+
}];
|
|
80
|
+
"eslint/no-await-in-loop": "off";
|
|
81
|
+
"eslint/no-continue": "off";
|
|
82
|
+
"eslint/no-duplicate-imports": ["error", {
|
|
83
|
+
allowSeparateTypeImports: boolean;
|
|
84
|
+
}];
|
|
85
|
+
"eslint/no-magic-numbers": "off";
|
|
86
|
+
"eslint/no-plusplus": "off";
|
|
87
|
+
"eslint/no-ternary": "off";
|
|
88
|
+
"eslint/no-underscore-dangle": ["error", {
|
|
89
|
+
allow: never[];
|
|
90
|
+
}];
|
|
91
|
+
"eslint/no-use-before-define": "off";
|
|
92
|
+
"eslint/no-warning-comments": "off";
|
|
93
|
+
"eslint/require-unicode-regexp": "off";
|
|
94
|
+
"eslint/sort-imports": "off";
|
|
95
|
+
"eslint/sort-keys": "off";
|
|
96
|
+
"import/exports-last": "off";
|
|
97
|
+
"import/group-exports": "off";
|
|
98
|
+
"import/max-dependencies": ["error", {
|
|
99
|
+
max: number;
|
|
100
|
+
}];
|
|
101
|
+
"import/no-default-export": "off";
|
|
102
|
+
"import/no-named-default": "off";
|
|
103
|
+
"import/no-named-export": "off";
|
|
104
|
+
"import/no-nodejs-modules": "off";
|
|
105
|
+
"jsdoc/require-param-type": "off";
|
|
106
|
+
"jsdoc/require-returns": "off";
|
|
107
|
+
"jsdoc/require-returns-type": "off";
|
|
108
|
+
"no-unused-vars": ["error", {
|
|
109
|
+
args: string;
|
|
110
|
+
argsIgnorePattern: string;
|
|
111
|
+
caughtErrors: string;
|
|
112
|
+
caughtErrorsIgnorePattern: string;
|
|
113
|
+
destructuredArrayIgnorePattern: string;
|
|
114
|
+
}];
|
|
115
|
+
"oxc/no-async-await": "off";
|
|
116
|
+
"oxc/no-optional-chaining": "off";
|
|
117
|
+
"oxc/no-rest-spread-properties": "off";
|
|
118
|
+
"promise/avoid-new": "off";
|
|
119
|
+
"typescript/explicit-function-return-type": "off";
|
|
120
|
+
"typescript/explicit-module-boundary-types": "off";
|
|
121
|
+
"typescript/no-inferrable-types": "off";
|
|
122
|
+
"typescript/no-unnecessary-condition": "off";
|
|
123
|
+
"typescript/no-unnecessary-type-parameters": "off";
|
|
124
|
+
"typescript/no-unsafe-type-assertion": "off";
|
|
125
|
+
"typescript/no-useless-default-assignment": "off";
|
|
126
|
+
"typescript/prefer-readonly-parameter-types": "off";
|
|
127
|
+
"typescript/restrict-template-expressions": "off";
|
|
128
|
+
"typescript/strict-boolean-expressions": "off";
|
|
129
|
+
"unicorn/no-null": "off";
|
|
130
|
+
"unicorn/no-lonely-if": "off";
|
|
131
|
+
"unicorn/switch-case-braces": "off";
|
|
132
|
+
};
|
|
133
|
+
categories: {
|
|
134
|
+
correctness: "error";
|
|
135
|
+
nursery: "warn";
|
|
136
|
+
pedantic: "error";
|
|
137
|
+
perf: "error";
|
|
138
|
+
restriction: "error";
|
|
139
|
+
style: "error";
|
|
140
|
+
suspicious: "error";
|
|
141
|
+
};
|
|
142
|
+
options: {
|
|
143
|
+
denyWarnings: false;
|
|
144
|
+
reportUnusedDisableDirectives: "error";
|
|
145
|
+
respectEslintDisableDirectives: false;
|
|
146
|
+
typeAware: true;
|
|
147
|
+
typeCheck: false;
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
export default next;
|
|
151
|
+
//# sourceMappingURL=next.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"next.d.ts","sourceRoot":"","sources":["../../../../src/configs/oxlint/next.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsDc,CAAC;AAIzB,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/configs/oxlint/types.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "./base.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"types": ["node", "react", "react-dom"],
|
|
5
|
+
"lib": ["dom", "dom.iterable", "ESNext"],
|
|
6
|
+
"jsx": "react-jsx",
|
|
7
|
+
"noImplicitOverride": true,
|
|
8
|
+
"esModuleInterop": true,
|
|
9
|
+
"allowJs": false,
|
|
10
|
+
"incremental": false,
|
|
11
|
+
"resolveJsonModule": true,
|
|
12
|
+
"plugins": [
|
|
13
|
+
{
|
|
14
|
+
"name": "next"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* prevent duplicate function call in specified time period
|
|
3
|
+
*
|
|
4
|
+
* @param fn - an anonymous function to delay execution
|
|
5
|
+
* @param delay - delay for provided function execution (default `1000` in milliseconds)
|
|
6
|
+
*/
|
|
7
|
+
declare const debounce: (fn: () => void, delay?: number) => void;
|
|
8
|
+
export default debounce;
|
|
9
|
+
//# sourceMappingURL=debounce.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"debounce.d.ts","sourceRoot":"","sources":["../../../src/lib/debounce.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,QAAA,MAAM,QAAQ,GAAI,IAAI,MAAM,IAAI,EAAE,cAAY,SAQ7C,CAAC;AAIF,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { throwError, log, logDivider, logNewLine, warn, warnNewLine } from './logger.ts';
|
|
2
|
+
export { deepCopy, deepMergeObj, freshRegex } from './operations.ts';
|
|
3
|
+
export { isArr, isFn, isNum, isObj, isStr } from './types.ts';
|
|
4
|
+
export { debounce, sleep } from './utils.ts';
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,GAAG,EAAE,UAAU,EAAE,UAAU,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AACzF,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AACrE,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* throws an error with the provided message.
|
|
3
|
+
*
|
|
4
|
+
* @param err - The error message to throw.
|
|
5
|
+
*/
|
|
6
|
+
export declare const throwError: <T>(err: T) => never;
|
|
7
|
+
/**
|
|
8
|
+
* logs a message to the console.
|
|
9
|
+
*
|
|
10
|
+
* @param msg - The message to log.
|
|
11
|
+
*/
|
|
12
|
+
export declare const log: {
|
|
13
|
+
(...data: any[]): void;
|
|
14
|
+
(message?: any, ...optionalParams: any[]): void;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* logs a divider line to the console.
|
|
18
|
+
*
|
|
19
|
+
* @param divider - The character to use for the divider (default is "-").
|
|
20
|
+
* @param count - The number of times to repeat the divider character (default is 50).
|
|
21
|
+
*/
|
|
22
|
+
export declare const logDivider: (divider?: string, count?: number) => void;
|
|
23
|
+
/**
|
|
24
|
+
* logs a new line with an optional message to the console.
|
|
25
|
+
*
|
|
26
|
+
* @param msg - The message to include in the new line (optional).
|
|
27
|
+
*/
|
|
28
|
+
export declare const logNewLine: <T>(msg?: T) => void;
|
|
29
|
+
/**
|
|
30
|
+
* logs a warning message to the console.
|
|
31
|
+
*
|
|
32
|
+
* @param msg - The warning message to log.
|
|
33
|
+
*/
|
|
34
|
+
export declare const warn: {
|
|
35
|
+
(...data: any[]): void;
|
|
36
|
+
(message?: any, ...optionalParams: any[]): void;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* logs a new line with an optional warning message to the console.
|
|
40
|
+
*
|
|
41
|
+
* @param msg - The warning message to include in the new line (optional).
|
|
42
|
+
*/
|
|
43
|
+
export declare const warnNewLine: <T>(msg?: T) => void;
|
|
44
|
+
//# sourceMappingURL=logger.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../../src/lib/logger.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,UAAU,GAAI,CAAC,EAAE,KAAK,CAAC,UAanC,CAAC;AAIF;;;;GAIG;AACH,eAAO,MAAQ,GAAG;;;CAAY,CAAC;AAI/B;;;;;GAKG;AACH,eAAO,MAAM,UAAU,GAAI,gBAAa,EAAE,cAAU,SAEnD,CAAC;AAIF;;;;GAIG;AACH,eAAO,MAAM,UAAU,GAAI,CAAC,EAAE,MAAM,CAAC,SAEpC,CAAC;AAIF;;;;GAIG;AACH,eAAO,MAAQ,IAAI;;;CAAY,CAAC;AAIhC;;;;GAIG;AACH,eAAO,MAAM,WAAW,GAAI,CAAC,EAAE,MAAM,CAAC,SAErC,CAAC"}
|