File tree 4 files changed +5
-8
lines changed
4 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,6 @@ charset = utf-8
7
7
trim_trailing_whitespace = true
8
8
insert_final_newline = true
9
9
10
- [{package.json, * .yml} ]
10
+ [* .yml ]
11
11
indent_style = space
12
12
indent_size = 2
Original file line number Diff line number Diff line change @@ -14,12 +14,12 @@ module.exports = str => {
14
14
for ( let i = 0 ; i < str . length ; i ++ ) {
15
15
const code = str . codePointAt ( i ) ;
16
16
17
- // ignore control characters
18
- if ( code <= 0x1f || ( code >= 0x7f && code <= 0x9f ) ) {
17
+ // Ignore control characters
18
+ if ( code <= 0x1F || ( code >= 0x7F && code <= 0x9F ) ) {
19
19
continue ;
20
20
}
21
21
22
- // surrogates
22
+ // Surrogates
23
23
if ( code >= 0x10000 ) {
24
24
i ++ ;
25
25
}
Original file line number Diff line number Diff line change 51
51
"devDependencies" : {
52
52
"ava" : " *" ,
53
53
"xo" : " *"
54
- },
55
- "xo" : {
56
- "esnext" : true
57
54
}
58
55
}
Original file line number Diff line number Diff line change 1
1
import test from 'ava' ;
2
- import m from './ ' ;
2
+ import m from '.' ;
3
3
4
4
test ( 'main' , t => {
5
5
t . is ( m ( 'abcde' ) , 5 ) ;
You can’t perform that action at this time.
0 commit comments