Skip to content

Commit

Permalink
- prettier now preserves line endings
Browse files Browse the repository at this point in the history
- format
  • Loading branch information
Tommypop2 committed Apr 10, 2024
1 parent f77a2c9 commit b1f69dd
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@
"tabWidth": 2,
"trailingComma": "all",
"useTabs": true,
"quoteProps": "consistent"
"quoteProps": "consistent",
"endOfLine": "auto"
}
1 change: 1 addition & 0 deletions docs/vitepress_docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ npm install @solid-cli/core
```

Or installed globally:

### UNIX/MacOS/Linux

In order to install global packages on Unix based systems you will need to grant npm special system permissions using the `sudo` command, suffixed by the command you would like to run.
Expand Down
4 changes: 2 additions & 2 deletions packages/commands/src/lib/utils/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ export async function findFiles(
const fileMatch = Array.isArray(lookingFor)
? lookingFor.some((s) => (startsWith ? file.name.startsWith(s) : file.name.endsWith(s)))
: startsWith
? file.name.startsWith(lookingFor)
: file.name.endsWith(lookingFor);
? file.name.startsWith(lookingFor)
: file.name.endsWith(lookingFor);

if (fileMatch) {
filePaths.push(resolve(startPath, file.name));
Expand Down
13 changes: 11 additions & 2 deletions packages/create-solid/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,17 @@ const app = command({
name: "create-solid",
description: "Create a new Solid project",
args: {
projectNamePositional: positional({type: optional(string), displayName: "Project Name", description: "The name of the project to be generated"}),
projectNameOption: option({ type: optional(string), long: "project-name", short: "p", description: "Name of your project" }),
projectNamePositional: positional({
type: optional(string),
displayName: "Project Name",
description: "The name of the project to be generated",
}),
projectNameOption: option({
type: optional(string),
long: "project-name",
short: "p",
description: "Name of your project",
}),
solidStart: flag({
type: optional(boolean),
long: "solid-start",
Expand Down
1 change: 0 additions & 1 deletion packages/ui/src/components/form/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,5 @@ export const form = async (fields: Field[]) => {
returns.push({ name: field.name, value: r });
}


return returns;
};

0 comments on commit b1f69dd

Please sign in to comment.