Skip to content
Snippets Groups Projects
Commit d2e589c6 authored by Dominique Barton's avatar Dominique Barton :unicorn:
Browse files

FEATURE: Add prettier

parent 035bf642
Branches
No related tags found
No related merge requests found
......@@ -41,6 +41,18 @@ test-pylint:
pylint $(SOURCE_DIR)
```
#### Prettier
```make
prettier:
curl -sSfLo .prettierrc.yml $(LINTER_CONFIGS)/prettierrc.yml
prettier $(SOURCE_DIR) --write
test-prettier:
curl -sSfLo .prettierrc.yml $(LINTER_CONFIGS)/prettierrc.yml
prettier $(SOURCE_DIR) --check
```
#### JavaScript
```make
......
......@@ -146,16 +146,6 @@ export default defineConfig([
'error',
{
after: true,
overrides: {
catch: { after: false },
do: { after: false },
if: { after: false },
for: { after: false },
with: { after: false },
while: { after: false },
super: { after: false },
switch: { after: false },
},
},
],
......
---
#
# White spaces.
#
# Use 4 spaces for tabs.
tabWidth: 4
useTabs: false
# Print spaces between brackets in object literals.
bracketSpacing: true
# Respect the default value of CSS display property.
htmlWhitespaceSensitivity: css
#
# Line breaks
#
# Line Feed only (\n).
endOfLine: lf
# Keep object literals as multi-line.
objectWrap: preserve
# Don't change wrapping in Markdown.
proseWrap: preserve
# Specify the line length that the printer will wrap on.
printWidth: 80
# Put the > of a multi-line HTML on a separate line.
bracketSameLine: false
# Don't enforce single attribute per line in HTML, Vue, and JSX.
singleAttributePerLine: false
#
# Quotes
#
# Use single quotes.
singleQuote: true
# If at least one property in an object requires quotes, quote all properties.
quoteProps: consistent
#
# Control characters
#
# Only add semicolons at the beginning of lines that may introduce ASI failures.
semi: false
# Add trailing commas wherever possible.
trailingComma: all
# Omit parens around a sole arrow function parameter.
arrowParens: avoid
#
# Other
#
# Format embedded code if Prettier can automatically identify it.
embeddedLanguageFormatting: auto
# Don't insert @format pragma.
insertPragma: false
# Don't require pragma.
requirePragma: false
#
# Overrides
#
overrides:
- files:
- '*.yml'
- '*.yaml'
options:
tabWidth: 2
- files:
- '*.html'
- '*.css'
options:
singleQuote: false
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment