Skip to content
Snippets Groups Projects
Commit fbe00361 authored by Thibaut DE SAIVRE's avatar Thibaut DE SAIVRE
Browse files

add prettier config

parent fd7e67db
No related branches found
No related tags found
No related merge requests found
// Use CommonJS to enable extending this config, and using comments
module.exports = {
singleQuote: true, // Prefer ' to "
semi: true, // Always terminate lines with semicolons
tabWidth: 2, // Use 2 spaces for indentation
quoteProps: 'consistent',
bracketSpacing: true, // {*bracketSpacing*}
arrowParens: 'always', // (always perentheses around arrow args) => {}
printWidth: 100, // Max 100 characters per line
trailingComma: 'es5', // Use trailing commas where valid in ES5 (objects, arrays, etc.)
};
import { func } from "./lib";
import { func } from './lib';
func("This is a message");
func('This is a message');
......@@ -2,3 +2,6 @@
export const func = (message: string) => {
console.log(message);
};
// TODO : normalement ici on aura des erreurs
const test = (arg: any) => {};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment