@nekoyasuii/config 0.1.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 +1 -0
- package/dist/chunk-41590bpf.js +70 -0
- package/dist/chunk-5wgwscd0.js +4 -0
- package/dist/chunk-8m4by0h8.js +138 -0
- package/dist/chunk-c8jq73qx.js +38 -0
- package/dist/chunk-xmts0xe5.js +565 -0
- package/dist/chunk-y56m56wh.js +430 -0
- package/dist/tools/oxfmt/index.d.ts +36 -0
- package/dist/tools/oxfmt/index.js +56 -0
- package/dist/tools/oxlint/config/anti-slop/index.d.ts +27 -0
- package/dist/tools/oxlint/config/anti-slop/index.js +7 -0
- package/dist/tools/oxlint/config/anti-slop/plugin.d.ts +2 -0
- package/dist/tools/oxlint/config/anti-slop/plugin.js +1944 -0
- package/dist/tools/oxlint/config/core/index.d.ts +558 -0
- package/dist/tools/oxlint/config/core/index.js +8 -0
- package/dist/tools/oxlint/config/index.d.ts +774 -0
- package/dist/tools/oxlint/config/index.js +57 -0
- package/dist/tools/oxlint/config/js-plugins/index.d.ts +446 -0
- package/dist/tools/oxlint/config/js-plugins/index.js +11 -0
- package/dist/tools/oxlint/config/react/index.d.ts +131 -0
- package/dist/tools/oxlint/config/react/index.js +7 -0
- package/dist/tools/oxlint/config/remix/index.d.ts +11 -0
- package/dist/tools/oxlint/config/remix/index.js +19 -0
- package/dist/tools/oxlint/config/tanstack/index.d.ts +17 -0
- package/dist/tools/oxlint/config/tanstack/index.js +25 -0
- package/dist/tools/oxlint/config/tanstack/js-plugins/index.d.ts +30 -0
- package/dist/tools/oxlint/config/tanstack/js-plugins/index.js +33 -0
- package/dist/tools/oxlint/rules/index.d.ts +2 -0
- package/dist/tools/oxlint/rules/index.js +482 -0
- package/dist/tools/shared/ignores.d.ts +1 -0
- package/dist/tools/shared/ignores.js +7 -0
- package/dist/tools/shared/tsconfig-aliases.d.ts +11 -0
- package/dist/tools/shared/types.d.ts +1 -0
- package/package.json +114 -0
- package/tsconfig.json +12 -0
- package/tsconfig.node.json +30 -0
- package/tsconfig.react.json +30 -0
package/package.json
ADDED
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@nekoyasuii/config",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Shared TypeScript, Oxlint, and Oxfmt configs for my projects.",
|
|
5
|
+
"files": [
|
|
6
|
+
"dist",
|
|
7
|
+
"*.json"
|
|
8
|
+
],
|
|
9
|
+
"type": "module",
|
|
10
|
+
"exports": {
|
|
11
|
+
"./oxfmt": {
|
|
12
|
+
"types": "./dist/tools/oxfmt/index.d.ts",
|
|
13
|
+
"import": "./dist/tools/oxfmt/index.js",
|
|
14
|
+
"default": "./dist/tools/oxfmt/index.js"
|
|
15
|
+
},
|
|
16
|
+
"./oxlint": {
|
|
17
|
+
"types": "./dist/tools/oxlint/config/index.d.ts",
|
|
18
|
+
"import": "./dist/tools/oxlint/config/index.js",
|
|
19
|
+
"default": "./dist/tools/oxlint/config/index.js"
|
|
20
|
+
},
|
|
21
|
+
"./oxlint/anti-slop": {
|
|
22
|
+
"types": "./dist/tools/oxlint/config/anti-slop/index.d.ts",
|
|
23
|
+
"import": "./dist/tools/oxlint/config/anti-slop/index.js",
|
|
24
|
+
"default": "./dist/tools/oxlint/config/anti-slop/index.js"
|
|
25
|
+
},
|
|
26
|
+
"./oxlint/rules": {
|
|
27
|
+
"types": "./dist/tools/oxlint/rules/index.d.ts",
|
|
28
|
+
"import": "./dist/tools/oxlint/rules/index.js",
|
|
29
|
+
"default": "./dist/tools/oxlint/rules/index.js"
|
|
30
|
+
},
|
|
31
|
+
"./oxlint/core": {
|
|
32
|
+
"types": "./dist/tools/oxlint/config/core/index.d.ts",
|
|
33
|
+
"import": "./dist/tools/oxlint/config/core/index.js",
|
|
34
|
+
"default": "./dist/tools/oxlint/config/core/index.js"
|
|
35
|
+
},
|
|
36
|
+
"./oxlint/js-plugin": {
|
|
37
|
+
"types": "./dist/tools/oxlint/config/js-plugins/index.d.ts",
|
|
38
|
+
"import": "./dist/tools/oxlint/config/js-plugins/index.js",
|
|
39
|
+
"default": "./dist/tools/oxlint/config/js-plugins/index.js"
|
|
40
|
+
},
|
|
41
|
+
"./oxlint/react": {
|
|
42
|
+
"types": "./dist/tools/oxlint/config/react/index.d.ts",
|
|
43
|
+
"import": "./dist/tools/oxlint/config/react/index.js",
|
|
44
|
+
"default": "./dist/tools/oxlint/config/react/index.js"
|
|
45
|
+
},
|
|
46
|
+
"./oxlint/remix": {
|
|
47
|
+
"types": "./dist/tools/oxlint/config/remix/index.d.ts",
|
|
48
|
+
"import": "./dist/tools/oxlint/config/remix/index.js",
|
|
49
|
+
"default": "./dist/tools/oxlint/config/remix/index.js"
|
|
50
|
+
},
|
|
51
|
+
"./oxlint/tanstack": {
|
|
52
|
+
"types": "./dist/tools/oxlint/config/tanstack/index.d.ts",
|
|
53
|
+
"import": "./dist/tools/oxlint/config/tanstack/index.js",
|
|
54
|
+
"default": "./dist/tools/oxlint/config/tanstack/index.js"
|
|
55
|
+
},
|
|
56
|
+
"./oxlint/tanstack/js-plugins": {
|
|
57
|
+
"types": "./dist/tools/oxlint/config/tanstack/js-plugins/index.d.ts",
|
|
58
|
+
"import": "./dist/tools/oxlint/config/tanstack/js-plugins/index.js",
|
|
59
|
+
"default": "./dist/tools/oxlint/config/tanstack/js-plugins/index.js"
|
|
60
|
+
},
|
|
61
|
+
"./shared/ignores": {
|
|
62
|
+
"types": "./dist/tools/shared/ignores.d.ts",
|
|
63
|
+
"import": "./dist/tools/shared/ignores.js",
|
|
64
|
+
"default": "./dist/tools/shared/ignores.js"
|
|
65
|
+
},
|
|
66
|
+
"./tsconfig-node": "./tsconfig.node.json",
|
|
67
|
+
"./tsconfig-react": "./tsconfig.react.json",
|
|
68
|
+
"./package.json": "./package.json"
|
|
69
|
+
},
|
|
70
|
+
"publishConfig": {
|
|
71
|
+
"access": "public"
|
|
72
|
+
},
|
|
73
|
+
"scripts": {
|
|
74
|
+
"build": "bun run scripts/build.ts",
|
|
75
|
+
"prepare": "bun run build",
|
|
76
|
+
"lint": "oxlint --config oxlint.config.ts",
|
|
77
|
+
"lint:fix": "oxlint --config oxlint.config.ts --fix",
|
|
78
|
+
"lint:agent": "oxlint --config oxlint.config.ts --deny-warnings --format=agent",
|
|
79
|
+
"fmt": "oxfmt --config oxfmt.config.ts",
|
|
80
|
+
"fmt:check": "oxfmt --config oxfmt.config.ts --check",
|
|
81
|
+
"typecheck": "tsc --noEmit",
|
|
82
|
+
"test": "bun test .",
|
|
83
|
+
"check": "bun run lint && bun run fmt:check && bun run typecheck && bun run test"
|
|
84
|
+
},
|
|
85
|
+
"devDependencies": {
|
|
86
|
+
"@oxlint/plugins": "^1.80.0",
|
|
87
|
+
"@types/bun": "^1.4.0"
|
|
88
|
+
},
|
|
89
|
+
"peerDependencies": {
|
|
90
|
+
"eslint-plugin-sonarjs": ">= 4.2.0",
|
|
91
|
+
"oxfmt": ">= 0.65.0",
|
|
92
|
+
"oxlint": ">= 1.80.0",
|
|
93
|
+
"oxlint-plugin-react-doctor": ">= 0.9.12",
|
|
94
|
+
"oxlint-tailwindcss": ">= 1.10.0",
|
|
95
|
+
"typescript": ">= 7"
|
|
96
|
+
},
|
|
97
|
+
"peerDependenciesMeta": {
|
|
98
|
+
"oxfmt": {
|
|
99
|
+
"optional": true
|
|
100
|
+
},
|
|
101
|
+
"oxlint": {
|
|
102
|
+
"optional": true
|
|
103
|
+
},
|
|
104
|
+
"oxlint-plugin-react-doctor": {
|
|
105
|
+
"optional": true
|
|
106
|
+
},
|
|
107
|
+
"eslint-plugin-sonarjs": {
|
|
108
|
+
"optional": true
|
|
109
|
+
},
|
|
110
|
+
"oxlint-tailwindcss": {
|
|
111
|
+
"optional": true
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "./tsconfig.node.json",
|
|
3
|
+
"include": ["**/*.ts", "tools/oxlint/config/anti-slop/index.mjs"],
|
|
4
|
+
"compilerOptions": {
|
|
5
|
+
"types": ["bun"],
|
|
6
|
+
"paths": {
|
|
7
|
+
"@oxlint/*": ["./tools/oxlint/*"],
|
|
8
|
+
"@shared/*": ["./tools/shared/*"],
|
|
9
|
+
"@/*": ["./*"]
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
+
"display": "Node.js TS Config",
|
|
4
|
+
"compilerOptions": {
|
|
5
|
+
"lib": ["ESNext", "DOM", "DOM.Iterable"],
|
|
6
|
+
"module": "esnext",
|
|
7
|
+
"moduleDetection": "force",
|
|
8
|
+
"moduleResolution": "bundler",
|
|
9
|
+
"target": "es2022",
|
|
10
|
+
"types": ["node"],
|
|
11
|
+
|
|
12
|
+
"allowImportingTsExtensions": false,
|
|
13
|
+
"allowJs": true,
|
|
14
|
+
"esModuleInterop": true,
|
|
15
|
+
"forceConsistentCasingInFileNames": true,
|
|
16
|
+
"incremental": false,
|
|
17
|
+
"isolatedModules": true,
|
|
18
|
+
"jsx": "preserve",
|
|
19
|
+
"resolveJsonModule": true,
|
|
20
|
+
"skipLibCheck": true,
|
|
21
|
+
"sourceMap": true,
|
|
22
|
+
"strict": true,
|
|
23
|
+
"useDefineForClassFields": true,
|
|
24
|
+
"verbatimModuleSyntax": true,
|
|
25
|
+
|
|
26
|
+
"noEmit": true,
|
|
27
|
+
"noImplicitOverride": true,
|
|
28
|
+
"noUncheckedIndexedAccess": true
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
+
"display": "React TS Config",
|
|
4
|
+
"compilerOptions": {
|
|
5
|
+
"lib": ["ESNext", "DOM", "DOM.Iterable"],
|
|
6
|
+
"module": "esnext",
|
|
7
|
+
"moduleDetection": "force",
|
|
8
|
+
"moduleResolution": "bundler",
|
|
9
|
+
"target": "es2022",
|
|
10
|
+
"outDir": "dist",
|
|
11
|
+
|
|
12
|
+
"allowImportingTsExtensions": false,
|
|
13
|
+
"allowJs": true,
|
|
14
|
+
"checkJs": true,
|
|
15
|
+
"esModuleInterop": true,
|
|
16
|
+
"forceConsistentCasingInFileNames": true,
|
|
17
|
+
"incremental": false,
|
|
18
|
+
"isolatedModules": true,
|
|
19
|
+
"jsx": "preserve",
|
|
20
|
+
"resolveJsonModule": true,
|
|
21
|
+
"skipLibCheck": true,
|
|
22
|
+
"strict": true,
|
|
23
|
+
"useDefineForClassFields": true,
|
|
24
|
+
"verbatimModuleSyntax": true,
|
|
25
|
+
|
|
26
|
+
"noEmit": true,
|
|
27
|
+
"noImplicitOverride": true,
|
|
28
|
+
"noUncheckedIndexedAccess": true
|
|
29
|
+
}
|
|
30
|
+
}
|