@hiddenability/opinionated-defaults 0.1.6 → 0.1.8
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/dist/cli/index.d.ts +1 -0
- package/dist/cli/index.mjs +2 -0
- package/dist/eslint/base.d.ts +1 -1
- package/dist/eslint/index.d.ts +0 -1
- package/dist/eslint/index.mjs +1 -1
- package/package.json +18 -7
- package/dist/eslint/typescript.d.ts +0 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import{spawnSync as e}from"node:child_process";import t from"node:process";var r=()=>{let i=t.arch,n=t.platform,o="";if(["cygwin","win32"].includes(t.platform))n="windows",o=".exe";try{return import.meta.resolve(`@hiddenability/opinionated-defaults-${n}-${i}/bin/bin${o}`)}catch{throw new Error(`Couldn't find application binary inside node_modules for ${n}-${i}`)}},s=()=>{let i=t.argv.slice(2),n=e(r(),i,{stdio:"inherit"});t.exit(n.status??0)};s();
|
package/dist/eslint/base.d.ts
CHANGED
package/dist/eslint/index.d.ts
CHANGED
|
@@ -12,4 +12,3 @@ export { default as eslintConfigRelative } from "./relative";
|
|
|
12
12
|
export { default as eslintConfigSolid } from "./solid";
|
|
13
13
|
export { default as eslintConfigStylistic } from "./stylistic";
|
|
14
14
|
export { default as eslintConfigTurbo } from "./turbo";
|
|
15
|
-
export { default as eslintConfigTypescript } from "./typescript";
|
package/dist/eslint/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import a from"eslint-plugin-astro";var p=[...a.configs.recommended],m=p;import l from"@eslint/js";import c from"@typescript-eslint/parser";import g from"eslint-plugin-prefer-arrow-functions";import y from"eslint-plugin-unicorn";import C from"typescript-eslint";var u=[{ignores:["**/dist/","**/node_modules/","**/.direnv/","**/.git/"]},{files:["**/*.ts","**/*.js","**/*.mjs","**/*.mts","**/*.tsx","**/*.jsx"]},...C.configs.recommendedTypeChecked,l.configs.recommended,y.configs.recommended,{languageOptions:{parser:c,parserOptions:{projectService:!0}},rules:{"@typescript-eslint/no-misused-promises":["error",{checksVoidReturn:!1}],"@typescript-eslint/no-unused-vars":["error",{args:"all",argsIgnorePattern:"^_",caughtErrors:"all",caughtErrorsIgnorePattern:"^_",destructuredArrayIgnorePattern:"^_",ignoreRestSiblings:!0,varsIgnorePattern:"^_"}],"@typescript-eslint/prefer-nullish-coalescing":"error"}},{rules:{"unicorn/filename-case":["error",{cases:{kebabCase:!0}}],"unicorn/no-array-for-each":["off"],"unicorn/no-array-reduce":["off"],"unicorn/prevent-abbreviations":["off"]}},{plugins:{"prefer-arrow-functions":g},rules:{"prefer-arrow-functions/prefer-arrow-functions":["error",{returnStyle:"implicit"}]}},{rules:{"no-console":"warn",quotes:["warn","backtick",{avoidEscape:!0}]}}],t=u;var d=(s)=>s;import o from"eslint-plugin-functional";var x=[o.configs.externalTypeScriptRecommended,o.configs.recommended,o.configs.stylistic,{rules:{"functional/no-expression-statements":["off"],"functional/no-return-void":["off"]}}],r=x;import A from"eslint-plugin-no-relative-import-paths";var b=[{plugins:{"no-relative-import-paths":A},rules:{"no-relative-import-paths/no-relative-import-paths":["error",{prefix:"@"}]}}],e=b;var R=[...t,...r,...e],w=R;import i from"@next/eslint-plugin-next";var N=[{plugins:{"@next/next":i},rules:{...i.configs.recommended.rules,...i.configs["core-web-vitals"].rules}}],k=N;import B from"eslint-plugin-oxlint";var O=[...B.configs["flat/recommended"]],j=O;import L from"eslint-plugin-perfectionist";var S=[L.configs["recommended-natural"],{rules:{"perfectionist/sort-object-types":["warn",{partitionByNewLine:!0}],"perfectionist/sort-objects":["warn",{partitionByNewLine:!0}]}}],T=S;import v from"eslint-plugin-prettier/recommended";var E=[v,{rules:{"prettier/prettier":"warn",quotes:["warn","backtick",{avoidEscape:!0}]}}],H=E;import f from"eslint-plugin-react";import J from"eslint-plugin-react-hooks";var q=[f.configs.flat.recommended,f.configs.flat["jsx-runtime"],J.configs["recommended-latest"]],z=q;import D from"eslint-plugin-solid/configs/typescript";var F=[D],G=F;import n from"@stylistic/eslint-plugin";var K=[n.configs.all,{plugins:{"@stylistic":n}}],M=K;import Q from"eslint-plugin-turbo";var V=[Q.configs["flat/recommended"]],W=V;export{W as eslintConfigTurbo,M as eslintConfigStylistic,G as eslintConfigSolid,e as eslintConfigRelative,z as eslintConfigReact,H as eslintConfigPrettier,T as eslintConfigPerfectionist,j as eslintConfigOxlint,k as eslintConfigNext,r as eslintConfigFunctional,w as eslintConfigElysia,t as eslintConfigBase,m as eslintConfigAstro,d as eslintConfig};
|
package/package.json
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hiddenability/opinionated-defaults",
|
|
3
3
|
"description": "Opinionated default configurations for webdev tools.",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.8",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "git+https://github.com/HiddenAbilitree/opinionated-defaults.git"
|
|
9
9
|
},
|
|
10
|
+
"bin": "dist/cli/index.mjs",
|
|
10
11
|
"type": "module",
|
|
11
12
|
"scripts": {
|
|
13
|
+
"test-cli": "bun dist/cli/index.mjs",
|
|
12
14
|
"build": "bun test && bun ./scripts/build.ts",
|
|
13
15
|
"prepack": "bun test && bun ./scripts/build.ts",
|
|
14
16
|
"lint": "oxlint && eslint_d",
|
|
@@ -35,8 +37,8 @@
|
|
|
35
37
|
],
|
|
36
38
|
"dependencies": {
|
|
37
39
|
"@eslint/compat": "^1.3.1",
|
|
38
|
-
"@eslint/js": "^9.
|
|
39
|
-
"@next/eslint-plugin-next": "^15.4.
|
|
40
|
+
"@eslint/js": "^9.32.0",
|
|
41
|
+
"@next/eslint-plugin-next": "^15.4.5",
|
|
40
42
|
"@stylistic/eslint-plugin": "^5.2.2",
|
|
41
43
|
"@trivago/prettier-plugin-sort-imports": "^5.2.2",
|
|
42
44
|
"eslint": "^9.32.0",
|
|
@@ -45,7 +47,7 @@
|
|
|
45
47
|
"eslint-plugin-functional": "^9.0.2",
|
|
46
48
|
"eslint-plugin-import": "^2.32.0",
|
|
47
49
|
"eslint-plugin-no-relative-import-paths": "^1.6.1",
|
|
48
|
-
"eslint-plugin-oxlint": "^1.
|
|
50
|
+
"eslint-plugin-oxlint": "^1.9.0",
|
|
49
51
|
"eslint-plugin-perfectionist": "^4.15.0",
|
|
50
52
|
"eslint-plugin-prefer-arrow-functions": "^3.6.2",
|
|
51
53
|
"eslint-plugin-prettier": "^5.5.3",
|
|
@@ -56,8 +58,8 @@
|
|
|
56
58
|
"eslint-plugin-unicorn": "^60.0.0",
|
|
57
59
|
"jiti": "^2.5.1",
|
|
58
60
|
"lodash": "^4.17.21",
|
|
59
|
-
"oxlint": "^1.
|
|
60
|
-
"prettier": "3.6.2",
|
|
61
|
+
"oxlint": "^1.9.0",
|
|
62
|
+
"prettier": "^3.6.2",
|
|
61
63
|
"prettier-plugin-astro": "^0.14.1",
|
|
62
64
|
"prettier-plugin-tailwindcss": "0.6.14",
|
|
63
65
|
"typescript-eslint": "^8.38.0"
|
|
@@ -68,6 +70,15 @@
|
|
|
68
70
|
"@types/lodash": "^4.17.20",
|
|
69
71
|
"consola": "^3.4.2",
|
|
70
72
|
"eslint_d": "^14.3.0",
|
|
71
|
-
"
|
|
73
|
+
"next": "^15.4.2-canary.25",
|
|
74
|
+
"oxc-transform": "^0.79.1"
|
|
75
|
+
},
|
|
76
|
+
"optionalDependencies":{
|
|
77
|
+
"@hiddenability/opinionated-defaults-darwin-arm64": "^0.1.7",
|
|
78
|
+
"@hiddenability/opinionated-defaults-darwin-x64": "^0.1.7",
|
|
79
|
+
"@hiddenability/opinionated-defaults-linux-arm64": "^0.1.7",
|
|
80
|
+
"@hiddenability/opinionated-defaults-linux-x64": "^0.1.7",
|
|
81
|
+
"@hiddenability/opinionated-defaults-win-arm64": "^0.1.7",
|
|
82
|
+
"@hiddenability/opinionated-defaults-win-x64": "^0.1.7"
|
|
72
83
|
}
|
|
73
84
|
}
|