@danieljvdm/dev-kit 0.3.0 → 0.3.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/package.json +2 -2
- package/src/oxlint.js +31 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@danieljvdm/dev-kit",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Declarative project development toolkit with portable agent skills.",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"./schema/skill-sources.schema.json": "./schema/skill-sources.schema.json",
|
|
23
23
|
"./oxlint": {
|
|
24
24
|
"types": "./src/oxlint.ts",
|
|
25
|
-
"default": "./src/oxlint.
|
|
25
|
+
"default": "./src/oxlint.js"
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"files": [
|
package/src/oxlint.js
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Runtime form of the typed preset declared in oxlint.ts.
|
|
3
|
+
*
|
|
4
|
+
* This file is intentionally plain JavaScript because Node does not strip
|
|
5
|
+
* TypeScript from packages in node_modules when Vite+ loads vite.config.ts.
|
|
6
|
+
*/
|
|
7
|
+
export const recommendedOxlintConfig = {
|
|
8
|
+
options: {
|
|
9
|
+
typeAware: true,
|
|
10
|
+
},
|
|
11
|
+
plugins: ["import", "react", "vitest"],
|
|
12
|
+
rules: {
|
|
13
|
+
eqeqeq: "error",
|
|
14
|
+
"import/default": "off",
|
|
15
|
+
"import/namespace": "off",
|
|
16
|
+
"import/no-cycle": "error",
|
|
17
|
+
"import/no-duplicates": "error",
|
|
18
|
+
"import/no-self-import": "error",
|
|
19
|
+
"react/exhaustive-deps": "error",
|
|
20
|
+
"react/rules-of-hooks": "error",
|
|
21
|
+
"typescript/consistent-type-imports": "error",
|
|
22
|
+
"typescript/no-explicit-any": "error",
|
|
23
|
+
"typescript/no-non-null-assertion": "error",
|
|
24
|
+
"typescript/switch-exhaustiveness-check": "error",
|
|
25
|
+
"unicorn/prefer-node-protocol": "error",
|
|
26
|
+
"vitest/no-focused-tests": "error",
|
|
27
|
+
"vitest/no-identical-title": "error",
|
|
28
|
+
"vitest/no-standalone-expect": "off",
|
|
29
|
+
"vitest/valid-expect": "error",
|
|
30
|
+
},
|
|
31
|
+
};
|