File tree 3 files changed +15
-9
lines changed
3 files changed +15
-9
lines changed Original file line number Diff line number Diff line change @@ -20,10 +20,10 @@ function generatePreset(opts) {
20
20
return ;
21
21
}
22
22
23
- var root = atRule . parent ;
24
- var selector = matches [ 1 ] ;
23
+ var root = atRule . parent ;
24
+ var selector = matches [ 1 ] ;
25
25
var properties = postcss . list . space ( matches [ 2 ] ) ;
26
- var values = postcss . list . space ( matches [ 3 ] ) ;
26
+ var values = postcss . list . space ( matches [ 3 ] ) ;
27
27
28
28
values . forEach ( function ( value ) {
29
29
var numeric = parseFloat ( value , 10 ) ;
@@ -63,6 +63,6 @@ function generatePreset(opts) {
63
63
} ;
64
64
}
65
65
66
- function isFloat ( n ) {
66
+ function isFloat ( n ) {
67
67
return n === + n && n !== ( n | 0 ) ;
68
68
}
Original file line number Diff line number Diff line change
1
+ {
2
+ extends: "../.eslintrc",
3
+ rules: {
4
+ no-unused-expressions: 0
5
+ }
6
+ }
Original file line number Diff line number Diff line change 1
1
var postcss = require ( 'postcss' ) ;
2
- var expect = require ( 'chai' ) . expect ;
3
- var plugin = require ( '../' ) ;
4
- var fs = require ( 'fs' ) ;
5
- var path = require ( 'path' ) ;
2
+ var expect = require ( 'chai' ) . expect ;
3
+ var plugin = require ( '../' ) ;
4
+ var fs = require ( 'fs' ) ;
5
+ var path = require ( 'path' ) ;
6
6
7
7
var test = function ( input , output , opts , done ) {
8
8
input = fs . readFileSync ( path . join ( 'test/fixtures' , input ) , 'utf-8' ) ;
9
9
output = fs . readFileSync ( path . join ( 'test/fixtures' , output ) , 'utf-8' ) ;
10
10
11
- postcss ( [ plugin ( opts ) ] ) . process ( input ) . then ( function ( result ) {
11
+ postcss ( [ plugin ( opts ) ] ) . process ( input ) . then ( function ( result ) {
12
12
expect ( result . css ) . to . eql ( output ) ;
13
13
expect ( result . warnings ( ) ) . to . be . empty ;
14
14
done ( ) ;
You can’t perform that action at this time.
0 commit comments