@moneyhash/frontend-tooling 0.0.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/README.md +23 -0
- package/dist/oxfmt.d.mts +18 -0
- package/dist/oxfmt.mjs +1 -0
- package/dist/oxlint.d.mts +121 -0
- package/dist/oxlint.mjs +1 -0
- package/package.json +45 -0
package/README.md
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# tsdown-starter
|
|
2
|
+
|
|
3
|
+
A starter for creating a TypeScript package.
|
|
4
|
+
|
|
5
|
+
## Development
|
|
6
|
+
|
|
7
|
+
- Install dependencies:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
- Run the unit tests:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
npm run test
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
- Build the library:
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
npm run build
|
|
23
|
+
```
|
package/dist/oxfmt.d.mts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
//#region src/oxfmt.d.ts
|
|
2
|
+
declare const _default: {
|
|
3
|
+
printWidth: number;
|
|
4
|
+
tabWidth: number;
|
|
5
|
+
useTabs: false;
|
|
6
|
+
semi: true;
|
|
7
|
+
singleQuote: false;
|
|
8
|
+
jsxSingleQuote: false;
|
|
9
|
+
quoteProps: "as-needed";
|
|
10
|
+
trailingComma: "es5";
|
|
11
|
+
bracketSpacing: true;
|
|
12
|
+
bracketSameLine: false;
|
|
13
|
+
arrowParens: "always";
|
|
14
|
+
proseWrap: "preserve";
|
|
15
|
+
endOfLine: "lf";
|
|
16
|
+
};
|
|
17
|
+
//#endregion
|
|
18
|
+
export { _default as default };
|
package/dist/oxfmt.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{defineConfig as e}from"oxfmt";var t=e({printWidth:80,tabWidth:2,useTabs:!1,semi:!0,singleQuote:!1,jsxSingleQuote:!1,quoteProps:`as-needed`,trailingComma:`es5`,bracketSpacing:!0,bracketSameLine:!1,arrowParens:`always`,proseWrap:`preserve`,endOfLine:`lf`});export{t as default};
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { OxlintEnv, OxlintGlobals } from "oxlint";
|
|
2
|
+
|
|
3
|
+
//#region src/oxlint.d.ts
|
|
4
|
+
declare const _default: {
|
|
5
|
+
plugins: ("import" | "jsx-a11y" | "react" | "typescript")[];
|
|
6
|
+
categories: {
|
|
7
|
+
correctness: "off";
|
|
8
|
+
};
|
|
9
|
+
ignorePatterns: string[];
|
|
10
|
+
rules: {
|
|
11
|
+
"no-console": ["error", {
|
|
12
|
+
allow: string[];
|
|
13
|
+
}];
|
|
14
|
+
"no-alert": "error";
|
|
15
|
+
"constructor-super": "error";
|
|
16
|
+
"for-direction": "error";
|
|
17
|
+
"getter-return": "error";
|
|
18
|
+
"no-async-promise-executor": "error";
|
|
19
|
+
"no-case-declarations": "error";
|
|
20
|
+
"no-class-assign": "error";
|
|
21
|
+
"no-compare-neg-zero": "error";
|
|
22
|
+
"no-cond-assign": "error";
|
|
23
|
+
"no-const-assign": "error";
|
|
24
|
+
"no-constant-binary-expression": "error";
|
|
25
|
+
"no-constant-condition": "error";
|
|
26
|
+
"no-control-regex": "error";
|
|
27
|
+
"no-debugger": "error";
|
|
28
|
+
"no-delete-var": "error";
|
|
29
|
+
"no-dupe-class-members": "error";
|
|
30
|
+
"no-dupe-else-if": "error";
|
|
31
|
+
"no-dupe-keys": "error";
|
|
32
|
+
"no-duplicate-case": "error";
|
|
33
|
+
"no-empty": "error";
|
|
34
|
+
"no-empty-character-class": "error";
|
|
35
|
+
"no-empty-pattern": "error";
|
|
36
|
+
"no-empty-static-block": "error";
|
|
37
|
+
"no-ex-assign": "error";
|
|
38
|
+
"no-extra-boolean-cast": "error";
|
|
39
|
+
"no-fallthrough": "error";
|
|
40
|
+
"no-func-assign": "error";
|
|
41
|
+
"no-global-assign": "error";
|
|
42
|
+
"no-import-assign": "error";
|
|
43
|
+
"no-invalid-regexp": "error";
|
|
44
|
+
"no-irregular-whitespace": "error";
|
|
45
|
+
"no-loss-of-precision": "error";
|
|
46
|
+
"no-misleading-character-class": "error";
|
|
47
|
+
"no-new-native-nonconstructor": "error";
|
|
48
|
+
"no-nonoctal-decimal-escape": "error";
|
|
49
|
+
"no-obj-calls": "error";
|
|
50
|
+
"no-prototype-builtins": "error";
|
|
51
|
+
"no-redeclare": "error";
|
|
52
|
+
"no-regex-spaces": "error";
|
|
53
|
+
"no-self-assign": "error";
|
|
54
|
+
"no-setter-return": "error";
|
|
55
|
+
"no-shadow-restricted-names": "error";
|
|
56
|
+
"no-sparse-arrays": "error";
|
|
57
|
+
"no-this-before-super": "error";
|
|
58
|
+
"no-undef": "error";
|
|
59
|
+
"no-unexpected-multiline": "error";
|
|
60
|
+
"no-unreachable": "error";
|
|
61
|
+
"no-unsafe-finally": "error";
|
|
62
|
+
"no-unsafe-negation": "error";
|
|
63
|
+
"no-unsafe-optional-chaining": "error";
|
|
64
|
+
"no-unused-labels": "error";
|
|
65
|
+
"no-unused-private-class-members": "error";
|
|
66
|
+
"no-unused-vars": ["error", {
|
|
67
|
+
args: string;
|
|
68
|
+
argsIgnorePattern: string;
|
|
69
|
+
caughtErrors: string;
|
|
70
|
+
caughtErrorsIgnorePattern: string;
|
|
71
|
+
destructuredArrayIgnorePattern: string;
|
|
72
|
+
varsIgnorePattern: string;
|
|
73
|
+
ignoreRestSiblings: boolean;
|
|
74
|
+
}];
|
|
75
|
+
"no-useless-backreference": "error";
|
|
76
|
+
"no-useless-catch": "error";
|
|
77
|
+
"no-useless-escape": "error";
|
|
78
|
+
"no-with": "error";
|
|
79
|
+
"require-yield": "error";
|
|
80
|
+
"use-isnan": "error";
|
|
81
|
+
"valid-typeof": "error";
|
|
82
|
+
"no-array-constructor": "error";
|
|
83
|
+
"no-unused-expressions": "error";
|
|
84
|
+
"no-useless-constructor": "error";
|
|
85
|
+
"typescript/ban-ts-comment": ["error", {
|
|
86
|
+
minimumDescriptionLength: number;
|
|
87
|
+
}];
|
|
88
|
+
"typescript/no-duplicate-enum-values": "error";
|
|
89
|
+
"typescript/no-dynamic-delete": "error";
|
|
90
|
+
"typescript/no-empty-object-type": "error";
|
|
91
|
+
"typescript/no-explicit-any": "error";
|
|
92
|
+
"typescript/no-extra-non-null-assertion": "error";
|
|
93
|
+
"typescript/no-extraneous-class": "error";
|
|
94
|
+
"typescript/no-invalid-void-type": "error";
|
|
95
|
+
"typescript/no-misused-new": "error";
|
|
96
|
+
"typescript/no-namespace": "error";
|
|
97
|
+
"typescript/no-non-null-asserted-nullish-coalescing": "error";
|
|
98
|
+
"typescript/no-non-null-asserted-optional-chain": "error";
|
|
99
|
+
"typescript/no-non-null-assertion": "error";
|
|
100
|
+
"typescript/no-require-imports": "error";
|
|
101
|
+
"typescript/no-this-alias": "error";
|
|
102
|
+
"typescript/no-unnecessary-type-constraint": "error";
|
|
103
|
+
"typescript/no-unsafe-declaration-merging": "error";
|
|
104
|
+
"typescript/no-unsafe-function-type": "error";
|
|
105
|
+
"typescript/no-wrapper-object-types": "error";
|
|
106
|
+
"typescript/prefer-as-const": "error";
|
|
107
|
+
"typescript/prefer-literal-enum-member": "error";
|
|
108
|
+
"typescript/prefer-namespace-keyword": "error";
|
|
109
|
+
"typescript/triple-slash-reference": "error";
|
|
110
|
+
"typescript/unified-signatures": "error";
|
|
111
|
+
"no-var": "error";
|
|
112
|
+
"prefer-const": "error";
|
|
113
|
+
"prefer-rest-params": "error";
|
|
114
|
+
"prefer-spread": "error";
|
|
115
|
+
"import/no-cycle": "error";
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
declare const oxlintEnv: OxlintEnv;
|
|
119
|
+
declare const oxlintGlobals: OxlintGlobals;
|
|
120
|
+
//#endregion
|
|
121
|
+
export { _default as default, oxlintEnv, oxlintGlobals };
|
package/dist/oxlint.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{defineConfig as e}from"oxlint";var t=e({plugins:[`import`,`typescript`,`react`,`jsx-a11y`],categories:{correctness:`off`},ignorePatterns:[`dist/`],rules:{"no-console":[`error`,{allow:[`warn`,`error`]}],"no-alert":`error`,"constructor-super":`error`,"for-direction":`error`,"getter-return":`error`,"no-async-promise-executor":`error`,"no-case-declarations":`error`,"no-class-assign":`error`,"no-compare-neg-zero":`error`,"no-cond-assign":`error`,"no-const-assign":`error`,"no-constant-binary-expression":`error`,"no-constant-condition":`error`,"no-control-regex":`error`,"no-debugger":`error`,"no-delete-var":`error`,"no-dupe-class-members":`error`,"no-dupe-else-if":`error`,"no-dupe-keys":`error`,"no-duplicate-case":`error`,"no-empty":`error`,"no-empty-character-class":`error`,"no-empty-pattern":`error`,"no-empty-static-block":`error`,"no-ex-assign":`error`,"no-extra-boolean-cast":`error`,"no-fallthrough":`error`,"no-func-assign":`error`,"no-global-assign":`error`,"no-import-assign":`error`,"no-invalid-regexp":`error`,"no-irregular-whitespace":`error`,"no-loss-of-precision":`error`,"no-misleading-character-class":`error`,"no-new-native-nonconstructor":`error`,"no-nonoctal-decimal-escape":`error`,"no-obj-calls":`error`,"no-prototype-builtins":`error`,"no-redeclare":`error`,"no-regex-spaces":`error`,"no-self-assign":`error`,"no-setter-return":`error`,"no-shadow-restricted-names":`error`,"no-sparse-arrays":`error`,"no-this-before-super":`error`,"no-undef":`error`,"no-unexpected-multiline":`error`,"no-unreachable":`error`,"no-unsafe-finally":`error`,"no-unsafe-negation":`error`,"no-unsafe-optional-chaining":`error`,"no-unused-labels":`error`,"no-unused-private-class-members":`error`,"no-unused-vars":[`error`,{args:`all`,argsIgnorePattern:`^_`,caughtErrors:`all`,caughtErrorsIgnorePattern:`^_`,destructuredArrayIgnorePattern:`^_`,varsIgnorePattern:`^_`,ignoreRestSiblings:!0}],"no-useless-backreference":`error`,"no-useless-catch":`error`,"no-useless-escape":`error`,"no-with":`error`,"require-yield":`error`,"use-isnan":`error`,"valid-typeof":`error`,"no-array-constructor":`error`,"no-unused-expressions":`error`,"no-useless-constructor":`error`,"typescript/ban-ts-comment":[`error`,{minimumDescriptionLength:10}],"typescript/no-duplicate-enum-values":`error`,"typescript/no-dynamic-delete":`error`,"typescript/no-empty-object-type":`error`,"typescript/no-explicit-any":`error`,"typescript/no-extra-non-null-assertion":`error`,"typescript/no-extraneous-class":`error`,"typescript/no-invalid-void-type":`error`,"typescript/no-misused-new":`error`,"typescript/no-namespace":`error`,"typescript/no-non-null-asserted-nullish-coalescing":`error`,"typescript/no-non-null-asserted-optional-chain":`error`,"typescript/no-non-null-assertion":`error`,"typescript/no-require-imports":`error`,"typescript/no-this-alias":`error`,"typescript/no-unnecessary-type-constraint":`error`,"typescript/no-unsafe-declaration-merging":`error`,"typescript/no-unsafe-function-type":`error`,"typescript/no-wrapper-object-types":`error`,"typescript/prefer-as-const":`error`,"typescript/prefer-literal-enum-member":`error`,"typescript/prefer-namespace-keyword":`error`,"typescript/triple-slash-reference":`error`,"typescript/unified-signatures":`error`,"no-var":`error`,"prefer-const":`error`,"prefer-rest-params":`error`,"prefer-spread":`error`,"import/no-cycle":`error`}});const n={builtin:!0,browser:!0},r={process:`readonly`};export{t as default,n as oxlintEnv,r as oxlintGlobals};
|
package/package.json
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@moneyhash/frontend-tooling",
|
|
3
|
+
"version": "0.0.0",
|
|
4
|
+
"description": "A collection of tools configuration for frontend development at MoneyHash.",
|
|
5
|
+
"homepage": "https://github.com/MoneyHash/frontend-tooling#readme",
|
|
6
|
+
"bugs": {
|
|
7
|
+
"url": "https://github.com/MoneyHash/frontend-tooling/issues"
|
|
8
|
+
},
|
|
9
|
+
"license": "MIT",
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "git+https://github.com/MoneyHash/frontend-tooling.git"
|
|
13
|
+
},
|
|
14
|
+
"files": [
|
|
15
|
+
"dist"
|
|
16
|
+
],
|
|
17
|
+
"type": "module",
|
|
18
|
+
"exports": {
|
|
19
|
+
"./oxfmt": "./dist/oxfmt.mjs",
|
|
20
|
+
"./oxlint": "./dist/oxlint.mjs",
|
|
21
|
+
"./package.json": "./package.json"
|
|
22
|
+
},
|
|
23
|
+
"publishConfig": {
|
|
24
|
+
"access": "public",
|
|
25
|
+
"provenance": true
|
|
26
|
+
},
|
|
27
|
+
"devDependencies": {
|
|
28
|
+
"@types/node": "^25.5.0",
|
|
29
|
+
"@typescript/native-preview": "7.0.0-dev.20260328.1",
|
|
30
|
+
"oxfmt": "^0.45.0",
|
|
31
|
+
"oxlint": "^1.61.0",
|
|
32
|
+
"tsdown": "^0.21.7",
|
|
33
|
+
"typescript": "^6.0.2"
|
|
34
|
+
},
|
|
35
|
+
"peerDependencies": {
|
|
36
|
+
"oxfmt": "^0.45.0",
|
|
37
|
+
"oxlint": "^1.61.0"
|
|
38
|
+
},
|
|
39
|
+
"scripts": {
|
|
40
|
+
"build": "tsdown",
|
|
41
|
+
"dev": "tsdown --watch",
|
|
42
|
+
"test": "vitest",
|
|
43
|
+
"typecheck": "tsc --noEmit"
|
|
44
|
+
}
|
|
45
|
+
}
|