Skip to content

Commit 6daa2f9

Browse files
committed
refactor: apply to lint
1 parent da28f3e commit 6daa2f9

File tree

4 files changed

+12
-8
lines changed

4 files changed

+12
-8
lines changed

.prettierrc

Lines changed: 0 additions & 7 deletions
This file was deleted.

apps/web/.eslintrc.cjs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,19 @@
11
module.exports = {
22
parser: '@typescript-eslint/parser',
3+
parserOptions: {
4+
project: './tsconfig.json',
5+
sourceType: 'module',
6+
tsconfigRootDir: __dirname,
7+
},
8+
plugins: ['@typescript-eslint', 'prettier'],
39
extends: [
410
'next/core-web-vitals',
511
'plugin:@typescript-eslint/eslint-recommended',
612
'plugin:@typescript-eslint/recommended',
13+
'plugin:prettier/recommended',
714
],
815
rules: {
16+
'prettier/prettier': ['error', { semi: false, singleQuote: true }],
917
'@typescript-eslint/ban-types': 'off',
1018
'@typescript-eslint/no-explicit-any': 'off',
1119
'@typescript-eslint/no-unused-vars': 'warn',

apps/web/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@
9292
"encoding": "^0.1.13",
9393
"eslint": "8.43.0",
9494
"eslint-config-next": "^13.4.19",
95+
"eslint-config-prettier": "^9.0.0",
96+
"eslint-plugin-prettier": "^5.0.0",
9597
"husky": "^8.0.0",
9698
"husky-init": "^8.0.0",
9799
"prettier": "^2.8.8",

apps/web/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@
3333
"**/*.tsx",
3434
".next/types/**/*.ts",
3535
"public/*",
36-
"src/assets/**/svg"
36+
"src/assets/**/svg",
37+
"scripts/*"
3738
],
3839
"exclude": ["node_modules"]
3940
}

0 commit comments

Comments
 (0)