@@ -41,23 +41,38 @@ module.exports = {
41
41
'@typescript-eslint/ban-ts-comment' : 'off' ,
42
42
'@typescript-eslint/consistent-type-imports' : 'warn' ,
43
43
'@typescript-eslint/no-non-null-assertion' : 'off' ,
44
+
45
+ // Imports
44
46
'no-duplicate-imports' : 'off' ,
45
47
'import/extensions' : [ 'error' , 'always' ] ,
46
- 'jsdoc/tag-lines' : [ 'error' , 'any' , {
47
- 'startLines' : 1 ,
48
- } ] ,
49
- 'jsdoc/sort-tags' : [ 'error' , { 'linesBetween' : 1 , "tagSequence" : [ { "tags" : [ "deprecated" ] } , { "tags" : [ "param" ] } , { "tags" : [ "returns" ] } ] } ] ,
48
+
49
+ // JSDoc
50
+ 'jsdoc/tag-lines' : [ 'error' , 'any' , { startLines : 1 } ] ,
51
+ 'jsdoc/sort-tags' : [
52
+ 'error' ,
53
+ {
54
+ linesBetween : 1 ,
55
+ tagSequence : [
56
+ { tags : [ 'deprecated' ] } ,
57
+ { tags : [ 'param' ] } ,
58
+ { tags : [ 'returns' ] } ,
59
+ ] ,
60
+ } ,
61
+ ] ,
50
62
// NOTE: For overloads functions, we only require a JSDoc at the top
51
63
// SEE: https://github.com/gajus/eslint-plugin-jsdoc/issues/666
52
- "jsdoc/require-jsdoc" : [ "error" , {
53
- "contexts" : [
54
- 'ExportNamedDeclaration[declaration.type="TSDeclareFunction"]:not(ExportNamedDeclaration[declaration.type="TSDeclareFunction"] + ExportNamedDeclaration[declaration.type="TSDeclareFunction"])' ,
55
- 'ExportNamedDeclaration[declaration.type="FunctionDeclaration"]:not(ExportNamedDeclaration[declaration.type="TSDeclareFunction"] + ExportNamedDeclaration[declaration.type="FunctionDeclaration"])' ,
56
- ] ,
57
- "require" : {
58
- "FunctionDeclaration" : false
59
- }
60
- } ] ,
64
+ 'jsdoc/require-jsdoc' : [
65
+ 'error' ,
66
+ {
67
+ contexts : [
68
+ 'ExportNamedDeclaration[declaration.type="TSDeclareFunction"]:not(ExportNamedDeclaration[declaration.type="TSDeclareFunction"] + ExportNamedDeclaration[declaration.type="TSDeclareFunction"])' ,
69
+ 'ExportNamedDeclaration[declaration.type="FunctionDeclaration"]:not(ExportNamedDeclaration[declaration.type="TSDeclareFunction"] + ExportNamedDeclaration[declaration.type="FunctionDeclaration"])' ,
70
+ ] ,
71
+ require : {
72
+ FunctionDeclaration : false ,
73
+ } ,
74
+ } ,
75
+ ] ,
61
76
62
77
// Security
63
78
'security/detect-object-injection' : 'off' , // Too many false positives
0 commit comments