Skip to content

Commit b2b1872

Browse files
authored
BREAKING CHANGE: update deps (#6)
1 parent 115eeaf commit b2b1872

File tree

6 files changed

+16
-47
lines changed

6 files changed

+16
-47
lines changed

.github/workflows/nodejs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
strategy:
2323
fail-fast: false
2424
matrix:
25-
node-version: [6, 8]
25+
node-version: [14, 16, 18]
2626
os: [ubuntu-latest, windows-latest, macos-latest]
2727

2828
steps:
@@ -35,7 +35,7 @@ jobs:
3535
node-version: ${{ matrix.node-version }}
3636

3737
- name: Install Dependencies
38-
run: npm i -g npminstall@5 && npminstall
38+
run: npm i
3939

4040
- name: Continuous Integration
4141
run: npm run ci

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,6 @@ coverage/
66
run/
77
.DS_Store
88
*.swp
9-
.vscode
9+
.vscode
10+
*-lock.json
11+
*-lock.yaml

.travis.yml

Lines changed: 0 additions & 11 deletions
This file was deleted.

appveyor.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

package.json

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,25 @@
22
"name": "eslint-plugin-eggache",
33
"version": "1.0.0",
44
"description": "custom eslint rule for egg RTFM issues",
5-
"dependencies": {
6-
},
5+
"dependencies": {},
76
"devDependencies": {
8-
"autod": "^3.0.1",
9-
"egg-bin": "^4.3.7",
10-
"egg-ci": "^1.8.0",
11-
"eslint": "^4.17.0",
12-
"eslint-config-egg": "^6.0.0",
13-
"is-type-of": "^1.2.0",
14-
"webstorm-disable-index": "^1.2.0"
7+
"egg-bin": "^5",
8+
"egg-ci": "^2",
9+
"eslint": "^8",
10+
"eslint-config-egg": "^12"
1511
},
1612
"engines": {
17-
"node": ">=6.0.0"
13+
"node": ">=14.17.0"
1814
},
1915
"scripts": {
20-
"autod": "autod",
2116
"lint": "eslint .",
22-
"test": "npm run lint -- --fix && egg-bin pkgfiles && npm run test-local",
23-
"test-local": "egg-bin test",
17+
"test": "egg-bin test",
2418
"cov": "egg-bin cov",
25-
"ci": "npm run lint && egg-bin pkgfiles --check && npm run cov",
26-
"pkgfiles": "egg-bin pkgfiles"
19+
"ci": "npm run lint && npm run cov"
2720
},
2821
"ci": {
29-
"version": "6, 8"
22+
"version": "14, 16, 18",
23+
"type": "github"
3024
},
3125
"repository": {
3226
"type": "git",

test/utils.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
'use strict';
22

3-
const is = require('is-type-of');
43
const RuleTester = require('eslint').RuleTester;
54
const ruleTester = new RuleTester({ parserOptions: { ecmaVersion: 6 } });
65

@@ -14,7 +13,7 @@ exports.defineTest = (ruleName, fixtures) => {
1413
};
1514

1615
function normalizeFixture(input) {
17-
if (is.string(input)) {
16+
if (typeof input === 'string') {
1817
input = {
1918
code: input,
2019
};

0 commit comments

Comments
 (0)