Skip to content

Commit

Permalink
@typescript-eslint/type-annotation-spacing 버그로 2.21로 내림
Browse files Browse the repository at this point in the history
  • Loading branch information
sixmen committed Mar 8, 2020
1 parent 594b964 commit ea301b9
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 6 deletions.
34 changes: 30 additions & 4 deletions TypeScript/eslint/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion TypeScript/eslint/package.json
Expand Up @@ -4,7 +4,7 @@
"license": "MIT",
"dependencies": {},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^2.22.0",
"@typescript-eslint/eslint-plugin": "^2.21.0",
"@typescript-eslint/parser": "^2.22.0",
"eslint": "^6.8.0",
"typescript": "^3.8.3"
Expand Down
18 changes: 18 additions & 0 deletions TypeScript/eslint/sample/check.ts
@@ -0,0 +1,18 @@
export { };

// @typescript-eslint/explicit-function-return-type:off
function fun_rt() {
//
}

// @typescript-eslint/no-explicit-any:off
const var_any: any = 1;

// @typescript-eslint/no-non-null-assertion:off
const var_nna = { prop: 1 } as { prop: number } | null;
console.log(var_nna!.prop);

// @typescript-eslint/type-annotation-spacing
const var_tas1: number = Math.random();
const var_tas2: () => number = Math.random;
const var_tas3: new () => Error = Error;
4 changes: 3 additions & 1 deletion TypeScript/eslint/tsconfig.json
@@ -1,3 +1,5 @@
{
"compilerOptions": {}
"compilerOptions": {
"strictNullChecks": true
}
}

0 comments on commit ea301b9

Please sign in to comment.