@hiddenability/opinionated-defaults 0.1.43 → 0.1.45
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/eslint/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export { default as eslintConfigAstro } from "./astro";
|
|
2
2
|
export { default as eslintConfigBase } from "./base";
|
|
3
3
|
export { eslintConfig } from "./config";
|
|
4
|
-
export { default as eslintConfigDefaultProject } from "./default-project";
|
|
5
4
|
export { default as eslintConfigFunctional } from "./functional";
|
|
6
5
|
export { default as eslintConfigNext } from "./next";
|
|
7
6
|
export { default as eslintConfigOxlint } from "./oxlint";
|
package/dist/eslint/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import f from"eslint-plugin-astro";var i=[...f.configs.recommended],s=i;import a from"@eslint/js";import p from"@typescript-eslint/parser";import m from"eslint-plugin-prefer-arrow-functions";import
|
|
1
|
+
import f from"eslint-plugin-astro";var i=[...f.configs.recommended],s=i;import a from"@eslint/js";import p from"@typescript-eslint/parser";import m from"eslint-plugin-prefer-arrow-functions";import c from"eslint-plugin-unicorn";import e from"globals";import g from"typescript-eslint";var l=[{ignores:["**/dist/","**/node_modules/","**/.git/"]},{files:["**/*.ts","**/*.js","**/*.mjs","**/*.mts","**/*.tsx","**/*.jsx"]},...g.configs.recommendedTypeChecked,a.configs.recommended,c.configs.recommended,{languageOptions:{globals:{...e.nodeBuiltin,...e.browser},parser:p,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","no-unused-vars":["error",{args:"all",argsIgnorePattern:"^_",caughtErrors:"all",caughtErrorsIgnorePattern:"^_",destructuredArrayIgnorePattern:"^_",ignoreRestSiblings:!0,varsIgnorePattern:"^_"}]}},{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":m},rules:{"prefer-arrow-functions/prefer-arrow-functions":["error",{returnStyle:"implicit"}]}}],u=l;var d=(n)=>n;import o from"eslint-plugin-functional";var y=[o.configs.externalTypeScriptRecommended,o.configs.recommended,o.configs.stylistic,{rules:{"functional/no-expression-statements":["off"],"functional/no-return-void":["off"]}}],C=y;import t from"@next/eslint-plugin-next";var x=[{ignores:["**/next-env.d.ts"]},{plugins:{"@next/next":t},rules:{...t.configs.recommended.rules,...t.configs["core-web-vitals"].rules}}],A=x;import R from"eslint-plugin-oxlint";var k=[...R.configs["flat/recommended"]],w=k;import N from"eslint-plugin-perfectionist";var b=[N.configs["recommended-natural"],{rules:{"perfectionist/sort-object-types":["warn",{partitionByNewLine:!0}],"perfectionist/sort-objects":["warn",{partitionByNewLine:!0}]}}],B=b;import O from"@stylistic/eslint-plugin";import j from"eslint-plugin-prettier/recommended";var v=[j,{plugins:{"@stylistic":O},rules:{"@stylistic/quotes":["warn","backtick",{avoidEscape:!0}],"prettier/prettier":"warn"}}],L=v;import r from"eslint-plugin-react";import T from"eslint-plugin-react-hooks";import{defineConfig as H}from"eslint/config";var J=H([r.configs.flat.recommended,r.configs.flat["jsx-runtime"],{extends:["react-hooks/recommended"],plugins:{"react-hooks":T}},{settings:{react:{version:"detect"}}}]),S=J;import h from"eslint-plugin-no-relative-import-paths";var q=[{plugins:{"no-relative-import-paths":h},rules:{"no-relative-import-paths/no-relative-import-paths":["error",{prefix:"@"}]}}],z=q;import D from"eslint-plugin-solid/configs/typescript";var E=[D],F=E;import G from"eslint-plugin-turbo";var K=[G.configs["flat/recommended"]],M=K;export{M as eslintConfigTurbo,F as eslintConfigSolid,z as eslintConfigRelative,S as eslintConfigReact,L as eslintConfigPrettier,B as eslintConfigPerfectionist,w as eslintConfigOxlint,A as eslintConfigNext,C as eslintConfigFunctional,u as eslintConfigBase,s as eslintConfigAstro,d as eslintConfig};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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.45",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -11,10 +11,12 @@
|
|
|
11
11
|
"type": "module",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"test-cli": "bun dist/cli/index.mjs",
|
|
14
|
-
"build": "bun ./scripts/build.ts
|
|
15
|
-
"prepack": "bun ./scripts/build.ts
|
|
16
|
-
"lint": "
|
|
17
|
-
"lint:fix": "
|
|
14
|
+
"build": "bun test && bun ./scripts/build.ts",
|
|
15
|
+
"prepack": "bun test && bun ./scripts/build.ts",
|
|
16
|
+
"lint": "oxlint && eslint_d",
|
|
17
|
+
"lint:fix": "oxlint --fix --fix-suggestions && eslint_d --fix",
|
|
18
|
+
"format": "prettier . -c",
|
|
19
|
+
"format:fix": "prettier . -w"
|
|
18
20
|
},
|
|
19
21
|
"exports": {
|
|
20
22
|
"./eslint": {
|
|
@@ -34,48 +36,49 @@
|
|
|
34
36
|
"dist"
|
|
35
37
|
],
|
|
36
38
|
"dependencies": {
|
|
37
|
-
"@eslint/compat": "^
|
|
38
|
-
"@eslint/js": "^9.
|
|
39
|
-
"@
|
|
40
|
-
"@
|
|
39
|
+
"@eslint/compat": "^1.4.0",
|
|
40
|
+
"@eslint/js": "^9.38.0",
|
|
41
|
+
"@next/eslint-plugin-next": "^15.5.6",
|
|
42
|
+
"@stylistic/eslint-plugin": "^5.5.0",
|
|
43
|
+
"@trivago/prettier-plugin-sort-imports": "^5.2.2",
|
|
44
|
+
"eslint": "^9.38.0",
|
|
41
45
|
"eslint-config-prettier": "^10.1.8",
|
|
46
|
+
"eslint-plugin-astro": "^1.4.0",
|
|
42
47
|
"eslint-plugin-functional": "^9.0.2",
|
|
43
48
|
"eslint-plugin-import": "^2.32.0",
|
|
44
49
|
"eslint-plugin-no-relative-import-paths": "^1.6.1",
|
|
45
|
-
"eslint-plugin-oxlint": "1.
|
|
46
|
-
"eslint-plugin-perfectionist": "^
|
|
50
|
+
"eslint-plugin-oxlint": "1.23.0",
|
|
51
|
+
"eslint-plugin-perfectionist": "^4.15.1",
|
|
47
52
|
"eslint-plugin-prefer-arrow-functions": "^3.9.1",
|
|
48
53
|
"eslint-plugin-prettier": "^5.5.4",
|
|
49
|
-
"eslint-plugin-unicorn": "^62.0.0",
|
|
50
|
-
"jiti": "^2.6.1",
|
|
51
|
-
"lodash": "^4.17.21",
|
|
52
|
-
"prettier-plugin-tailwindcss": "0.7.2",
|
|
53
|
-
"@next/eslint-plugin-next": "^16.1.1",
|
|
54
|
-
"eslint": "^9.39.2",
|
|
55
|
-
"eslint-plugin-astro": "^1.5.0",
|
|
56
54
|
"eslint-plugin-react": "^7.37.5",
|
|
57
|
-
"eslint-plugin-react-hooks": "^
|
|
55
|
+
"eslint-plugin-react-hooks": "^6.1.1",
|
|
58
56
|
"eslint-plugin-solid": "^0.14.5",
|
|
59
|
-
"eslint-plugin-turbo": "^2.
|
|
60
|
-
"
|
|
57
|
+
"eslint-plugin-turbo": "^2.5.8",
|
|
58
|
+
"eslint-plugin-unicorn": "^61.0.2",
|
|
59
|
+
"jiti": "^2.6.1",
|
|
60
|
+
"lodash": "^4.17.21",
|
|
61
|
+
"oxlint": "^1.24.0",
|
|
62
|
+
"prettier": "^3.6.2",
|
|
61
63
|
"prettier-plugin-astro": "^0.14.1",
|
|
62
|
-
"
|
|
64
|
+
"prettier-plugin-tailwindcss": "0.6.14",
|
|
65
|
+
"typescript-eslint": "^8.46.2"
|
|
63
66
|
},
|
|
64
67
|
"devDependencies": {
|
|
65
68
|
"@hiddenability/opinionated-defaults": "link:@hiddenability/opinionated-defaults",
|
|
66
|
-
"@types/bun": "^1.3.
|
|
67
|
-
"@types/lodash": "^4.17.
|
|
68
|
-
"@types/node": "^
|
|
69
|
+
"@types/bun": "^1.3.1",
|
|
70
|
+
"@types/lodash": "^4.17.20",
|
|
71
|
+
"@types/node": "^24.9.1",
|
|
69
72
|
"consola": "^3.4.2",
|
|
70
73
|
"eslint_d": "^14.3.0",
|
|
71
|
-
"oxc-transform": "^0.
|
|
74
|
+
"oxc-transform": "^0.94.0"
|
|
72
75
|
},
|
|
73
76
|
"optionalDependencies": {
|
|
74
|
-
"@hiddenability/opinionated-defaults-darwin-arm64": "^0.1.
|
|
75
|
-
"@hiddenability/opinionated-defaults-darwin-x64": "^0.1.
|
|
76
|
-
"@hiddenability/opinionated-defaults-linux-arm64": "^0.1.
|
|
77
|
-
"@hiddenability/opinionated-defaults-linux-x64": "^0.1.
|
|
78
|
-
"@hiddenability/opinionated-defaults-win-arm64": "^0.1.
|
|
79
|
-
"@hiddenability/opinionated-defaults-win-x64": "^0.1.
|
|
77
|
+
"@hiddenability/opinionated-defaults-darwin-arm64": "^0.1.32",
|
|
78
|
+
"@hiddenability/opinionated-defaults-darwin-x64": "^0.1.32",
|
|
79
|
+
"@hiddenability/opinionated-defaults-linux-arm64": "^0.1.32",
|
|
80
|
+
"@hiddenability/opinionated-defaults-linux-x64": "^0.1.32",
|
|
81
|
+
"@hiddenability/opinionated-defaults-win-arm64": "^0.1.32",
|
|
82
|
+
"@hiddenability/opinionated-defaults-win-x64": "^0.1.32"
|
|
80
83
|
}
|
|
81
84
|
}
|