From 27c64dab99860a07e6d6fa2c76a04d9a019dbdd1 Mon Sep 17 00:00:00 2001 From: Peter Date: Wed, 18 Aug 2021 09:23:00 -0300 Subject: [PATCH] setup prettier, .editorconfig & eslint plug-ins --- .editorconfig | 12 ++++++++++++ .eslintrc | 8 +++++++- .prettierrc | 4 ++++ 3 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 .editorconfig create mode 100644 .prettierrc diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..5d47c21 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,12 @@ +# EditorConfig is awesome: https://EditorConfig.org + +# top-most EditorConfig file +root = true + +[*] +indent_style = space +indent_size = 2 +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true diff --git a/.eslintrc b/.eslintrc index 97a2bb8..d2919ab 100644 --- a/.eslintrc +++ b/.eslintrc @@ -1,3 +1,9 @@ { - "extends": ["next", "next/core-web-vitals"] + "extends": [ + "next", + "next/core-web-vitals", + "plugin:jsx-a11y/recommended", + "prettier" + ], + "plugins": ["jsx-a11y"] } diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..949efd0 --- /dev/null +++ b/.prettierrc @@ -0,0 +1,4 @@ +{ + "arrowParens": "avoid", + "bracketSpacing": true +}