UNPKG
@masknet/eslint-plugin
Version:
latest (0.4.1)
0.4.1
0.4.0
0.3.0
0.2.0
0.1.3
0.1.2
eslint plugin for masknet
dimensiondev.github.io/eslint-plugin
DimensionDev/eslint-plugin
@masknet/eslint-plugin
/
src
/
rules
/
array
/
prefer-from.spec.ts
13 lines
(11 loc)
•
247 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
import { tester }
from
'../../spec.ts'
import module
from
'./prefer-from.ts'
tester.
test
(module, {
invalid
: [ {
code
:
'new Uint8Array([])'
,
output
:
'Uint8Array.from([])'
,
errors
: [{
messageId
:
'instead'
}], }, ], })