@hiddenability/opinionated-defaults 0.1.34 → 0.1.40
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,6 +1,7 @@
|
|
|
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";
|
|
4
5
|
export { default as eslintConfigFunctional } from "./functional";
|
|
5
6
|
export { default as eslintConfigNext } from "./next";
|
|
6
7
|
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 c from"eslint-plugin-unicorn";import e from"globals";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 l from"typescript-eslint";var g=[{ignores:["**/dist/","**/node_modules/","**/.git/"]},{files:["**/*.ts","**/*.js","**/*.mjs","**/*.mts","**/*.tsx","**/*.jsx"]},...l.configs.recommendedTypeChecked,a.configs.recommended,c.configs.recommended,{languageOptions:{globals:{...e.nodeBuiltin,...e.browser},parser:p,parserOptions:{projectService:{allowDefaultProject:["prettier.config.mjs"]}}},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=g;var y=(n)=>n;var d=[{languageOptions:{parserOptions:{projectService:{allowDefaultProject:["eslint.config.ts","prettier.config.mjs"]}}}}],C=d;import t from"eslint-plugin-functional";var x=[t.configs.externalTypeScriptRecommended,t.configs.recommended,t.configs.stylistic,{rules:{"functional/no-expression-statements":["off"],"functional/no-return-void":["off"]}}],A=x;import o from"@next/eslint-plugin-next";var R=[{ignores:["**/next-env.d.ts"]},{plugins:{"@next/next":o},rules:{...o.configs.recommended.rules,...o.configs["core-web-vitals"].rules}}],j=R;import w from"eslint-plugin-oxlint";var O=[...w.configs["flat/recommended"]],N=O;import b from"eslint-plugin-perfectionist";var k=[b.configs["recommended-natural"],{rules:{"perfectionist/sort-object-types":["warn",{partitionByNewLine:!0}],"perfectionist/sort-objects":["warn",{partitionByNewLine:!0}]}}],v=k;import B from"@stylistic/eslint-plugin";import D from"eslint-plugin-prettier/recommended";var L=[D,{plugins:{"@stylistic":B},rules:{"@stylistic/quotes":["warn","backtick",{avoidEscape:!0}],"prettier/prettier":"warn"}}],S=L;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"],T.configs.flat["recommended-latest"],{settings:{react:{version:"detect"}}}]),P=J;import q from"eslint-plugin-no-relative-import-paths";var z=[{plugins:{"no-relative-import-paths":q},rules:{"no-relative-import-paths/no-relative-import-paths":["error",{prefix:"@"}]}}],E=z;import F from"eslint-plugin-solid/configs/typescript";var G=[F],K=G;import M from"eslint-plugin-turbo";var Q=[M.configs["flat/recommended"]],V=Q;export{V as eslintConfigTurbo,K as eslintConfigSolid,E as eslintConfigRelative,P as eslintConfigReact,S as eslintConfigPrettier,v as eslintConfigPerfectionist,N as eslintConfigOxlint,j as eslintConfigNext,A as eslintConfigFunctional,C as eslintConfigDefaultProject,u as eslintConfigBase,s as eslintConfigAstro,y 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.40",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
"type": "module",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"test-cli": "bun dist/cli/index.mjs",
|
|
14
|
-
"build": "bun
|
|
15
|
-
"prepack": "bun
|
|
16
|
-
"lint": "oxlint &&
|
|
17
|
-
"lint:fix": "oxlint --fix --fix-suggestions &&
|
|
14
|
+
"build": "bun ./scripts/build.ts && bun test",
|
|
15
|
+
"prepack": "bun ./scripts/build.ts && bun test",
|
|
16
|
+
"lint": "oxlint && eslint",
|
|
17
|
+
"lint:fix": "oxlint --fix --fix-suggestions && eslint --fix",
|
|
18
18
|
"format": "prettier . -c",
|
|
19
19
|
"format:fix": "prettier . -w"
|
|
20
20
|
},
|
|
@@ -36,49 +36,51 @@
|
|
|
36
36
|
"dist"
|
|
37
37
|
],
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@eslint/compat": "^
|
|
40
|
-
"@eslint/js": "^9.
|
|
41
|
-
"@
|
|
42
|
-
"@
|
|
43
|
-
"@trivago/prettier-plugin-sort-imports": "^5.2.2",
|
|
44
|
-
"eslint": "^9.38.0",
|
|
39
|
+
"@eslint/compat": "^2.0.0",
|
|
40
|
+
"@eslint/js": "^9.39.2",
|
|
41
|
+
"@stylistic/eslint-plugin": "^5.6.1",
|
|
42
|
+
"@trivago/prettier-plugin-sort-imports": "^6.0.0",
|
|
45
43
|
"eslint-config-prettier": "^10.1.8",
|
|
46
|
-
"eslint-plugin-astro": "^1.4.0",
|
|
47
44
|
"eslint-plugin-functional": "^9.0.2",
|
|
48
45
|
"eslint-plugin-import": "^2.32.0",
|
|
49
46
|
"eslint-plugin-no-relative-import-paths": "^1.6.1",
|
|
50
|
-
"eslint-plugin-oxlint": "1.
|
|
51
|
-
"eslint-plugin-perfectionist": "^
|
|
47
|
+
"eslint-plugin-oxlint": "1.35.0",
|
|
48
|
+
"eslint-plugin-perfectionist": "^5.1.0",
|
|
52
49
|
"eslint-plugin-prefer-arrow-functions": "^3.9.1",
|
|
53
50
|
"eslint-plugin-prettier": "^5.5.4",
|
|
54
|
-
"eslint-plugin-
|
|
55
|
-
"eslint-plugin-react-hooks": "^6.1.1",
|
|
56
|
-
"eslint-plugin-solid": "^0.14.5",
|
|
57
|
-
"eslint-plugin-turbo": "^2.5.8",
|
|
58
|
-
"eslint-plugin-unicorn": "^61.0.2",
|
|
51
|
+
"eslint-plugin-unicorn": "^62.0.0",
|
|
59
52
|
"jiti": "^2.6.1",
|
|
60
53
|
"lodash": "^4.17.21",
|
|
61
|
-
"
|
|
62
|
-
|
|
54
|
+
"prettier-plugin-tailwindcss": "0.7.2"
|
|
55
|
+
},
|
|
56
|
+
"peerDependencies": {
|
|
57
|
+
"@next/eslint-plugin-next": "^16.1.1",
|
|
58
|
+
"eslint": "^9.39.2",
|
|
59
|
+
"eslint-plugin-astro": "^1.5.0",
|
|
60
|
+
"eslint-plugin-react": "^7.37.5",
|
|
61
|
+
"eslint-plugin-react-hooks": "^7.0.1",
|
|
62
|
+
"eslint-plugin-solid": "^0.14.5",
|
|
63
|
+
"eslint-plugin-turbo": "^2.7.2",
|
|
64
|
+
"oxlint": "^1.35.0",
|
|
65
|
+
"prettier": "^3.7.4",
|
|
63
66
|
"prettier-plugin-astro": "^0.14.1",
|
|
64
|
-
"
|
|
65
|
-
"typescript-eslint": "^8.46.2"
|
|
67
|
+
"typescript-eslint": "^8.50.1"
|
|
66
68
|
},
|
|
67
69
|
"devDependencies": {
|
|
68
70
|
"@hiddenability/opinionated-defaults": "link:@hiddenability/opinionated-defaults",
|
|
69
|
-
"@types/bun": "^1.3.
|
|
70
|
-
"@types/lodash": "^4.17.
|
|
71
|
-
"@types/node": "^
|
|
71
|
+
"@types/bun": "^1.3.5",
|
|
72
|
+
"@types/lodash": "^4.17.21",
|
|
73
|
+
"@types/node": "^25.0.3",
|
|
72
74
|
"consola": "^3.4.2",
|
|
73
75
|
"eslint_d": "^14.3.0",
|
|
74
|
-
"oxc-transform": "^0.
|
|
76
|
+
"oxc-transform": "^0.105.0"
|
|
75
77
|
},
|
|
76
78
|
"optionalDependencies": {
|
|
77
|
-
"@hiddenability/opinionated-defaults-darwin-arm64": "^0.1.
|
|
78
|
-
"@hiddenability/opinionated-defaults-darwin-x64": "^0.1.
|
|
79
|
-
"@hiddenability/opinionated-defaults-linux-arm64": "^0.1.
|
|
80
|
-
"@hiddenability/opinionated-defaults-linux-x64": "^0.1.
|
|
81
|
-
"@hiddenability/opinionated-defaults-win-arm64": "^0.1.
|
|
82
|
-
"@hiddenability/opinionated-defaults-win-x64": "^0.1.
|
|
79
|
+
"@hiddenability/opinionated-defaults-darwin-arm64": "^0.1.34",
|
|
80
|
+
"@hiddenability/opinionated-defaults-darwin-x64": "^0.1.34",
|
|
81
|
+
"@hiddenability/opinionated-defaults-linux-arm64": "^0.1.34",
|
|
82
|
+
"@hiddenability/opinionated-defaults-linux-x64": "^0.1.34",
|
|
83
|
+
"@hiddenability/opinionated-defaults-win-arm64": "^0.1.34",
|
|
84
|
+
"@hiddenability/opinionated-defaults-win-x64": "^0.1.34"
|
|
83
85
|
}
|
|
84
86
|
}
|