Skip to content
This repository has been archived by the owner on Jan 7, 2025. It is now read-only.

chore: setting prettier and update eslint default config #322

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
node_modules
**/node_modules/*
**/out/*
**/.next/*
__generated__
50 changes: 47 additions & 3 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,49 @@
{
"extends": [
"next"
]
"env": {
"browser": true,
"es2021": true
},
"parser": "@typescript-eslint/parser",
"extends": ["next", "plugin:react/recommended", "eslint:recommended"],
"plugins": ["react", "@typescript-eslint", "prettier"],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": "latest",
"sourceType": "module"
},
"rules": {
"prettier/prettier": "error",
"indent": ["error", 2],
"quotes": ["error", "single"],
"no-trailing-spaces": "error",
"react/prop-types": "off",
"react/react-in-jsx-scope": "off",
"react/jsx-filename-extension": "off",
"import/prefer-default-export": "off",
"no-unused-vars": "warn",
"jsx-a11y/label-has-associated-control": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/no-noninteractive-element-interactions": "off",
"jsx-a11y/anchor-is-valid": "off",
"react/function-component-definition": [
"error",
{
"namedComponents": "arrow-function",
"unnamedComponents": "arrow-function"
}
],
"max-len": 0,
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
}
]
}
}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# VS Code
.vscode

# dependencies
/node_modules
/.pnp
Expand Down
Loading