@sorafujitani/vp-config 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/README.md ADDED
@@ -0,0 +1 @@
1
+ # vp-config
@@ -0,0 +1,84 @@
1
+ //#region src/format.d.ts
2
+ declare const config: {
3
+ readonly arrowParens: "always";
4
+ readonly bracketSpacing: true;
5
+ readonly endOfLine: "lf";
6
+ readonly printWidth: 80;
7
+ readonly semi: true;
8
+ readonly singleQuote: false;
9
+ readonly sortImports: {};
10
+ readonly sortPackageJson: true;
11
+ readonly tabWidth: 2;
12
+ readonly trailingComma: "all";
13
+ readonly useTabs: false;
14
+ };
15
+ //#endregion
16
+ //#region src/lint.d.ts
17
+ declare const config$1: {
18
+ readonly categories: {
19
+ readonly correctness: "error";
20
+ readonly pedantic: "warn";
21
+ readonly perf: "warn";
22
+ readonly style: "warn";
23
+ readonly suspicious: "warn";
24
+ };
25
+ readonly options: {
26
+ readonly typeAware: true;
27
+ readonly typeCheck: true;
28
+ };
29
+ readonly overrides: readonly [{
30
+ readonly files: readonly ["*.cjs"];
31
+ readonly rules: {
32
+ readonly "typescript/no-require-imports": "off";
33
+ readonly "typescript/promise-function-async": "off";
34
+ };
35
+ }];
36
+ readonly plugins: readonly ["typescript", "unicorn", "oxc", "import", "promise"];
37
+ readonly rules: {
38
+ readonly "typescript/consistent-type-exports": "warn";
39
+ readonly "typescript/consistent-type-imports": "warn";
40
+ readonly "typescript/no-empty-object-type": "warn";
41
+ readonly "typescript/no-explicit-any": "error";
42
+ readonly "typescript/no-import-type-side-effects": "warn";
43
+ readonly "typescript/no-invalid-void-type": "warn";
44
+ readonly "typescript/no-namespace": "warn";
45
+ readonly "typescript/no-non-null-assertion": "warn";
46
+ readonly "typescript/no-require-imports": "error";
47
+ readonly "typescript/promise-function-async": "warn";
48
+ readonly "typescript/use-unknown-in-catch-callback-variable": "warn";
49
+ readonly "typescript/no-unnecessary-condition": "warn";
50
+ readonly "typescript/no-unnecessary-type-conversion": "warn";
51
+ readonly "typescript/prefer-optional-chain": "warn";
52
+ readonly "import/no-cycle": "error";
53
+ readonly "import/no-duplicates": "error";
54
+ readonly "import/no-self-import": "error";
55
+ readonly "no-alert": "error";
56
+ readonly "no-param-reassign": "warn";
57
+ readonly "no-var": "error";
58
+ readonly "unicorn/prefer-node-protocol": "warn";
59
+ readonly "no-plusplus": "off";
60
+ readonly "oxc/approx-constant": "warn";
61
+ readonly "no-magic-numbers": readonly ["warn", {
62
+ readonly ignore: readonly [0, 1, -1];
63
+ readonly ignoreArrayIndexes: true;
64
+ }];
65
+ readonly "promise/avoid-new": "off";
66
+ readonly "capitalized-comments": "off";
67
+ readonly "import/exports-last": "off";
68
+ readonly "import/group-exports": "off";
69
+ readonly "import/no-named-export": "off";
70
+ readonly "import/no-nodejs-modules": "off";
71
+ readonly "import/prefer-default-export": "off";
72
+ readonly "no-inline-comments": "off";
73
+ readonly "no-ternary": "off";
74
+ readonly "sort-imports": "off";
75
+ readonly "sort-keys": "off";
76
+ };
77
+ };
78
+ //#endregion
79
+ //#region src/test.d.ts
80
+ declare const config$2: {
81
+ readonly include: readonly ["src/**/*.test.ts", "index.test.ts"];
82
+ };
83
+ //#endregion
84
+ export { config as fmt, config$1 as lint, config$2 as test };
package/dist/index.mjs ADDED
@@ -0,0 +1,92 @@
1
+ //#region src/format.ts
2
+ const config = {
3
+ arrowParens: "always",
4
+ bracketSpacing: true,
5
+ endOfLine: "lf",
6
+ printWidth: 80,
7
+ semi: true,
8
+ singleQuote: false,
9
+ sortImports: {},
10
+ sortPackageJson: true,
11
+ tabWidth: 2,
12
+ trailingComma: "all",
13
+ useTabs: false
14
+ };
15
+ //#endregion
16
+ //#region src/lint.ts
17
+ const config$1 = {
18
+ categories: {
19
+ correctness: "error",
20
+ pedantic: "warn",
21
+ perf: "warn",
22
+ style: "warn",
23
+ suspicious: "warn"
24
+ },
25
+ options: {
26
+ typeAware: true,
27
+ typeCheck: true
28
+ },
29
+ overrides: [{
30
+ files: ["*.cjs"],
31
+ rules: {
32
+ "typescript/no-require-imports": "off",
33
+ "typescript/promise-function-async": "off"
34
+ }
35
+ }],
36
+ plugins: [
37
+ "typescript",
38
+ "unicorn",
39
+ "oxc",
40
+ "import",
41
+ "promise"
42
+ ],
43
+ rules: {
44
+ "typescript/consistent-type-exports": "warn",
45
+ "typescript/consistent-type-imports": "warn",
46
+ "typescript/no-empty-object-type": "warn",
47
+ "typescript/no-explicit-any": "error",
48
+ "typescript/no-import-type-side-effects": "warn",
49
+ "typescript/no-invalid-void-type": "warn",
50
+ "typescript/no-namespace": "warn",
51
+ "typescript/no-non-null-assertion": "warn",
52
+ "typescript/no-require-imports": "error",
53
+ "typescript/promise-function-async": "warn",
54
+ "typescript/use-unknown-in-catch-callback-variable": "warn",
55
+ "typescript/no-unnecessary-condition": "warn",
56
+ "typescript/no-unnecessary-type-conversion": "warn",
57
+ "typescript/prefer-optional-chain": "warn",
58
+ "import/no-cycle": "error",
59
+ "import/no-duplicates": "error",
60
+ "import/no-self-import": "error",
61
+ "no-alert": "error",
62
+ "no-param-reassign": "warn",
63
+ "no-var": "error",
64
+ "unicorn/prefer-node-protocol": "warn",
65
+ "no-plusplus": "off",
66
+ "oxc/approx-constant": "warn",
67
+ "no-magic-numbers": ["warn", {
68
+ ignore: [
69
+ 0,
70
+ 1,
71
+ -1
72
+ ],
73
+ ignoreArrayIndexes: true
74
+ }],
75
+ "promise/avoid-new": "off",
76
+ "capitalized-comments": "off",
77
+ "import/exports-last": "off",
78
+ "import/group-exports": "off",
79
+ "import/no-named-export": "off",
80
+ "import/no-nodejs-modules": "off",
81
+ "import/prefer-default-export": "off",
82
+ "no-inline-comments": "off",
83
+ "no-ternary": "off",
84
+ "sort-imports": "off",
85
+ "sort-keys": "off"
86
+ }
87
+ };
88
+ //#endregion
89
+ //#region src/test.ts
90
+ const config$2 = { include: ["src/**/*.test.ts", "index.test.ts"] };
91
+ //#endregion
92
+ export { config as fmt, config$1 as lint, config$2 as test };
package/package.json ADDED
@@ -0,0 +1,51 @@
1
+ {
2
+ "name": "@sorafujitani/vp-config",
3
+ "version": "0.0.1",
4
+ "description": "Vite Plus configuration for @sorafujitani",
5
+ "homepage": "https://github.com/sorafujitani/vp-config#readme",
6
+ "bugs": {
7
+ "url": "https://github.com/sorafujitani/vp-config/issues"
8
+ },
9
+ "license": "MIT",
10
+ "author": {
11
+ "name": "Sora Fujitani"
12
+ },
13
+ "repository": {
14
+ "type": "git",
15
+ "url": "git+https://github.com/sorafujitani/vp-config.git"
16
+ },
17
+ "files": [
18
+ "dist"
19
+ ],
20
+ "type": "module",
21
+ "types": "./dist/index.d.mts",
22
+ "exports": {
23
+ ".": "./dist/index.mjs",
24
+ "./package.json": "./package.json"
25
+ },
26
+ "scripts": {
27
+ "build": "vp pack",
28
+ "dev": "vp pack --watch",
29
+ "test": "vp test",
30
+ "typecheck": "tsgo --noEmit",
31
+ "prepublishOnly": "pnpm run build",
32
+ "prepack": "vp pack",
33
+ "release": "bumpp --commit \"release: v%s\" --all --push --tag",
34
+ "prepare": "vp config"
35
+ },
36
+ "devDependencies": {
37
+ "@types/node": "^25.3.5",
38
+ "@typescript/native-preview": "7.0.0-dev.20260309.1",
39
+ "bumpp": "^10.4.1",
40
+ "typescript": "^5.9.3",
41
+ "vite-plus": "latest",
42
+ "vitest": "npm:@voidzero-dev/vite-plus-test@latest"
43
+ },
44
+ "packageManager": "pnpm@10.32.1",
45
+ "pnpm": {
46
+ "overrides": {
47
+ "vite": "npm:@voidzero-dev/vite-plus-core@latest",
48
+ "vitest": "npm:@voidzero-dev/vite-plus-test@latest"
49
+ }
50
+ }
51
+ }