UNPKG
tslint-config-alloy
Version:
latest (0.2.1)
0.2.1
0.2.0
0.1.0
AlloyTeam TSLint 规则
github.com/AlloyTeam/tslint-config-alloy
AlloyTeam/tslint-config-alloy
tslint-config-alloy
/
test
/
member-access
/
bad.ts
17 lines
(16 loc)
•
289 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// bad 没有设置类成员的可访问性
class
Foo1
{
static
foo =
'foo'
;
static
getFoo
(
) {
return
Foo1
.
foo
; }
constructor
(
) {} bar =
'bar'
;
getBar
(
) {}
get
baz
() {
return
'baz'
; }
set
baz
(
value
) {
console
.
log
(value); } }