Skip to content
This repository was archived by the owner on Jun 28, 2025. It is now read-only.

Commit 161c3a7

Browse files
committed
chore(web): adjust prettier and eslint
1 parent 2c07920 commit 161c3a7

File tree

4 files changed

+107
-9
lines changed

4 files changed

+107
-9
lines changed

web/.eslintrc.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,14 @@
55
"tsconfigRootDir": "__dirname",
66
"sourceType": "module"
77
},
8-
"plugins": ["@typescript-eslint", "eslint-plugin-import-helpers"],
8+
"plugins": ["@typescript-eslint", "eslint-plugin-import-helpers", "prettier"],
99
"extends": ["next/core-web-vitals", "plugin:@typescript-eslint/recommended", "prettier"],
1010
"rules": {
11+
"prettier/prettier": "error",
1112
"@typescript-eslint/no-unused-vars": "error",
1213
"@typescript-eslint/no-explicit-any": "error",
1314
"react/no-unescaped-entities": "off",
14-
"no-console": "warn",
15+
"no-console": "error",
1516
"@typescript-eslint/ban-ts-comment": "off",
1617
"import-helpers/order-imports": [
1718
"error",

web/.prettierrc

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
{
2-
"semi": true,
3-
"singleQuote": true,
4-
"trailingComma": "all",
5-
"tabWidth": 4,
6-
"printWidth": 120,
7-
"useTabs": false
2+
"useTabs": true,
3+
"tabWidth": 2,
4+
"singleQuote": false,
5+
"printWidth": 160,
6+
"bracketSpacing": true,
7+
"arrowParens": "avoid",
8+
"trailingComma": "es5",
9+
"semi": true
810
}

web/package-lock.json

Lines changed: 93 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

web/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"dev": "next dev",
77
"build": "next build",
88
"start": "next start",
9-
"lint": "next lint"
9+
"lint": "next lint",
10+
"lint:fix": "next lint --fix"
1011
},
1112
"dependencies": {
1213
"@tabler/icons-react": "^2.45.0",
@@ -29,6 +30,7 @@
2930
"eslint-config-next": "13.5.6",
3031
"eslint-config-prettier": "^9.1.0",
3132
"eslint-plugin-import-helpers": "^1.3.1",
33+
"eslint-plugin-prettier": "^5.1.3",
3234
"postcss": "^8",
3335
"postcss-import": "^16.0.0",
3436
"sass": "^1.70.0",

0 commit comments

Comments
 (0)