@adamhl8/configs 0.20.0 → 0.20.2
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.
|
@@ -17,6 +17,12 @@ declare const baseConfig: {
|
|
|
17
17
|
readonly typeAware: true;
|
|
18
18
|
readonly typeCheck: true;
|
|
19
19
|
};
|
|
20
|
+
readonly overrides: [{
|
|
21
|
+
readonly files: ["knip.ts", "oxfmt.config.ts", "oxlint.config.ts", "tsdown.config.ts"];
|
|
22
|
+
readonly rules: {
|
|
23
|
+
readonly "import/no-default-export": "off";
|
|
24
|
+
};
|
|
25
|
+
}];
|
|
20
26
|
readonly plugins: ["eslint", "react", "unicorn", "typescript", "oxc", "import", "jsdoc", "vitest", "jsx-a11y", "react-perf", "promise", "node"];
|
|
21
27
|
readonly rules: {
|
|
22
28
|
readonly curly: ["error", "multi-or-nest"];
|
|
@@ -37,6 +43,9 @@ declare const baseConfig: {
|
|
|
37
43
|
readonly "import/prefer-default-export": "off";
|
|
38
44
|
readonly "jsdoc/require-param": "off";
|
|
39
45
|
readonly "jsdoc/require-returns": "off";
|
|
46
|
+
readonly "max-classes-per-file": "off";
|
|
47
|
+
readonly "max-lines-per-function": "off";
|
|
48
|
+
readonly "max-statements": "off";
|
|
40
49
|
readonly "no-console": "off";
|
|
41
50
|
readonly "no-continue": "off";
|
|
42
51
|
readonly "no-duplicate-imports": "off";
|
|
@@ -51,6 +60,7 @@ declare const baseConfig: {
|
|
|
51
60
|
readonly "typescript/explicit-module-boundary-types": "off";
|
|
52
61
|
readonly "typescript/prefer-readonly-parameter-types": "off";
|
|
53
62
|
readonly "typescript/strict-boolean-expressions": "off";
|
|
63
|
+
readonly "unicorn/switch-case-braces": "off";
|
|
54
64
|
};
|
|
55
65
|
readonly settings: {
|
|
56
66
|
readonly vitest: {
|
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA8EO,YAAA,EAAc,qBAAA,CAAsB,YAAA,SAAqB,UAAA"}
|
|
@@ -14,6 +14,15 @@ const oxlintConfig = createMergeConfigFn({
|
|
|
14
14
|
typeAware: true,
|
|
15
15
|
typeCheck: true
|
|
16
16
|
},
|
|
17
|
+
overrides: [{
|
|
18
|
+
files: [
|
|
19
|
+
"knip.ts",
|
|
20
|
+
"oxfmt.config.ts",
|
|
21
|
+
"oxlint.config.ts",
|
|
22
|
+
"tsdown.config.ts"
|
|
23
|
+
],
|
|
24
|
+
rules: { "import/no-default-export": "off" }
|
|
25
|
+
}],
|
|
17
26
|
plugins: [
|
|
18
27
|
"eslint",
|
|
19
28
|
"react",
|
|
@@ -49,6 +58,9 @@ const oxlintConfig = createMergeConfigFn({
|
|
|
49
58
|
"import/prefer-default-export": "off",
|
|
50
59
|
"jsdoc/require-param": "off",
|
|
51
60
|
"jsdoc/require-returns": "off",
|
|
61
|
+
"max-classes-per-file": "off",
|
|
62
|
+
"max-lines-per-function": "off",
|
|
63
|
+
"max-statements": "off",
|
|
52
64
|
"no-console": "off",
|
|
53
65
|
"no-continue": "off",
|
|
54
66
|
"no-duplicate-imports": "off",
|
|
@@ -62,7 +74,8 @@ const oxlintConfig = createMergeConfigFn({
|
|
|
62
74
|
"typescript/explicit-function-return-type": "off",
|
|
63
75
|
"typescript/explicit-module-boundary-types": "off",
|
|
64
76
|
"typescript/prefer-readonly-parameter-types": "off",
|
|
65
|
-
"typescript/strict-boolean-expressions": "off"
|
|
77
|
+
"typescript/strict-boolean-expressions": "off",
|
|
78
|
+
"unicorn/switch-case-braces": "off"
|
|
66
79
|
},
|
|
67
80
|
settings: { vitest: { typecheck: true } }
|
|
68
81
|
});
|
|
@@ -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 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 \"sort-keys\": [\"error\", \"asc\", { allowLineSeparatedGroups: true, natural: true }],\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 \"jsdoc/require-param\": \"off\",\n \"jsdoc/require-returns\": \"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-ternary\": \"off\",\n \"no-undef\": \"off\",\n \"no-undefined\": \"off\",\n \"oxc/no-rest-spread-properties\": \"off\",\n \"sort-imports\": \"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 },\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":";
|
|
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\"],\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 \"sort-keys\": [\"error\", \"asc\", { allowLineSeparatedGroups: true, natural: true }],\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 \"jsdoc/require-param\": \"off\",\n \"jsdoc/require-returns\": \"off\",\n \"max-classes-per-file\": \"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-ternary\": \"off\",\n \"no-undef\": \"off\",\n \"no-undefined\": \"off\",\n \"oxc/no-rest-spread-properties\": \"off\",\n \"sort-imports\": \"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/switch-case-braces\": \"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":";AAmFA,MAAa,eAAuE,oBAAoB;CA7EtG,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;EAAkB;EAC5E,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,aAAa;GAAC;GAAS;GAAO;IAAE,0BAA0B;IAAM,SAAS;GAAK;EAAC;EAE/E,wBAAwB;EACxB,aAAa;EACb,uBAAuB;EACvB,wBAAwB;EACxB,0BAA0B;EAC1B,4BAA4B;EAC5B,gCAAgC;EAChC,uBAAuB;EACvB,yBAAyB;EACzB,wBAAwB;EACxB,0BAA0B;EAC1B,kBAAkB;EAClB,cAAc;EACd,eAAe;EACf,wBAAwB;EACxB,sBAAsB;EACtB,oBAAoB;EACpB,cAAc;EACd,YAAY;EACZ,gBAAgB;EAChB,iCAAiC;EACjC,gBAAgB;EAChB,4CAA4C;EAC5C,6CAA6C;EAC7C,8CAA8C;EAC9C,yCAAyC;EACzC,8BAA8B;CAChC;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.20.
|
|
3
|
+
"version": "0.20.2",
|
|
4
4
|
"homepage": "https://github.com/adamhl8/configs",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/adamhl8/configs/issues"
|
|
@@ -38,9 +38,8 @@
|
|
|
38
38
|
"scripts": {
|
|
39
39
|
"bundle": "nub run lint && tsdown",
|
|
40
40
|
"lint": "markdown-toc -i --bullets '-' --maxdepth 3 ./README.md && oxfmt && oxlint --fix --fix-suggestions --fix-dangerously && ./src/adamhl8-knip/index.ts",
|
|
41
|
-
"prepare": "lefthook install",
|
|
41
|
+
"prepare": "lefthook install && nub ./patch-knip.ts",
|
|
42
42
|
"prepublishOnly": "nub run bundle",
|
|
43
|
-
"postinstall": "nub ./patch-knip.ts",
|
|
44
43
|
"bump-deps": "rm -f lock.yaml && nub update -L"
|
|
45
44
|
},
|
|
46
45
|
"dependencies": {
|