Skip to content

Commit 68ae438

Browse files
committed
jsdoc/check-alignment
1 parent 2c32308 commit 68ae438

File tree

7 files changed

+2442
-2436
lines changed

7 files changed

+2442
-2436
lines changed

.eslintrc

+7-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"es6": true
1313
},
1414
"plugins": [
15-
"@typescript-eslint", "microsoft-typescript", "no-null", "import"
15+
"@typescript-eslint", "microsoft-typescript", "jsdoc", "no-null", "import"
1616
],
1717
"rules": {
1818
"@typescript-eslint/adjacent-overload-signatures": "error",
@@ -76,6 +76,10 @@
7676
/** eslint-plugin-no-null */
7777
"no-null/no-null": "error",
7878

79+
/** eslint-plugin-jsdoc */
80+
"jsdoc/check-alignment": "error",
81+
82+
/** eslint */
7983
"arrow-body-style": "off",
8084
"arrow-parens": "off",
8185
"brace-style": ["error", "stroustrup", { "allowSingleLine": true }],
@@ -147,8 +151,10 @@
147151
"@typescript-eslint/prefer-function-type": "off",
148152
"@typescript-eslint/unified-signatures": "off",
149153

154+
/** eslint-plugin-microsoft-typescript */
150155
"microsoft-typescript/no-keywords": "off",
151156

157+
/** eslint */
152158
"no-var": "off"
153159
}
154160
}]

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,9 @@
6565
"convert-source-map": "latest",
6666
"del": "latest",
6767
"eslint": "6.0.1",
68-
"eslint-formatter-autolinkable-stylish": "latest",
68+
"eslint-formatter-autolinkable-stylish": "1.0.0",
6969
"eslint-plugin-import": "2.18.0",
70+
"eslint-plugin-jsdoc": "15.5.3",
7071
"eslint-plugin-microsoft-typescript": "0.1.11",
7172
"eslint-plugin-no-null": "1.0.2",
7273
"fancy-log": "latest",

src/compiler/emitter.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -414,8 +414,7 @@ namespace ts {
414414
// Improved narrowing in master/3.6 makes this cast unnecessary, triggering a lint rule.
415415
// But at the same time, the LKG (3.5) necessitates it because it doesn’t narrow.
416416
// Once the LKG is updated to 3.6, this comment, the cast to `SourceFile`, and the
417-
// tslint directive can be all be removed.
418-
const sourceFile = declarationTransform.transformed[0] as SourceFile; // tslint:disable-line
417+
const sourceFile = declarationTransform.transformed[0] as SourceFile;
419418
exportedModulesFromDeclarationEmit = sourceFile.exportedModulesFromDeclarationEmit;
420419
}
421420
}

src/lib/es2015.core.d.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -299,9 +299,9 @@ interface ObjectConstructor {
299299
getOwnPropertySymbols(o: any): symbol[];
300300

301301
/**
302-
* Returns the names of the enumerable string properties and methods of an object.
303-
* @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
304-
*/
302+
* Returns the names of the enumerable string properties and methods of an object.
303+
* @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
304+
*/
305305
keys(o: {}): string[];
306306

307307
/**

src/lib/es2020.string.d.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
interface String {
44
/**
5-
* Matches a string with a regular expression, and returns an iterable of matches
6-
* containing the results of that search.
7-
* @param regexp A variable name or string literal containing the regular expression pattern and flags.
8-
*/
5+
* Matches a string with a regular expression, and returns an iterable of matches
6+
* containing the results of that search.
7+
* @param regexp A variable name or string literal containing the regular expression pattern and flags.
8+
*/
99
matchAll(regexp: RegExp): IterableIterator<RegExpMatchArray>;
1010
}

0 commit comments

Comments
 (0)