Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d77240b

Browse files
committed
πŸ› fix: some small fixes
Signed-off-by: Pauline <[email protected]>
1 parent b8a5aa0 commit d77240b

File tree

14 files changed

+333
-533
lines changed

14 files changed

+333
-533
lines changed

β€Ž.editorconfigβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ indent_style = tab
1111
insert_final_newline = true
1212
trim_trailing_whitespace = false
1313

14-
[{.*,*.md,*.toml,*.yml,*.yaml}]
14+
[{.*,*.md,*.yml,*.yaml}]
1515
indent_style = space

β€Žpackage.jsonβ€Ž

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
"start": "pnpm --filter=./packages/* run start",
3232
"lint": "pnpm eslint --cache . --flag unstable_ts_config",
3333
"lint:fix": "pnpm lint --fix",
34-
"release": "pnpm bumpp -r",
3534
"dev": "pnpm stub"
3635
},
3736
"workspaces": {
@@ -41,9 +40,8 @@
4140
},
4241
"devDependencies": {
4342
"@flowr/eslint-config": "workspace:^",
44-
"@flowr/tsconfig": "workspace:^",
45-
"@types/node": "^22.7.2",
46-
"bumpp": "^9.5.2",
43+
"@flowr/typescript": "workspace:^",
44+
"@types/node": "^22.7.4",
4745
"esbuild": "^0.24.0",
4846
"eslint": "^9.11.1",
4947
"jiti": "^2.0.0",

β€Žpackages/eslint-config/package.jsonβ€Ž

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -139,17 +139,17 @@
139139
"@clack/prompts": "^0.7.0",
140140
"@eslint-community/eslint-plugin-eslint-comments": "^4.4.0",
141141
"@eslint/compat": "^1.1.1",
142-
"@eslint/markdown": "^6.1.0",
142+
"@eslint/markdown": "^6.1.1",
143143
"@stylistic/eslint-plugin": "^2.8.0",
144144
"@typescript-eslint/eslint-plugin": "^8.7.0",
145145
"@typescript-eslint/parser": "^8.7.0",
146146
"@vitest/eslint-plugin": "^1.1.4",
147147
"eslint-flat-config-utils": "^0.4.0",
148148
"eslint-import-resolver-typescript": "^3.6.3",
149149
"eslint-merge-processors": "^0.1.0",
150-
"eslint-plugin-command": "^0.2.5",
151-
"eslint-plugin-import-x": "^4.3.0",
152-
"eslint-plugin-jsdoc": "^50.2.5",
150+
"eslint-plugin-command": "^0.2.6",
151+
"eslint-plugin-import-x": "^4.3.1",
152+
"eslint-plugin-jsdoc": "^50.3.0",
153153
"eslint-plugin-jsonc": "^2.16.0",
154154
"eslint-plugin-n": "^17.10.3",
155155
"eslint-plugin-perfectionist": "^3.7.0",
@@ -167,14 +167,14 @@
167167
"yaml-eslint-parser": "^1.2.3"
168168
},
169169
"devDependencies": {
170-
"@eslint-react/eslint-plugin": "^1.14.2",
170+
"@eslint-react/eslint-plugin": "^1.14.3",
171171
"@eslint/config-inspector": "^0.5.4",
172172
"@prettier/plugin-xml": "^3.4.1",
173-
"@tanstack/eslint-plugin-query": "^5.57.2",
173+
"@tanstack/eslint-plugin-query": "^5.58.1",
174174
"@types/eslint-plugin-jsx-a11y": "^6.9.0",
175175
"@types/fs-extra": "^11.0.4",
176176
"@types/prompts": "^2.4.9",
177-
"@unocss/eslint-plugin": "^0.62.4",
177+
"@unocss/eslint-plugin": "^0.63.1",
178178
"astro-eslint-parser": "^1.0.3",
179179
"eslint": "^9.11.1",
180180
"eslint-plugin-astro": "^1.2.4",
@@ -183,7 +183,7 @@
183183
"eslint-plugin-jsx-a11y": "^6.10.0",
184184
"eslint-plugin-react-hooks": "next",
185185
"eslint-plugin-solid": "^0.14.3",
186-
"eslint-plugin-svelte": "^2.44.0",
186+
"eslint-plugin-svelte": "^2.44.1",
187187
"eslint-plugin-vue": "^9.28.0",
188188
"eslint-plugin-vuejs-accessibility": "^2.4.1",
189189
"eslint-processor-vue-blocks": "^0.1.2",
@@ -197,7 +197,7 @@
197197
"prettier-plugin-slidev": "^1.0.5",
198198
"svelte": "^4.2.19",
199199
"svelte-eslint-parser": "^0.41.1",
200-
"vue": "^3.5.8",
200+
"vue": "^3.5.10",
201201
"vue-eslint-parser": "^9.4.3"
202202
},
203203
"publishConfig": {

β€Žpackages/eslint-config/src/configs/formatters.tsβ€Ž

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -284,11 +284,5 @@ export async function formatters(options: OptionsFormatters | true = {}, stylist
284284
},
285285
});
286286

287-
if (options.prettierConfigs)
288-
options.prettierConfigs({
289-
defaultOptions: prettierOptions,
290-
defaultXmlOptions: prettierXmlOptions,
291-
}).forEach(i => configs.push(i));
292-
293287
return configs;
294288
}

β€Žpackages/eslint-config/src/factory.tsβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ type FactoryComposer = FlatConfigComposer<TypedFlatConfigItem, ConfigNames>;
7979
* Construct a Petal ESLint config.
8080
*
8181
* @param {FactoryOptions} options The options for generating the ESLint configurations.
82-
* @param {UserConfigs} userConfigs The user configurations to be merged with the generated configurations.
82+
* @param {UserConfig[]} userConfigs The user configurations to be merged with the generated configurations.
8383
* @returns {FactoryComposer} The merged ESLint configurations.
8484
* @public
8585
*/

β€Žpackages/eslint-config/src/types/configs/formatters.tsβ€Ž

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import type { TypedFlatConfigItem } from '..';
21
import type { VendoredPrettierOptions } from '../prettier';
32

43
export type VendoredPrettierXMLOptions = Pick<VendoredPrettierOptions, 'xmlQuoteAttributes' | 'xmlSelfClosingSpace' | 'xmlSortAttributesByKey' | 'xmlWhitespaceSensitivity'>;
@@ -80,13 +79,6 @@ export interface OptionsFormatters {
8079
*/
8180
prettierOptions?: import('../prettier').VendoredPrettierOptions;
8281

83-
/**
84-
* Custom filetype-specific configurations for Prettier.
85-
*
86-
* @default undefined
87-
*/
88-
prettierConfigs?: (options: PrettierConfigsOptions) => TypedFlatConfigItem[];
89-
9082
/**
9183
* Custom options for dprint.
9284
*
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ pnpm add -D @flowr/tsconfig
1414

1515
Try to optimize for the fewest specified options between the config specializations. For example, only `app` has `noEmit: true`, since the [default value], `false`, is good for the `lib` config. Specifying it only in the `app` config means fewer overall entries!
1616

17-
We want to keep maintenance low by only specifying what is necessary. If the option's [default value][compiler options] is good for every config, remove it from every config!
17+
We want to keep maintenance low by only specifying what is necessary. If the option's [default value] is good for every config, remove it from every config!
1818

1919
[default value]: https://www.typescriptlang.org/docs/handbook/compiler-options.html
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
2-
"name": "@flowr/tsconfig",
2+
"name": "@flowr/typescript",
33
"version": "4.4.0",
4-
"description": "Common TSConfigs in Petal standardized projects",
4+
"description": "Common TSConfigs and TypeScript in Petal standardized projects",
55
"author": "Petal Contributors",
66
"license": "(LicenseRef-OQL-1.2 OR MIT or Apache-2.0)",
77
"funding": "https://ko-fi.com/pauliesnug",
88
"homepage": "https://petal.dyn.gay",
99
"repository": {
1010
"type": "git",
1111
"url": "https://github.com/pulseflow/petal.git",
12-
"directory": "packages/tsconfig"
12+
"directory": "packages/typescript"
1313
},
1414
"bugs": "https://github.com/pulseflow/petal/issues",
1515
"keywords": [
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
"compilerOptions": {
99
"jsx": "preserve",
10-
"lib": ["ESNext", "DOM", "DOM.Iterable"],
10+
"lib": ["ES2020", "ESNext", "DOM", "DOM.Iterable"],
1111
"skipLibCheck": true
1212
}
1313
}

0 commit comments

Comments
Β (0)