Skip to content

Commit c12391c

Browse files
authoredAug 31, 2020
fix: semi rules (#55)
1 parent df0bdb2 commit c12391c

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed
 

‎lib/rules/typescript.js

+6
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ module.exports = {
2828
},
2929
],
3030

31+
/**
32+
* @see https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/semi.md
33+
*/
34+
semi: 'off',
35+
'@typescript-eslint/semi': [ 'error' ],
36+
3137
/**
3238
* @see https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-use-before-define.md
3339
*/

‎test/fixtures/ts-app/semi/semi.ts

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
11
export const abc = 123;
2-
export interface SPI {}
2+
export interface SPI {
3+
4+
}
5+
6+
export default interface NewSPI {
7+
8+
}

0 commit comments

Comments
 (0)
Please sign in to comment.