Skip to content

Commit

Permalink
TSDoc linter added
Browse files Browse the repository at this point in the history
  • Loading branch information
Adan committed Sep 3, 2023
1 parent ddd941c commit e2287a0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
module.exports = {
extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint"],
plugins: ["@typescript-eslint", "eslint-plugin-tsdoc"],
root: true,
env: {
browser: true,
node: true,
jest: true,
},
rules: {
'tsdoc/syntax': 'warn'
}
};
8 changes: 5 additions & 3 deletions node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,20 @@
"build-protobuf": "npm run compile-protobuf-files && npm run fix-protobuf-file",
"compile-protobuf-files": "cd src && pbjs -t static-module -o ProtobufMessage.js ../../babushka-core/src/protobuf/*.proto && pbts -o ProtobufMessage.d.ts ProtobufMessage.js",
"fix-protobuf-file": "replace 'this\\.encode\\(message, writer\\)\\.ldelim' 'this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim' src/ProtobufMessage.js",
"test": "jest --verbose --runInBand"
"test": "jest --verbose --runInBand",
"lint": "eslint -f unix \"src/**/*.{ts,tsx}\""
},
"devDependencies": {
"@babel/preset-env": "^7.20.2",
"@jest/globals": "^29.5.0",
"@types/jest": "^29.4.0",
"@types/redis-server": "^1.2.0",
"@types/uuid": "^9.0.1",
"@typescript-eslint/eslint-plugin": "^5.54.1",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.54.1",
"babel-jest": "^28.1.3",
"eslint": "^8.36.0",
"eslint": "^8.48.0",
"eslint-plugin-tsdoc": "^0.2.17",
"find-free-port": "^2.0.0",
"jest": "^28.1.3",
"protobufjs-cli": "^1.1.1",
Expand Down

0 comments on commit e2287a0

Please sign in to comment.