Skip to content

Commit c0e737c

Browse files
authored
Upgrade dependencies (#1121)
* Upgrade dependencies * fix test error * fixed node v8 test
1 parent 255a6b7 commit c0e737c

File tree

4 files changed

+22
-17
lines changed

4 files changed

+22
-17
lines changed

package.json

+14-15
Original file line numberDiff line numberDiff line change
@@ -52,28 +52,27 @@
5252
"dependencies": {
5353
"eslint-utils": "^2.0.0",
5454
"natural-compare": "^1.4.0",
55-
"semver": "^5.6.0",
55+
"semver": "^7.3.2",
5656
"vue-eslint-parser": "^7.0.0"
5757
},
5858
"devDependencies": {
59-
"@types/node": "^4.2.16",
60-
"@typescript-eslint/parser": "^2.6.1",
61-
"@vuepress/plugin-pwa": "^1.4.0",
62-
"acorn": "^7.1.0",
63-
"babel-eslint": "^10.0.2",
64-
"chai": "^4.1.0",
59+
"@types/node": "^13.13.5",
60+
"@typescript-eslint/parser": "^2.31.0",
61+
"@vuepress/plugin-pwa": "^1.4.1",
62+
"babel-eslint": "^10.1.0",
63+
"chai": "^4.2.0",
6564
"eslint": "^7.0.0",
66-
"eslint-plugin-eslint-plugin": "^2.0.1",
67-
"eslint-plugin-import": "^2.18.2",
65+
"eslint-plugin-eslint-plugin": "^2.2.1",
66+
"eslint-plugin-import": "^2.20.2",
6867
"eslint-plugin-vue": "file:.",
6968
"eslint-plugin-vue-libs": "^4.0.0",
70-
"eslint4b": "^6.8.0",
71-
"lodash": "^4.17.4",
72-
"mocha": "^5.2.0",
73-
"nyc": "^12.0.2",
74-
"typescript": "^3.5.2",
69+
"eslint4b": "^7.0.0",
70+
"lodash": "^4.17.15",
71+
"mocha": "^7.1.2",
72+
"nyc": "^15.0.1",
73+
"typescript": "^3.8.3",
7574
"vue-eslint-editor": "^1.1.0",
76-
"vuepress": "^1.4.0"
75+
"vuepress": "^1.4.1"
7776
},
7877
"publishConfig": {
7978
"tag": "next"

tests/integrations/eslint-plugin-import.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
const cp = require('child_process')
1313
const path = require('path')
14+
const semver = require('semver')
1415

1516
// -----------------------------------------------------------------------------
1617
// Tests
@@ -24,7 +25,7 @@ describe('Integration with eslint-plugin-import', () => {
2425
before(() => {
2526
originalCwd = process.cwd()
2627
process.chdir(path.join(__dirname, 'eslint-plugin-import'))
27-
cp.execSync('npm i', { stdio: 'inherit', env: { npm_config_package_lock: 'false' }})
28+
cp.execSync('npm i', { stdio: 'inherit' })
2829
})
2930
after(() => {
3031
process.chdir(originalCwd)
@@ -34,6 +35,10 @@ describe('Integration with eslint-plugin-import', () => {
3435
// eslint-plugin-vue had been breaking eslint-plugin-import if people use both at the same time.
3536
// This test is in order to prevent the regression.
3637
it('should lint without errors', () => {
38+
if (!semver.satisfies(process.version, require(path.join(__dirname, 'eslint-plugin-import/node_modules/eslint/package.json')).engines.node)) {
39+
return
40+
}
41+
3742
cp.execSync(`${ESLINT} a.vue`, { stdio: 'inherit' })
3843
})
3944
})
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package-lock=false

tests/integrations/eslint-plugin-import/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"author": "Toru Nagashima (https://github.com/mysticatea)",
99
"license": "MIT",
1010
"dependencies": {
11-
"eslint": "~6.0.0",
11+
"eslint": "~7.0.0",
1212
"eslint-plugin-import": "~2.18.2",
1313
"eslint-plugin-vue": "file:../../.."
1414
}

0 commit comments

Comments
 (0)