Skip to content

Commit

Permalink
ci: change indent from tabs to spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
niebag committed Apr 23, 2024
1 parent 42a344d commit d1d44be
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 15 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ yarn-error.log*
# typescript
*.tsbuildinfo
next-env.d.ts

# playwright
/test-results/
/playwright-report/
/blob-report/
Expand Down
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"editor.detectIndentation": false,
"editor.insertSpaces": true,
"editor.tabSize": 4
}
29 changes: 14 additions & 15 deletions prettier.config.js
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;

0 comments on commit d1d44be

Please sign in to comment.