Skip to content

Commit be460bd

Browse files
BPScottnot-an-aardvark
authored andcommitted
Breaking: Drop support for node v4, v7 and v9
Node v4, v7 and v9 are end of life and no longer supported.
1 parent 9fac6b4 commit be460bd

File tree

3 files changed

+2
-19
lines changed

3 files changed

+2
-19
lines changed

.travis.yml

-14
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,13 @@ language: node_js
22
cache: yarn
33
node_js:
44
- "10"
5-
- "9"
65
- "8"
7-
- "7"
86
- "6"
9-
- "4"
107
env:
118
- ESLINT_VERSION=current
129
- ESLINT_VERSION=^5
1310
- ESLINT_VERSION=^4
1411
- ESLINT_VERSION=^3
15-
matrix:
16-
# ESLint 5 dropped support node v4 or v7
17-
exclude:
18-
- node_js: "7"
19-
env: ESLINT_VERSION=current
20-
- node_js: "4"
21-
env: ESLINT_VERSION=current
22-
- node_js: "7"
23-
env: ESLINT_VERSION=^5
24-
- node_js: "4"
25-
env: ESLINT_VERSION=^5
2612
install:
2713
- if [[ $ESLINT_VERSION != "current" ]]; then
2814
yarn upgrade "eslint@$ESLINT_VERSION";

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"vue-eslint-parser": "^2.0.2"
5050
},
5151
"engines": {
52-
"node": ">=4.0.0"
52+
"node": ">=6.0.0"
5353
},
5454
"license": "MIT"
5555
}

test/prettier.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -196,9 +196,6 @@ function loadInvalidFixture(name) {
196196
* @param {string} dir - Prettierrc fixture basename.
197197
* @returns {string} A javascript filename relative to the .prettierrc config.
198198
*/
199-
function getPrettierRcJsFilename(dir, file) {
200-
// Use default parameters when we drop support for node 4
201-
file = typeof file !== 'undefined' ? file : 'dummy.js';
202-
199+
function getPrettierRcJsFilename(dir, file = 'dummy.js') {
203200
return path.resolve(__dirname, `./prettierrc/${dir}/${file}`);
204201
}

0 commit comments

Comments
 (0)