Skip to content

Commit 150aa1d

Browse files
committed
Explicitly support Node v12+
1 parent f1eec6c commit 150aa1d

File tree

4 files changed

+974
-1109
lines changed

4 files changed

+974
-1109
lines changed

.eslintrc.json

+2-3
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"ecmaVersion": 12,
1919
"sourceType": "module"
2020
},
21-
"plugins": ["prettier", "unused-imports", "@typescript-eslint"],
21+
"plugins": ["prettier", "@typescript-eslint"],
2222
"rules": {
2323
"prefer-rest-params": "off",
2424
"prefer-const": "error",
@@ -40,7 +40,6 @@
4040
"@typescript-eslint/no-unused-vars": [
4141
"warn",
4242
{ "varsIgnorePattern": "^_", "argsIgnorePattern": "^_", "ignoreRestSiblings": true }
43-
],
44-
"unused-imports/no-unused-imports-ts": "error"
43+
]
4544
}
4645
}

.github/workflows/CI-CD.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ jobs:
2525
- macos-latest
2626
- windows-latest
2727
node:
28+
- 12.x
29+
- 14.x
2830
- 16
2931
- lts/*
3032
- current

package.json

+5-6
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"fs": false
4848
},
4949
"engines": {
50-
"node": ">= 16"
50+
"node": ">= 12"
5151
},
5252
"files": [
5353
"lib",
@@ -70,9 +70,9 @@
7070
"@types/eslint": "8.44.2",
7171
"@types/js-yaml": "^4.0.6",
7272
"@types/node": "^20.6.2",
73-
"@typescript-eslint/eslint-plugin": "^6.7.2",
74-
"@typescript-eslint/eslint-plugin-tslint": "^6.7.2",
75-
"@typescript-eslint/parser": "^6.7.2",
73+
"@typescript-eslint/eslint-plugin": "^5.23.0",
74+
"@typescript-eslint/eslint-plugin-tslint": "^5.23.0",
75+
"@typescript-eslint/parser": "^5.23.0",
7676
"@vitest/coverage-v8": "^0.34.4",
7777
"abortcontroller-polyfill": "^1.7.5",
7878
"cross-env": "^7.0.3",
@@ -82,8 +82,7 @@
8282
"eslint-plugin-import": "^2.28.1",
8383
"eslint-plugin-prettier": "^5.0.0",
8484
"eslint-plugin-promise": "^6.1.1",
85-
"eslint-plugin-unused-imports": "^3.0.0",
86-
"jsdom": "^22.1.0",
85+
"jsdom": "^19.0.0",
8786
"lint-staged": "^14.0.1",
8887
"node-fetch": "^3.3.2",
8988
"prettier": "^3.0.3",

0 commit comments

Comments
 (0)