Skip to content

Commit 108b507

Browse files
author
Valentin Hervieu
committed
Reformat using latest prettier
1 parent 65a7fae commit 108b507

29 files changed

+520
-514
lines changed

demo/demo.js

+107-107
Large diffs are not rendered by default.

package.json

+5-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@
88
"type": "git",
99
"url": "https://github.com/angular-slider/angularjs-slider"
1010
},
11-
"keywords": ["angular", "slider"],
11+
"keywords": [
12+
"angular",
13+
"slider"
14+
],
1215
"scripts": {
1316
"start": "http-server ./ -c-1",
1417
"commit": "git-cz",
@@ -65,7 +68,7 @@
6568
"lint-staged": "^4.0.3",
6669
"mocha": "^3.1.2",
6770
"phantomjs": "^1.9.19",
68-
"prettier": "^1.5.3",
71+
"prettier": "^1.10.2",
6972
"recess": "~1.1.9",
7073
"sinon": "^1.17.2"
7174
},

src/variables.less

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
@barFillColor: @handleBgColor;
1515
@barDisabledFillColor: #8b91a2;
1616
@barNormalColor: #d8e0f3;
17-
@barLeftOutSelectionColor: #DF002D;
18-
@barRightOutSelectionColor: #03A688;
17+
@barLeftOutSelectionColor: #df002d;
18+
@barRightOutSelectionColor: #03a688;
1919

2020
@ticksColor: @barNormalColor;
2121
@selectedTicksColor: @barFillColor;

tests/specs/accessibility-test.js

+28-28
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
options: {
2626
floor: 0,
2727
ceil: 100,
28-
step: 10
29-
}
28+
step: 10,
29+
},
3030
}
3131
helper.createSlider(sliderConf)
3232
expect(helper.slider.minH.attr('role')).to.equal('slider')
@@ -49,8 +49,8 @@
4949
floor: 0,
5050
ceil: 100,
5151
step: 10,
52-
vertical: true
53-
}
52+
vertical: true,
53+
},
5454
}
5555
helper.createSlider(sliderConf)
5656
expect(helper.slider.minH.attr('role')).to.equal('slider')
@@ -74,8 +74,8 @@
7474
options: {
7575
floor: 0,
7676
ceil: 100,
77-
step: 10
78-
}
77+
step: 10,
78+
},
7979
}
8080
helper.createRangeSlider(sliderConf)
8181
expect(helper.slider.minH.attr('role')).to.equal('slider')
@@ -110,8 +110,8 @@
110110
floor: 0,
111111
ceil: 100,
112112
step: 10,
113-
vertical: true
114-
}
113+
vertical: true,
114+
},
115115
}
116116
helper.createRangeSlider(sliderConf)
117117
expect(helper.slider.minH.attr('role')).to.equal('slider')
@@ -147,8 +147,8 @@
147147
floor: 0,
148148
ceil: 100,
149149
step: 10,
150-
keyboardSupport: false
151-
}
150+
keyboardSupport: false,
151+
},
152152
}
153153
helper.createSlider(sliderConf)
154154
expect(helper.slider.minH.attr('role')).to.equal('slider')
@@ -172,8 +172,8 @@
172172
floor: 0,
173173
ceil: 100,
174174
step: 10,
175-
keyboardSupport: false
176-
}
175+
keyboardSupport: false,
176+
},
177177
}
178178
helper.createRangeSlider(sliderConf)
179179
expect(helper.slider.minH.attr('role')).to.equal('slider')
@@ -204,8 +204,8 @@
204204
var sliderConf = {
205205
value: 'B',
206206
options: {
207-
stepsArray: ['A', 'B', 'C']
208-
}
207+
stepsArray: ['A', 'B', 'C'],
208+
},
209209
}
210210
helper.createSlider(sliderConf)
211211
expect(helper.slider.minH.attr('role')).to.equal('slider')
@@ -226,8 +226,8 @@
226226
value: 1,
227227
options: {
228228
stepsArray: ['A', 'B', 'C'],
229-
bindIndexForStepsArray: true
230-
}
229+
bindIndexForStepsArray: true,
230+
},
231231
}
232232
helper.createSlider(sliderConf)
233233
expect(helper.slider.minH.attr('role')).to.equal('slider')
@@ -250,8 +250,8 @@
250250
floor: 0,
251251
ceil: 100,
252252
step: 10,
253-
ariaLabel: 'test label'
254-
}
253+
ariaLabel: 'test label',
254+
},
255255
}
256256
helper.createSlider(sliderConf)
257257
expect(helper.slider.minH.attr('aria-label')).to.equal('test label')
@@ -266,8 +266,8 @@
266266
ceil: 100,
267267
step: 10,
268268
ariaLabel: 'test label',
269-
ariaLabelHigh: 'test label high'
270-
}
269+
ariaLabelHigh: 'test label high',
270+
},
271271
}
272272
helper.createRangeSlider(sliderConf)
273273
expect(helper.slider.minH.attr('aria-label')).to.equal('test label')
@@ -281,8 +281,8 @@
281281
floor: 0,
282282
ceil: 100,
283283
step: 10,
284-
ariaLabelledBy: 'testId'
285-
}
284+
ariaLabelledBy: 'testId',
285+
},
286286
}
287287
helper.createSlider(sliderConf)
288288
expect(helper.slider.minH.attr('aria-labelledby')).to.equal('testId')
@@ -297,8 +297,8 @@
297297
ceil: 100,
298298
step: 10,
299299
ariaLabelledBy: 'testId',
300-
ariaLabelledByHigh: 'testIdHigh'
301-
}
300+
ariaLabelledByHigh: 'testIdHigh',
301+
},
302302
}
303303
helper.createRangeSlider(sliderConf)
304304
expect(helper.slider.minH.attr('aria-labelledby')).to.equal('testId')
@@ -313,8 +313,8 @@
313313
ceil: 100,
314314
step: 10,
315315
ariaLabel: 'test label',
316-
ariaLabelledBy: 'testId'
317-
}
316+
ariaLabelledBy: 'testId',
317+
},
318318
}
319319
helper.createSlider(sliderConf)
320320
expect(helper.slider.minH.attr('aria-label')).to.equal('test label')
@@ -332,8 +332,8 @@
332332
ariaLabel: 'test label',
333333
ariaLabelHigh: 'test label high',
334334
ariaLabelledBy: 'testId',
335-
ariaLabelledByHigh: 'testIdHigh'
336-
}
335+
ariaLabelledByHigh: 'testIdHigh',
336+
},
337337
}
338338
helper.createRangeSlider(sliderConf)
339339
expect(helper.slider.minH.attr('aria-label')).to.equal('test label')

tests/specs/custom-template-test.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
options: {
2929
floor: 0,
3030
ceil: 100,
31-
step: 10
32-
}
31+
step: 10,
32+
},
3333
}
3434
helper.createRangeSliderWithCustomTemplate(sliderConf, url)
3535
expect(helper.slider.flrLab.text()).to.equal('test- 0')
@@ -43,8 +43,8 @@
4343
options: {
4444
floor: 0,
4545
ceil: 100,
46-
step: 10
47-
}
46+
step: 10,
47+
},
4848
}
4949
helper.createRangeSliderWithCustomTemplate(sliderConf, url)
5050
expect(helper.slider.minLab.text()).to.equal('test- 10')
@@ -58,8 +58,8 @@
5858
options: {
5959
floor: 0,
6060
ceil: 100,
61-
step: 10
62-
}
61+
step: 10,
62+
},
6363
}
6464
helper.createRangeSliderWithCustomTemplate(sliderConf, url)
6565
expect(helper.slider.cmbLab.text()).to.equal('test- 50 - 50')

0 commit comments

Comments
 (0)