Skip to content

Commit c0fddb8

Browse files
committed
feat: up eslint-plugin
1 parent ad183ad commit c0fddb8

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

eslint-configs/jsdoc.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,19 @@ const baseRules = {
3030
exemptEmptyFunctions: true,
3131
publicOnly: true,
3232
checkConstructors: false,
33-
require: [
33+
contexts: [
3434
'ArrowFunctionExpression',
3535
'FunctionDeclaration',
3636
'FunctionExpression',
3737
'PropertyDefinition',
38-
'MethodDefinition'
38+
'MethodDefinition',
39+
'PropertyDefinition'
3940
],
4041
ignore: [
4142
'MethodDefinition[override=true]',
4243
'PropertyDefinition[override=true]',
4344
'TSDeclareFunction + FunctionDeclaration',
44-
'MethodDefinition[value.type = "TSEmptyBodyFunctionExpression"] + MethodDefinition'
45+
'MethodDefinition[value.type = "TSEmptyBodyFunctionExpression"] + MethodDefinition[value.type = "FunctionExpression"]'
4546
]
4647
}
4748
],
@@ -110,8 +111,8 @@ const baseRules = {
110111
'jsdoc/require-description-complete-sentence': 'off',
111112
'jsdoc/require-example': 'off',
112113
'jsdoc/require-file-overview': 'off',
113-
'jsdoc/require-param-description': 'off',
114114
'jsdoc/require-param-type': 'off',
115+
'jsdoc/require-param-description': 'warn',
115116
'jsdoc/require-returns': 'off',
116117
'jsdoc/require-returns-description': 'off',
117118
'jsdoc/require-returns-check': 'off',

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"@statoscope/stats-validator-reporter-console": "5.22.0",
3333
"@typescript-eslint/eslint-plugin": "5.57.1",
3434
"@typescript-eslint/parser": "5.57.1",
35-
"@v4fire/eslint-plugin": "1.0.0-alpha.7",
35+
"@v4fire/eslint-plugin": "1.0.0-alpha.9",
3636
"@v4fire/typescript-check": "1.4.2",
3737
"eslint": "8.38.0",
3838
"eslint-import-resolver-typescript": "3.5.5",

yarn.lock

+5-5
Original file line numberDiff line numberDiff line change
@@ -1426,9 +1426,9 @@ __metadata:
14261426
languageName: node
14271427
linkType: hard
14281428

1429-
"@v4fire/eslint-plugin@npm:1.0.0-alpha.7":
1430-
version: 1.0.0-alpha.7
1431-
resolution: "@v4fire/eslint-plugin@npm:1.0.0-alpha.7"
1429+
"@v4fire/eslint-plugin@npm:1.0.0-alpha.9":
1430+
version: 1.0.0-alpha.9
1431+
resolution: "@v4fire/eslint-plugin@npm:1.0.0-alpha.9"
14321432
peerDependencies:
14331433
"@es-joy/jsdoccomment": ^0.39
14341434
"@typescript-eslint/eslint-plugin": ^5
@@ -1438,7 +1438,7 @@ __metadata:
14381438
jest: ^29
14391439
jest-runner-eslint: ^2
14401440
typescript: ^4
1441-
checksum: 989d3468bf17013fced74ab07cfea1926da2f8381d47e00a1957822f4d7ac03e3a43e961053393d8f1be835166073a15fe0ed6c4389fc53aea0a83ed7e753761
1441+
checksum: 2677425a81eecf85a9104564d75dea49651ce6a6db48d6e4589a5da2182d27f722c28e0bf1d9ac2299bbabb004739d6cf36690680d4e4275fd315f9755c0fcde
14421442
languageName: node
14431443
linkType: hard
14441444

@@ -1452,7 +1452,7 @@ __metadata:
14521452
"@statoscope/stats-validator-reporter-console": 5.22.0
14531453
"@typescript-eslint/eslint-plugin": 5.57.1
14541454
"@typescript-eslint/parser": 5.57.1
1455-
"@v4fire/eslint-plugin": 1.0.0-alpha.7
1455+
"@v4fire/eslint-plugin": 1.0.0-alpha.9
14561456
"@v4fire/typescript-check": 1.4.2
14571457
eslint: 8.38.0
14581458
eslint-import-resolver-typescript: 3.5.5

0 commit comments

Comments
 (0)