@adamhl8/configs 0.21.0 → 0.21.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.
|
@@ -30,9 +30,8 @@ declare const baseConfig: {
|
|
|
30
30
|
readonly "node/no-sync": ["error", {
|
|
31
31
|
readonly ignores: ["existsSync", "spawnSync"];
|
|
32
32
|
}];
|
|
33
|
-
readonly "
|
|
34
|
-
readonly
|
|
35
|
-
readonly natural: true;
|
|
33
|
+
readonly "require-unicode-regexp": ["error", {
|
|
34
|
+
readonly requireFlag: "v";
|
|
36
35
|
}];
|
|
37
36
|
readonly "capitalized-comments": "off";
|
|
38
37
|
readonly "id-length": "off";
|
|
@@ -53,13 +52,16 @@ declare const baseConfig: {
|
|
|
53
52
|
readonly "no-duplicate-imports": "off";
|
|
54
53
|
readonly "no-inline-comments": "off";
|
|
55
54
|
readonly "no-magic-numbers": "off";
|
|
55
|
+
readonly "no-plusplus": "off";
|
|
56
56
|
readonly "no-ternary": "off";
|
|
57
57
|
readonly "no-undef": "off";
|
|
58
58
|
readonly "no-undefined": "off";
|
|
59
|
+
readonly "no-useless-return": "off";
|
|
59
60
|
readonly "node/callback-return": "off";
|
|
60
61
|
readonly "oxc/no-optional-chaining": "off";
|
|
61
62
|
readonly "oxc/no-rest-spread-properties": "off";
|
|
62
63
|
readonly "sort-imports": "off";
|
|
64
|
+
readonly "sort-keys": "off";
|
|
63
65
|
readonly "typescript/consistent-return": "off";
|
|
64
66
|
readonly "typescript/explicit-function-return-type": "off";
|
|
65
67
|
readonly "typescript/explicit-module-boundary-types": "off";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oxlint.base.d.ts","names":[],"sources":["../../src/configs/oxlint.base.ts"],"mappings":";;;;cAKM,UAAA;EAAA
|
|
1
|
+
{"version":3,"file":"oxlint.base.d.ts","names":[],"sources":["../../src/configs/oxlint.base.ts"],"mappings":";;;;cAKM,UAAA;EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA+FO,YAAA,EAAc,qBAAA,CAAsB,YAAA,SAAqB,UAAA"}
|
|
@@ -42,14 +42,7 @@ const oxlintConfig = createMergeConfigFn({
|
|
|
42
42
|
curly: ["error", "multi-or-nest"],
|
|
43
43
|
"func-style": ["error", "expression"],
|
|
44
44
|
"node/no-sync": ["error", { ignores: ["existsSync", "spawnSync"] }],
|
|
45
|
-
"
|
|
46
|
-
"error",
|
|
47
|
-
"asc",
|
|
48
|
-
{
|
|
49
|
-
allowLineSeparatedGroups: true,
|
|
50
|
-
natural: true
|
|
51
|
-
}
|
|
52
|
-
],
|
|
45
|
+
"require-unicode-regexp": ["error", { requireFlag: "v" }],
|
|
53
46
|
"capitalized-comments": "off",
|
|
54
47
|
"id-length": "off",
|
|
55
48
|
"import/exports-last": "off",
|
|
@@ -69,13 +62,16 @@ const oxlintConfig = createMergeConfigFn({
|
|
|
69
62
|
"no-duplicate-imports": "off",
|
|
70
63
|
"no-inline-comments": "off",
|
|
71
64
|
"no-magic-numbers": "off",
|
|
65
|
+
"no-plusplus": "off",
|
|
72
66
|
"no-ternary": "off",
|
|
73
67
|
"no-undef": "off",
|
|
74
68
|
"no-undefined": "off",
|
|
69
|
+
"no-useless-return": "off",
|
|
75
70
|
"node/callback-return": "off",
|
|
76
71
|
"oxc/no-optional-chaining": "off",
|
|
77
72
|
"oxc/no-rest-spread-properties": "off",
|
|
78
73
|
"sort-imports": "off",
|
|
74
|
+
"sort-keys": "off",
|
|
79
75
|
"typescript/consistent-return": "off",
|
|
80
76
|
"typescript/explicit-function-return-type": "off",
|
|
81
77
|
"typescript/explicit-module-boundary-types": "off",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oxlint.base.js","names":[],"sources":["../../src/configs/oxlint.base.ts"],"sourcesContent":["import type { OxlintConfig } from \"oxlint\"\n\nimport { createMergeConfigFn } from \"#/utils.ts\"\nimport type { OptionalMergeConfigFn } from \"#/utils.ts\"\n\nconst baseConfig = {\n categories: {\n correctness: \"error\",\n nursery: \"error\",\n pedantic: \"error\",\n perf: \"error\",\n restriction: \"error\",\n style: \"error\",\n suspicious: \"error\",\n },\n options: {\n reportUnusedDisableDirectives: \"error\",\n typeAware: true,\n typeCheck: true,\n },\n overrides: [\n {\n files: [\"knip.ts\", \"oxfmt.config.ts\", \"oxlint.config.ts\", \"tsdown.config.ts\", \"vitest.config.ts\"],\n rules: {\n \"import/no-default-export\": \"off\",\n },\n },\n ],\n plugins: [\n \"eslint\",\n \"react\",\n \"unicorn\",\n \"typescript\",\n \"oxc\",\n \"import\",\n \"jsdoc\",\n \"vitest\",\n \"jsx-a11y\",\n \"react-perf\",\n \"promise\",\n \"node\",\n ],\n rules: {\n curly: [\"error\", \"multi-or-nest\"],\n \"func-style\": [\"error\", \"expression\"],\n \"node/no-sync\": [\"error\", { ignores: [\"existsSync\", \"spawnSync\"] }],\n \"
|
|
1
|
+
{"version":3,"file":"oxlint.base.js","names":[],"sources":["../../src/configs/oxlint.base.ts"],"sourcesContent":["import type { OxlintConfig } from \"oxlint\"\n\nimport { createMergeConfigFn } from \"#/utils.ts\"\nimport type { OptionalMergeConfigFn } from \"#/utils.ts\"\n\nconst baseConfig = {\n categories: {\n correctness: \"error\",\n nursery: \"error\",\n pedantic: \"error\",\n perf: \"error\",\n restriction: \"error\",\n style: \"error\",\n suspicious: \"error\",\n },\n options: {\n reportUnusedDisableDirectives: \"error\",\n typeAware: true,\n typeCheck: true,\n },\n overrides: [\n {\n files: [\"knip.ts\", \"oxfmt.config.ts\", \"oxlint.config.ts\", \"tsdown.config.ts\", \"vitest.config.ts\"],\n rules: {\n \"import/no-default-export\": \"off\",\n },\n },\n ],\n plugins: [\n \"eslint\",\n \"react\",\n \"unicorn\",\n \"typescript\",\n \"oxc\",\n \"import\",\n \"jsdoc\",\n \"vitest\",\n \"jsx-a11y\",\n \"react-perf\",\n \"promise\",\n \"node\",\n ],\n rules: {\n curly: [\"error\", \"multi-or-nest\"],\n \"func-style\": [\"error\", \"expression\"],\n \"node/no-sync\": [\"error\", { ignores: [\"existsSync\", \"spawnSync\"] }],\n \"require-unicode-regexp\": [\"error\", { requireFlag: \"v\" }],\n\n \"capitalized-comments\": \"off\",\n \"id-length\": \"off\",\n \"import/exports-last\": \"off\",\n \"import/group-exports\": \"off\",\n \"import/no-named-export\": \"off\",\n \"import/no-nodejs-modules\": \"off\",\n \"import/prefer-default-export\": \"off\",\n \"init-declarations\": \"off\",\n \"jsdoc/require-param\": \"off\",\n \"jsdoc/require-returns\": \"off\",\n \"max-classes-per-file\": \"off\",\n \"max-lines\": \"off\",\n \"max-lines-per-function\": \"off\",\n \"max-statements\": \"off\",\n \"no-console\": \"off\",\n \"no-continue\": \"off\",\n \"no-duplicate-imports\": \"off\",\n \"no-inline-comments\": \"off\",\n \"no-magic-numbers\": \"off\",\n \"no-plusplus\": \"off\",\n \"no-ternary\": \"off\",\n \"no-undef\": \"off\",\n \"no-undefined\": \"off\",\n \"no-useless-return\": \"off\",\n \"node/callback-return\": \"off\",\n \"oxc/no-optional-chaining\": \"off\",\n \"oxc/no-rest-spread-properties\": \"off\",\n \"sort-imports\": \"off\",\n \"sort-keys\": \"off\",\n \"typescript/consistent-return\": \"off\",\n \"typescript/explicit-function-return-type\": \"off\",\n \"typescript/explicit-module-boundary-types\": \"off\",\n \"typescript/prefer-readonly-parameter-types\": \"off\",\n \"typescript/strict-boolean-expressions\": \"off\",\n \"unicorn/no-array-callback-reference\": \"off\",\n \"unicorn/no-array-method-this-argument\": \"off\",\n \"unicorn/switch-case-braces\": \"off\",\n \"vitest/no-importing-vitest-globals\": \"off\",\n \"vitest/prefer-expect-assertions\": \"off\",\n \"vitest/prefer-lowercase-title\": \"off\",\n \"vitest/prefer-to-be-falsy\": \"off\",\n \"vitest/prefer-to-be-truthy\": \"off\",\n \"vitest/require-hook\": \"off\", // reenable when false positives are fixed?\n \"vitest/require-test-timeout\": \"off\",\n },\n settings: {\n vitest: {\n typecheck: true,\n },\n },\n} as const satisfies OxlintConfig\n\nexport const oxlintConfig: OptionalMergeConfigFn<OxlintConfig, typeof baseConfig> = createMergeConfigFn(baseConfig)\n"],"mappings":";AAoGA,MAAa,eAAuE,oBAAoB;CA9FtG,YAAY;EACV,aAAa;EACb,SAAS;EACT,UAAU;EACV,MAAM;EACN,aAAa;EACb,OAAO;EACP,YAAY;CACd;CACA,SAAS;EACP,+BAA+B;EAC/B,WAAW;EACX,WAAW;CACb;CACA,WAAW,CACT;EACE,OAAO;GAAC;GAAW;GAAmB;GAAoB;GAAoB;EAAkB;EAChG,OAAO,EACL,4BAA4B,MAC9B;CACF,CACF;CACA,SAAS;EACP;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACF;CACA,OAAO;EACL,OAAO,CAAC,SAAS,eAAe;EAChC,cAAc,CAAC,SAAS,YAAY;EACpC,gBAAgB,CAAC,SAAS,EAAE,SAAS,CAAC,cAAc,WAAW,EAAE,CAAC;EAClE,0BAA0B,CAAC,SAAS,EAAE,aAAa,IAAI,CAAC;EAExD,wBAAwB;EACxB,aAAa;EACb,uBAAuB;EACvB,wBAAwB;EACxB,0BAA0B;EAC1B,4BAA4B;EAC5B,gCAAgC;EAChC,qBAAqB;EACrB,uBAAuB;EACvB,yBAAyB;EACzB,wBAAwB;EACxB,aAAa;EACb,0BAA0B;EAC1B,kBAAkB;EAClB,cAAc;EACd,eAAe;EACf,wBAAwB;EACxB,sBAAsB;EACtB,oBAAoB;EACpB,eAAe;EACf,cAAc;EACd,YAAY;EACZ,gBAAgB;EAChB,qBAAqB;EACrB,wBAAwB;EACxB,4BAA4B;EAC5B,iCAAiC;EACjC,gBAAgB;EAChB,aAAa;EACb,gCAAgC;EAChC,4CAA4C;EAC5C,6CAA6C;EAC7C,8CAA8C;EAC9C,yCAAyC;EACzC,uCAAuC;EACvC,yCAAyC;EACzC,8BAA8B;EAC9B,sCAAsC;EACtC,mCAAmC;EACnC,iCAAiC;EACjC,6BAA6B;EAC7B,8BAA8B;EAC9B,uBAAuB;EACvB,+BAA+B;CACjC;CACA,UAAU,EACR,QAAQ,EACN,WAAW,KACb,EACF;AAGsG,CAAU"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adamhl8/configs",
|
|
3
|
-
"version": "0.21.
|
|
3
|
+
"version": "0.21.1",
|
|
4
4
|
"homepage": "https://github.com/adamhl8/configs",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/adamhl8/configs/issues"
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"lint": "markdown-toc -i --bullets '-' --maxdepth 3 ./README.md && oxfmt && oxlint --fix --fix-suggestions --fix-dangerously && ./src/adamhl8-knip/index.ts",
|
|
41
41
|
"prepare": "lefthook install && nub ./patch-knip.ts",
|
|
42
42
|
"prepublishOnly": "nub run bundle",
|
|
43
|
-
"bump-deps": "rm -f lock.yaml && nub update -L"
|
|
43
|
+
"bump-deps": "rm -f lock.yaml && nub update -L && nub ./patch-knip.ts"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"es-toolkit": "^1.49.0",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@arethetypeswrong/core": "^0.18.4",
|
|
51
51
|
"@types/node": "^26.0.1",
|
|
52
|
-
"knip": "^6.
|
|
52
|
+
"knip": "^6.23.0",
|
|
53
53
|
"markdown-toc": "^1.2.0",
|
|
54
54
|
"oxfmt": "^0.56.0",
|
|
55
55
|
"oxlint": "^1.71.0",
|