@zayne-labs/eslint-config 0.6.2 → 0.6.4
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/index.d.ts +408 -224
- package/dist/index.js +3 -9
- package/dist/index.js.map +1 -1
- package/package.json +35 -38
- package/dist/prettier/index.d.ts +0 -37
- package/dist/prettier/index.js +0 -22
- package/dist/prettier/index.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zayne-labs/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.6.
|
|
4
|
+
"version": "0.6.4",
|
|
5
5
|
"description": "Zayne Labs' ESLint config preset",
|
|
6
6
|
"author": "Ryan Zayne",
|
|
7
7
|
"license": "MIT",
|
|
8
|
-
"homepage": "https://github.com/zayne-labs/eslint-config#readme",
|
|
8
|
+
"homepage": "https://github.com/zayne-labs/config/tree/main/packages/eslint-config#readme",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
|
-
"url": "https://github.com/zayne-labs/
|
|
11
|
+
"url": "https://github.com/zayne-labs/config.git"
|
|
12
12
|
},
|
|
13
13
|
"bugs": {
|
|
14
14
|
"url": "https://github.com/zayne-labs/eslint-config/issues"
|
|
@@ -16,8 +16,7 @@
|
|
|
16
16
|
"keywords": [],
|
|
17
17
|
"sideEffects": false,
|
|
18
18
|
"exports": {
|
|
19
|
-
".": "./dist/index.js"
|
|
20
|
-
"./prettier": "./dist/prettier/index.js"
|
|
19
|
+
".": "./dist/index.js"
|
|
21
20
|
},
|
|
22
21
|
"main": "dist/index.js",
|
|
23
22
|
"module": "dist/index.js",
|
|
@@ -90,19 +89,19 @@
|
|
|
90
89
|
"@clack/prompts": "0.10.0",
|
|
91
90
|
"@eslint-community/eslint-plugin-eslint-comments": "4.4.1",
|
|
92
91
|
"@eslint/compat": "1.2.7",
|
|
93
|
-
"@eslint/js": "9.
|
|
94
|
-
"@stylistic/eslint-plugin": "4.
|
|
95
|
-
"@typescript-eslint/parser": "^8.
|
|
96
|
-
"@zayne-labs/toolkit-type-helpers": "^0.8.
|
|
92
|
+
"@eslint/js": "9.22.0",
|
|
93
|
+
"@stylistic/eslint-plugin": "4.2.0",
|
|
94
|
+
"@typescript-eslint/parser": "^8.26.1",
|
|
95
|
+
"@zayne-labs/toolkit-type-helpers": "^0.8.48",
|
|
97
96
|
"eslint-config-flat-gitignore": "2.1.0",
|
|
98
97
|
"eslint-flat-config-utils": "2.0.1",
|
|
99
|
-
"eslint-import-resolver-typescript": "
|
|
98
|
+
"eslint-import-resolver-typescript": "4.1.1",
|
|
100
99
|
"eslint-merge-processors": "^2.0.0",
|
|
101
|
-
"eslint-plugin-import-x": "4.
|
|
102
|
-
"eslint-plugin-jsdoc": "50.6.
|
|
100
|
+
"eslint-plugin-import-x": "4.8.0",
|
|
101
|
+
"eslint-plugin-jsdoc": "50.6.7",
|
|
103
102
|
"eslint-plugin-jsonc": "2.19.1",
|
|
104
|
-
"eslint-plugin-n": "17.
|
|
105
|
-
"eslint-plugin-perfectionist": "4.
|
|
103
|
+
"eslint-plugin-n": "17.16.2",
|
|
104
|
+
"eslint-plugin-perfectionist": "4.10.1",
|
|
106
105
|
"eslint-plugin-security": "3.0.1",
|
|
107
106
|
"eslint-plugin-solid": "^0.14.3",
|
|
108
107
|
"eslint-plugin-toml": "^0.12.0",
|
|
@@ -110,52 +109,52 @@
|
|
|
110
109
|
"eslint-plugin-yml": "^1.17.0",
|
|
111
110
|
"globals": "16.0.0",
|
|
112
111
|
"jsonc-eslint-parser": "2.4.0",
|
|
113
|
-
"local-pkg": "1.1.
|
|
112
|
+
"local-pkg": "1.1.1",
|
|
114
113
|
"toml-eslint-parser": "0.10.0",
|
|
115
|
-
"typescript-eslint": "8.
|
|
114
|
+
"typescript-eslint": "8.26.1",
|
|
116
115
|
"yaml-eslint-parser": "1.3.0"
|
|
117
116
|
},
|
|
118
117
|
"devDependencies": {
|
|
119
118
|
"@arethetypeswrong/cli": "0.17.4",
|
|
120
119
|
"@changesets/cli": "2.28.1",
|
|
121
|
-
"@commitlint/cli": "19.
|
|
122
|
-
"@commitlint/config-conventional": "19.
|
|
123
|
-
"@eslint-react/eslint-plugin": "1.
|
|
124
|
-
"@next/eslint-plugin-next": "15.2.
|
|
120
|
+
"@commitlint/cli": "19.8.0",
|
|
121
|
+
"@commitlint/config-conventional": "19.8.0",
|
|
122
|
+
"@eslint-react/eslint-plugin": "1.34.1",
|
|
123
|
+
"@next/eslint-plugin-next": "15.2.2",
|
|
125
124
|
"@size-limit/esbuild-why": "11.2.0",
|
|
126
125
|
"@size-limit/preset-small-lib": "11.2.0",
|
|
127
|
-
"@tanstack/eslint-plugin-query": "5.
|
|
126
|
+
"@tanstack/eslint-plugin-query": "5.68.0",
|
|
128
127
|
"@total-typescript/ts-reset": "0.6.1",
|
|
129
128
|
"@types/eslint-plugin-security": "3.0.0",
|
|
130
129
|
"@types/eslint-plugin-tailwindcss": "3.17.0",
|
|
131
|
-
"@types/node": "22.13.
|
|
130
|
+
"@types/node": "22.13.10",
|
|
132
131
|
"@zayne-labs/eslint-config": "link:",
|
|
133
|
-
"@zayne-labs/tsconfig": "0.2.
|
|
132
|
+
"@zayne-labs/tsconfig": "0.2.3",
|
|
134
133
|
"concurrently": "9.1.2",
|
|
135
134
|
"cross-env": "7.0.3",
|
|
136
|
-
"eslint": "9.
|
|
135
|
+
"eslint": "9.22.0",
|
|
137
136
|
"eslint-plugin-astro": "1.3.1",
|
|
138
137
|
"eslint-plugin-react-compiler": "19.0.0-beta-e1e972c-20250221",
|
|
139
138
|
"eslint-plugin-react-hooks": "5.2.0",
|
|
140
139
|
"eslint-plugin-react-refresh": "0.4.19",
|
|
141
140
|
"eslint-plugin-solid": "0.14.5",
|
|
142
|
-
"eslint-plugin-svelte": "3.
|
|
141
|
+
"eslint-plugin-svelte": "3.2.1",
|
|
143
142
|
"eslint-plugin-tailwindcss": "3.18.0",
|
|
144
|
-
"eslint-plugin-vue": "
|
|
143
|
+
"eslint-plugin-vue": "10.0.0",
|
|
145
144
|
"eslint-processor-vue-blocks": "2.0.0",
|
|
146
|
-
"eslint-typegen": "2.
|
|
145
|
+
"eslint-typegen": "2.1.0",
|
|
147
146
|
"husky": "9.1.7",
|
|
148
|
-
"lint-staged": "15.
|
|
149
|
-
"pkg-pr-new": "0.0.
|
|
150
|
-
"prettier": "3.5.
|
|
151
|
-
"publint": "0.3.
|
|
147
|
+
"lint-staged": "15.5.0",
|
|
148
|
+
"pkg-pr-new": "0.0.41",
|
|
149
|
+
"prettier": "3.5.3",
|
|
150
|
+
"publint": "0.3.9",
|
|
152
151
|
"size-limit": "11.2.0",
|
|
153
152
|
"tailwindcss": "3.4.17",
|
|
154
153
|
"tsup": "8.4.0",
|
|
155
154
|
"tsx": "4.19.3",
|
|
156
155
|
"typescript": "5.8.2",
|
|
157
156
|
"vue": "^3.5.13",
|
|
158
|
-
"vue-eslint-parser": "
|
|
157
|
+
"vue-eslint-parser": "10.1.1"
|
|
159
158
|
},
|
|
160
159
|
"publishConfig": {
|
|
161
160
|
"access": "public",
|
|
@@ -166,17 +165,15 @@
|
|
|
166
165
|
"build": "pnpm typegen && tsup",
|
|
167
166
|
"build:dev": "pnpm typegen && cross-env NODE_ENV=development tsup",
|
|
168
167
|
"build:test-bundle": "pnpm typegen & concurrently --prefix-colors \"yellow.bold,#7da4f8.bold,magenta\" --names PUBLINT,TSUP,ATTW 'pnpm:lint:publint' 'pnpm:build:dev' 'pnpm:lint:attw'",
|
|
169
|
-
"inspect:eslint-config": "pnpx @eslint/config-inspector@latest --config eslint.config.js",
|
|
170
168
|
"lint:attw": "attw --pack . --ignore-rules=cjs-resolves-to-esm",
|
|
171
|
-
"lint:check-types": "pnpm typegen && tsc --pretty -p tsconfig.json",
|
|
172
169
|
"lint:commitlint": "commitlint --edit",
|
|
173
|
-
"lint:eslint": "eslint . --max-warnings 0 --report-unused-disable-directives",
|
|
174
|
-
"lint:eslint:interactive": "pnpx eslint-interactive@latest . --fix --max-warnings 0 --report-unused-disable-directives",
|
|
175
170
|
"lint:format": "prettier --cache --write .",
|
|
176
171
|
"lint:packages": "pnpm dedupe --check",
|
|
177
172
|
"lint:publint": "publint --strict .",
|
|
178
|
-
"
|
|
179
|
-
"release
|
|
173
|
+
"lint:type-check": "pnpm typegen && tsc --pretty -p tsconfig.json",
|
|
174
|
+
"release": "pnpm publish --no-git-checks",
|
|
175
|
+
"release:old": "changeset publish",
|
|
176
|
+
"release:test": "pnpx pkg-pr-new publish",
|
|
180
177
|
"typegen": "tsx scripts/typegen.ts",
|
|
181
178
|
"version-package": "changeset version"
|
|
182
179
|
}
|
package/dist/prettier/index.d.ts
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { AnyString } from '@zayne-labs/toolkit-type-helpers';
|
|
2
|
-
import { Config } from 'prettier';
|
|
3
|
-
|
|
4
|
-
declare const baseConfig: {
|
|
5
|
-
experimentalOperatorPosition: "start";
|
|
6
|
-
jsxSingleQuote: false;
|
|
7
|
-
printWidth: number;
|
|
8
|
-
singleQuote: false;
|
|
9
|
-
tabWidth: number;
|
|
10
|
-
trailingComma: "es5";
|
|
11
|
-
useTabs: true;
|
|
12
|
-
};
|
|
13
|
-
type ConfigWithTailwind = Omit<Config, "plugins"> & {
|
|
14
|
-
plugins?: Array<"prettier-plugin-tailwindcss" | "prettier-plugin-classnames" | "prettier-plugin-merge" | AnyString>;
|
|
15
|
-
tailwindAttributes?: string[];
|
|
16
|
-
tailwindConfig?: `./${string}`;
|
|
17
|
-
tailwindFunctions?: string[];
|
|
18
|
-
tailwindPreserveDuplicates?: boolean;
|
|
19
|
-
tailwindPreserveWhitespace?: boolean;
|
|
20
|
-
tailwindStylesheet?: `./${string}`;
|
|
21
|
-
};
|
|
22
|
-
declare const configWithTailwind: {
|
|
23
|
-
endingPosition: string;
|
|
24
|
-
plugins: ("prettier-plugin-tailwindcss" | "prettier-plugin-classnames" | "prettier-plugin-merge")[];
|
|
25
|
-
tailwindAttributes: string[];
|
|
26
|
-
tailwindFunctions: string[];
|
|
27
|
-
tailwindStylesheet: "./tailwind.css";
|
|
28
|
-
experimentalOperatorPosition: "start";
|
|
29
|
-
jsxSingleQuote: false;
|
|
30
|
-
printWidth: number;
|
|
31
|
-
singleQuote: false;
|
|
32
|
-
tabWidth: number;
|
|
33
|
-
trailingComma: "es5";
|
|
34
|
-
useTabs: true;
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
export { type ConfigWithTailwind, baseConfig, configWithTailwind };
|
package/dist/prettier/index.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
// src/prettier/configs.ts
|
|
2
|
-
var baseConfig = {
|
|
3
|
-
experimentalOperatorPosition: "start",
|
|
4
|
-
jsxSingleQuote: false,
|
|
5
|
-
printWidth: 107,
|
|
6
|
-
singleQuote: false,
|
|
7
|
-
tabWidth: 3,
|
|
8
|
-
trailingComma: "es5",
|
|
9
|
-
useTabs: true
|
|
10
|
-
};
|
|
11
|
-
var configWithTailwind = {
|
|
12
|
-
...baseConfig,
|
|
13
|
-
endingPosition: "absolute-with-indent",
|
|
14
|
-
plugins: ["prettier-plugin-tailwindcss", "prettier-plugin-classnames", "prettier-plugin-merge"],
|
|
15
|
-
tailwindAttributes: ["classNames", "classes"],
|
|
16
|
-
tailwindFunctions: ["cnMerge", "cnJoin", "cn", "tv"],
|
|
17
|
-
tailwindStylesheet: "./tailwind.css"
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
export { baseConfig, configWithTailwind };
|
|
21
|
-
//# sourceMappingURL=index.js.map
|
|
22
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/prettier/configs.ts"],"names":[],"mappings":";AAGO,IAAM,UAAa,GAAA;AAAA,EACzB,4BAA8B,EAAA,OAAA;AAAA,EAC9B,cAAgB,EAAA,KAAA;AAAA,EAChB,UAAY,EAAA,GAAA;AAAA,EACZ,WAAa,EAAA,KAAA;AAAA,EACb,QAAU,EAAA,CAAA;AAAA,EACV,aAAe,EAAA,KAAA;AAAA,EACf,OAAS,EAAA;AACV;AAeO,IAAM,kBAAqB,GAAA;AAAA,EACjC,GAAG,UAAA;AAAA,EACH,cAAgB,EAAA,sBAAA;AAAA,EAChB,OAAS,EAAA,CAAC,6BAA+B,EAAA,4BAAA,EAA8B,uBAAuB,CAAA;AAAA,EAC9F,kBAAA,EAAoB,CAAC,YAAA,EAAc,SAAS,CAAA;AAAA,EAC5C,iBAAmB,EAAA,CAAC,SAAW,EAAA,QAAA,EAAU,MAAM,IAAI,CAAA;AAAA,EACnD,kBAAoB,EAAA;AACrB","file":"index.js","sourcesContent":["import type { AnyString } from \"@zayne-labs/toolkit-type-helpers\";\nimport type { Config } from \"prettier\";\n\nexport const baseConfig = {\n\texperimentalOperatorPosition: \"start\",\n\tjsxSingleQuote: false,\n\tprintWidth: 107,\n\tsingleQuote: false,\n\ttabWidth: 3,\n\ttrailingComma: \"es5\",\n\tuseTabs: true,\n} satisfies Config;\n\nexport type ConfigWithTailwind = Omit<Config, \"plugins\"> & {\n\tplugins?: Array<\n\t\t// eslint-disable-next-line perfectionist/sort-union-types -- prettier-plugin-tailwindcss should come before prettier-plugin-classnames\n\t\t\"prettier-plugin-tailwindcss\" | \"prettier-plugin-classnames\" | \"prettier-plugin-merge\" | AnyString\n\t>;\n\ttailwindAttributes?: string[];\n\ttailwindConfig?: `./${string}`;\n\ttailwindFunctions?: string[];\n\ttailwindPreserveDuplicates?: boolean;\n\ttailwindPreserveWhitespace?: boolean;\n\ttailwindStylesheet?: `./${string}`;\n};\n\nexport const configWithTailwind = {\n\t...baseConfig,\n\tendingPosition: \"absolute-with-indent\",\n\tplugins: [\"prettier-plugin-tailwindcss\", \"prettier-plugin-classnames\", \"prettier-plugin-merge\"],\n\ttailwindAttributes: [\"classNames\", \"classes\"],\n\ttailwindFunctions: [\"cnMerge\", \"cnJoin\", \"cn\", \"tv\"],\n\ttailwindStylesheet: \"./tailwind.css\",\n} satisfies ConfigWithTailwind;\n"]}
|