Skip to content

Commit f7baa9c

Browse files
committed
Require Node.js 8, upgrade stylelint
1 parent 55d0ff6 commit f7baa9c

File tree

4 files changed

+8
-14
lines changed

4 files changed

+8
-14
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
language: node_js
22
node_js:
3+
- '12'
34
- '10'
45
- '8'
5-
- '6'

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"url": "sindresorhus.com"
1111
},
1212
"engines": {
13-
"node": ">=6"
13+
"node": ">=8"
1414
},
1515
"scripts": {
1616
"test": "xo && ava"
@@ -45,14 +45,14 @@
4545
"simple"
4646
],
4747
"dependencies": {
48-
"stylelint-config-xo": "^0.13.0"
48+
"stylelint-config-xo": "^0.15.0"
4949
},
5050
"devDependencies": {
51-
"ava": "^1.2.1",
52-
"stylelint": "^9.10.1",
51+
"ava": "^1.4.1",
52+
"stylelint": "^10.0.1",
5353
"xo": "^0.24.0"
5454
},
5555
"peerDependencies": {
56-
"stylelint": ">=9.10.1"
56+
"stylelint": ">=10"
5757
}
5858
}

readme.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,3 @@ Add this to your [Stylelint config](https://stylelint.io/user-guide/configuratio
2525

2626
- [stylelint-config-xo](https://github.com/xojs/stylelint-config-xo) - Stylelint shareable config for XO with tab indent
2727
- [xo](https://github.com/xojs/xo) - JavaScript linter
28-
29-
30-
## License
31-
32-
MIT © [Sindre Sorhus](https://sindresorhus.com)

test/test.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,10 @@ const runStylelint = async code => {
1212
};
1313

1414
test('main', async t => {
15-
const results = await runStylelint(`
16-
div {
15+
const results = await runStylelint(`div {
1716
left: .2em;
1817
}
19-
`);
18+
`);
2019

2120
t.is(results[0].warnings[0].rule, 'number-leading-zero');
2221
});

0 commit comments

Comments
 (0)