@hiddenability/opinionated-defaults 0.1.40 → 0.1.42
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.
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { ConfigArray } from "typescript-eslint";
|
|
2
|
-
declare const
|
|
3
|
-
export default
|
|
2
|
+
declare const eslintConfigDefaultProject: (files: string[]) => ConfigArray;
|
|
3
|
+
export default eslintConfigDefaultProject;
|
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 l from"eslint-plugin-unicorn";import r from"globals";import c from"typescript-eslint";var g=[{ignores:["**/dist/","**/node_modules/","**/.git/"]},{files:["**/*.ts","**/*.js","**/*.mjs","**/*.mts","**/*.tsx","**/*.jsx"]},...c.configs.recommendedTypeChecked,a.configs.recommended,l.configs.recommended,{languageOptions:{globals:{...r.nodeBuiltin,...r.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=g;var y=(t)=>t;var d=(t)=>t.length===0?[]:[{languageOptions:{parserOptions:{projectService:{allowDefaultProject:t}}}}],C=d;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"]}}],A=x;import e from"@next/eslint-plugin-next";var R=[{ignores:["**/next-env.d.ts"]},{plugins:{"@next/next":e},rules:{...e.configs.recommended.rules,...e.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"}}],P=L;import n from"eslint-plugin-react";import S from"eslint-plugin-react-hooks";import{defineConfig as T}from"eslint/config";var H=T([n.configs.flat.recommended,n.configs.flat["jsx-runtime"],S.configs.flat["recommended-latest"],{settings:{react:{version:"detect"}}}]),J=H;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,J as eslintConfigReact,P 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.42",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -13,10 +13,8 @@
|
|
|
13
13
|
"test-cli": "bun dist/cli/index.mjs",
|
|
14
14
|
"build": "bun ./scripts/build.ts && bun test",
|
|
15
15
|
"prepack": "bun ./scripts/build.ts && bun test",
|
|
16
|
-
"lint": "
|
|
17
|
-
"lint:fix": "
|
|
18
|
-
"format": "prettier . -c",
|
|
19
|
-
"format:fix": "prettier . -w"
|
|
16
|
+
"lint": "eslint",
|
|
17
|
+
"lint:fix": "eslint --fix"
|
|
20
18
|
},
|
|
21
19
|
"exports": {
|
|
22
20
|
"./eslint": {
|
|
@@ -61,13 +59,12 @@
|
|
|
61
59
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
62
60
|
"eslint-plugin-solid": "^0.14.5",
|
|
63
61
|
"eslint-plugin-turbo": "^2.7.2",
|
|
64
|
-
"oxlint": "^1.35.0",
|
|
65
62
|
"prettier": "^3.7.4",
|
|
66
63
|
"prettier-plugin-astro": "^0.14.1",
|
|
67
64
|
"typescript-eslint": "^8.50.1"
|
|
68
65
|
},
|
|
69
66
|
"devDependencies": {
|
|
70
|
-
"@hiddenability/opinionated-defaults": "
|
|
67
|
+
"@hiddenability/opinionated-defaults": "^0.1.40",
|
|
71
68
|
"@types/bun": "^1.3.5",
|
|
72
69
|
"@types/lodash": "^4.17.21",
|
|
73
70
|
"@types/node": "^25.0.3",
|