Skip to content

Commit

Permalink
feat: unify prettier config and some eslint rules
Browse files Browse the repository at this point in the history
  • Loading branch information
swh00tw committed Feb 29, 2024
1 parent 6c2db87 commit a9e8a69
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 8 deletions.
3 changes: 2 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules
node_modules
.next
6 changes: 6 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
"root": true,
"ignorePatterns": ["**/*"],
"plugins": ["@nx"],
"extends": [
"plugin:prettier/recommended",
"prettier",
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
Expand Down
File renamed without changes.
8 changes: 2 additions & 6 deletions apps/recnet/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
{
"extends": [
"../../.eslintrc.json",
"plugin:@nx/react-typescript",
"next",
"next/core-web-vitals",
"../../.eslintrc.json",
"plugin:prettier/recommended",
"prettier",
"plugin:react-hooks/recommended",
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended"
"plugin:react/recommended"
],
"ignorePatterns": [
"!**/*",
Expand Down
2 changes: 1 addition & 1 deletion apps/recnet/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@
".next/types/**/*.ts",
"tailwind.config.js",
],
"exclude": ["node_modules"],
"exclude": ["node_modules", ".next"],
}

0 comments on commit a9e8a69

Please sign in to comment.