-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: change indent from tabs to spaces
- Loading branch information
Showing
3 changed files
with
21 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"editor.detectIndentation": false, | ||
"editor.insertSpaces": true, | ||
"editor.tabSize": 4 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,21 @@ | ||
/** @type {import('prettier').Config & import('prettier-plugin-tailwindcss').PluginOptions} */ | ||
const config = { | ||
/* Base config */ | ||
plugins: ['prettier-plugin-organize-imports', 'prettier-plugin-tailwindcss'], | ||
/* Base config */ | ||
plugins: ['prettier-plugin-organize-imports', 'prettier-plugin-tailwindcss'], | ||
|
||
/* Formatting rules */ | ||
tabWidth: 4, // Specify the number of spaces per indentation-level. | ||
useTabs: true, // Indent lines with tabs instead of spaces | ||
semi: true, // Print semicolons at the ends of statements. | ||
singleQuote: true, // Use single quotes instead of double quotes. | ||
jsxSingleQuote: true, // Use single quotes in JSX. | ||
trailingComma: 'none', // Print trailing commas wherever possible. | ||
bracketSpacing: true, // Print spaces between brackets in object literals. | ||
bracketSameLine: true, // Put the `>` of a multi-line JSX element at the end of the last line instead of being alone on the next line. | ||
printWidth: 120, // Specify the line length that the printer will wrap on. | ||
/* Formatting rules */ | ||
tabWidth: 4, // Specify the number of spaces per indentation-level. | ||
semi: true, // Print semicolons at the ends of statements. | ||
singleQuote: true, // Use single quotes instead of double quotes. | ||
jsxSingleQuote: true, // Use single quotes in JSX. | ||
trailingComma: 'none', // Print trailing commas wherever possible. | ||
bracketSpacing: true, // Print spaces between brackets in object literals. | ||
bracketSameLine: true, // Put the `>` of a multi-line JSX element at the end of the last line instead of being alone on the next line. | ||
printWidth: 120, // Specify the line length that the printer will wrap on. | ||
|
||
/* Config for prettier-plugin-tailwindcss */ | ||
tailwindConfig: './tailwind.config.ts', // Path to the Tailwind config file. | ||
tailwindFunctions: ['cn', 'cva'] // List of custom function and tag names that contain classes. | ||
/* Config for prettier-plugin-tailwindcss */ | ||
tailwindConfig: './tailwind.config.ts', // Path to the Tailwind config file. | ||
tailwindFunctions: ['cn', 'cva'] // List of custom function and tag names that contain classes. | ||
}; | ||
|
||
export default config; |