Skip to content

Commit 61663bc

Browse files
committed
Update linting and formatting configurations
1 parent 36f9fbd commit 61663bc

File tree

5 files changed

+204
-1
lines changed

5 files changed

+204
-1
lines changed

.eslintrc.cjs

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
module.exports = {
2+
parser: '@typescript-eslint/parser',
3+
parserOptions: {
4+
project: './tsconfig.json',
5+
sourceType: 'module',
6+
tsconfigRootDir: __dirname,
7+
},
8+
plugins: ['@typescript-eslint', 'prettier'],
9+
extends: ['plugin:@typescript-eslint/recommended', 'plugin:prettier/recommended'],
10+
root: true,
11+
env: {
12+
node: true,
13+
jest: true,
14+
},
15+
rules: {
16+
'prettier/prettier': ['error', { semi: false, singleQuote: true }],
17+
'@typescript-eslint/interface-name-prefix': 'off',
18+
'@typescript-eslint/explicit-function-return-type': 'off',
19+
'@typescript-eslint/explicit-module-boundary-types': 'off',
20+
'@typescript-eslint/no-explicit-any': 'off',
21+
'@typescript-eslint/no-non-null-assertion': 'off',
22+
'@typescript-eslint/no-empty-interface': 'off',
23+
'@typescript-eslint/no-unused-vars': ['error', { ignoreRestSiblings: true }],
24+
},
25+
}

.lintstagedrc.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
export default {
2-
'*.{md,yml,json,js,ts,jsx,tsx,mjs,mts}': 'pnpm -r lint',
2+
'*.{md,yml,json,js,ts,jsx,tsx,mjs,mts}': 'prettier -w .',
33
}

apps/server/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@
114114
"jest-mock-extended": "^3.0.5",
115115
"nodemon": "^2.0.22",
116116
"prettier": "3.0.2",
117+
"prettier-eslint": "^16.3.0",
117118
"ts-jest": "^29.1.1",
118119
"ts-jest-mock-import-meta": "^1.0.0",
119120
"ts-node": "^10.9.1",

apps/web/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@
9797
"husky": "^8.0.0",
9898
"husky-init": "^8.0.0",
9999
"prettier": "^2.8.8",
100+
"prettier-eslint": "^16.3.0",
100101
"typescript": "^5.3.3",
101102
"typescript-plugin-css-modules": "^5.0.1"
102103
}

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)