Skip to content

Commit dd37457

Browse files
committed
add lint
Signed-off-by: seven <[email protected]>
1 parent 7f24a9f commit dd37457

File tree

5 files changed

+119
-17
lines changed

5 files changed

+119
-17
lines changed

.eslintrc.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
module.exports = {
2+
env: {
3+
node: true,
4+
es2021: true,
5+
},
6+
extends: [
7+
'eslint:recommended',
8+
'plugin:@typescript-eslint/recommended',
9+
'plugin:prettier/recommended',
10+
],
11+
parser: '@typescript-eslint/parser',
12+
parserOptions: {
13+
ecmaVersion: 'latest',
14+
sourceType: 'module',
15+
},
16+
plugins: ['@typescript-eslint', 'prettier'],
17+
rules: {
18+
'prettier/prettier': 'error',
19+
'@typescript-eslint/no-empty-object-type': 'error',
20+
'@typescript-eslint/no-unsafe-function-type': 'error',
21+
'@typescript-eslint/no-wrapper-object-types': 'error',
22+
},
23+
ignorePatterns: ['dist'],
24+
};

.npmignore

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
.eslintrc.js
2+
.prettierrc
3+
jest.config.js
4+
tsconfig.json
5+
Dockerfile
6+
7+
.idea/
8+
.github/
9+
.husky/
10+
coverage/
11+
src/
12+
tests/
13+
docs/
14+
artifacts/
15+
scripts/
16+
# Ignore all .d.ts files except index.d.ts
17+
*.d.ts
18+
!index.d.ts
19+
.DS_Store

.prettierrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"singleQuote": true,
3+
"printWidth": 100,
4+
"tabWidth": 2
5+
}

package-lock.json

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

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,19 +50,21 @@
5050
"pino-pretty": "^11.2.2"
5151
},
5252
"devDependencies": {
53+
"@eslint/js": "^9.12.0",
5354
"@types/jest": "^29.5.13",
5455
"@types/node": "^22.7.4",
5556
"@typescript-eslint/eslint-plugin": "^8.8.0",
5657
"@typescript-eslint/parser": "^8.8.0",
5758
"eslint": "^8.57.1",
5859
"eslint-config-prettier": "^9.1.0",
5960
"eslint-plugin-prettier": "^5.2.1",
60-
"globals": "^15.9.0",
61+
"globals": "^15.10.0",
6162
"husky": "^9.1.6",
6263
"jest": "^29.7.0",
6364
"prettier": "^3.3.3",
6465
"ts-jest": "^29.2.5",
6566
"ts-node": "^10.9.2",
66-
"typescript": "^5.6.2"
67+
"typescript": "^5.6.2",
68+
"typescript-eslint": "^8.8.0"
6769
}
6870
}

0 commit comments

Comments
 (0)