Skip to content

Commit 3fbb770

Browse files
James TsaiJames Tsai
authored andcommitted
add operators and keywords spacing linter
1 parent 7a5949e commit 3fbb770

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

nodejs/.eslintrc.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@ module.exports = {
77
"plugin:@typescript-eslint/recommended"
88
],
99
"rules": {
10-
"no-trailing-spaces": [1, { "skipBlankLines": false }],
11-
"semi": [1, "never"],
12-
'@typescript-eslint/no-non-null-assertion': 'off'
10+
"no-trailing-spaces": ["warn", { "skipBlankLines": false }],
11+
"semi": ["warn", "never"],
12+
"@typescript-eslint/no-non-null-assertion": "off",
13+
"keyword-spacing": ["warn", {"before": true, "after": true}],
14+
"space-infix-ops": "warn"
1315
},
1416
"parserOptions": {
1517
"project": [

nodejs/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export class API {
7878
return data
7979
}
8080

81-
updateNoteContent =async (noteId: string, content?: string) => {
81+
updateNoteContent = async (noteId: string, content?: string) => {
8282
const { data } = await this.axios.patch<string>(`notes/${noteId}`, { content })
8383
return data
8484
}
@@ -103,7 +103,7 @@ export class API {
103103
return data
104104
}
105105

106-
updateTeamNoteContent =async (teamPath: string, noteId: string, content?: string) => {
106+
updateTeamNoteContent = async (teamPath: string, noteId: string, content?: string) => {
107107
const { data } = await this.axios.patch<string>(`teams/${teamPath}/notes/${noteId}`, { content })
108108
return data
109109
}

0 commit comments

Comments
 (0)