UNPKG
eslint-config-mts
Version:
latest (0.0.2)
0.0.2
0.0.1
MLT ESLint 规则
test.hulu.team/eslint/config/alloy
eslint-config-mts
/
test
/
typescript
/
explicit-member-accessibility
/
bad.ts
16 lines
(15 loc)
•
213 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
class
Foo2
{
static
foo =
'foo'
;
static
getFoo
(
) {
return
Foo2
.
foo
; }
constructor
(
) {} bar =
'bar'
;
getBar
(
) {}
get
baz
() {
return
'baz'
; }
set
baz
(
value
) {
console
.
log
(value); } }