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