티스토리 뷰

Programming

ts-lint 불필요한 옵션

AlbertKo 2018. 8. 11. 14:16

안녕하세요. AlbertKo입니다.

create-react-app으로 프로젝트를 만들면

ts-lint가 옵션이 죄다켜져있어서 좀 빡박한 면이 많아서 개인적으로

필요없는 옵션을 알려드릴테니 false 해주시면 될 것 같습니다.


형식 : 


<where>

 - error message

 : "Option-Name" : false,







<tslint-react>


 - JSX elements with no children must be self-closing 
 : "jsx-self-close": false,


<tslint>


- Calls to 'console.log' are not allowed.

: "no-console": false,


- The key is not sorted alphabetically

: "object-literal-sort-keys": false,


 - Class name must be in pascal case

 : "class-name": false,


- interface name must start with a capitalized I

: “interface-name”: { options: [“never-prefix”], },


 - variable name must be in lowerCamelCase, PascalCase or UPPER_CASE

 : "variable-name": false,


- Array type using 'Array<T>' is forbidden for simple types. Use 'T[]' instead.

 : "array-type" : false

댓글
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2025/05   »
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
글 보관함