Skip to content

Commit

Permalink
*: add prettier and config eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
carince committed Aug 26, 2023
1 parent e98361e commit 0b6a601
Show file tree
Hide file tree
Showing 18 changed files with 835 additions and 42 deletions.
27 changes: 26 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,28 @@
{
"extends": "next/core-web-vitals"
"env": {
"browser": true,
"es2021": true,
"node": true
},
"extends": [
"next/core-web-vitals",
"standard-with-typescript",
"plugin:react/recommended",
"plugin:prettier/recommended"
],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"project": ["./tsconfig.json"]
},
"plugins": ["react"],
"rules": {
"prettier/prettier": [
"error",
{
"endOfLine": "auto"
}
],
"react/react-in-jsx-scope": "off"
}
}
4 changes: 4 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"tabWidth": 4,
"useTabs": false
}
Loading

0 comments on commit 0b6a601

Please sign in to comment.