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
14 lines
(12 loc)
•
253 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import
{ runTest }
from
'../../spec.js'
import
module
from
'./prefer-from.js'
runTest
({
module
, *
invalid
(
) {
yield
{
code
:
'new Uint8Array([])'
,
output
:
'Uint8Array.from([])'
,
errors
: [{
messageId
:
'instead'
}], } }, })