Skip to content

Commit 0d6e32a

Browse files
committed
Update dependencies and package
This updates the package to modern standards.
1 parent 55f3ed4 commit 0d6e32a

File tree

8 files changed

+6074
-7883
lines changed

8 files changed

+6074
-7883
lines changed

.eslintrc.json

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,45 @@
22
"env": {
33
"node": true
44
},
5-
"extends": "airbnb-base/legacy",
5+
"extends": "airbnb-base",
66
"rules": {
77
"comma-dangle": ["error", "always-multiline"],
88
"consistent-return": "off",
99
"curly": ["error", "multi-line"],
1010
"func-names": "off",
11+
"function-call-argument-newline": "off",
12+
"function-paren-newline": "off",
1113
"global-require": "off",
14+
"import/no-unresolved": "off",
1215
"indent": "off",
1316
"max-len": "off",
1417
"newline-per-chained-call": "off",
18+
"no-bitwise": "off",
1519
"no-console": "off",
20+
"no-continue": "off",
1621
"no-else-return": "off",
1722
"no-empty": "off",
1823
"no-mixed-operators": "off",
1924
"no-multi-spaces": "off",
2025
"no-multiple-empty-lines": ["error", { "max": 2, "maxBOF": 0, "maxEOF": 0 } ],
2126
"no-param-reassign": "off",
27+
"no-plusplus": "off",
2228
"no-prototype-builtins": "off",
2329
"no-throw-literal": "off",
2430
"no-underscore-dangle": "off",
2531
"no-use-before-define": "off",
32+
"no-var": "off",
33+
"operator-linebreak": "off",
34+
"prefer-arrow-callback": "off",
35+
"prefer-destructuring": "off",
36+
"prefer-numeric-literals": "off",
37+
"prefer-object-spread": "off",
38+
"prefer-rest-params": "off",
39+
"prefer-spread": "off",
40+
"prefer-template": "off",
2641
"quote-props": "off",
2742
"spaced-comment": ["error", "always", { "markers": ["@", "@include"], "exceptions": ["@", "@commands"] }],
43+
"strict": "off",
2844
"vars-on-top": "off",
2945
"new-cap": ["error", {
3046
"capIsNewExceptions": [

.github/ISSUE_TEMPLATE.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<!--
2+
Before posting your issue, please check our FAQ:
3+
https://github.com/shelljs/shelljs/wiki/FAQ
4+
-->
5+
### Node version (or tell us if you're using electron or some other framework):
6+
7+
### ShellJS version (the most recent version/Github branch you see the bug on):
8+
9+
### Operating system:
10+
11+
### Description of the bug:
12+
13+
### Example ShellJS command to reproduce the error:
14+
15+
```javascript
16+
17+
```

.github/SECURITY.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# ShellJS Security Policy
2+
3+
Thank you for reaching out regarding the security of the ShellJS module! Please
4+
note that this project is maintained on a best-effort basis, however I still
5+
intend to prioritize reviewing and addressing security issues.
6+
7+
## Supported Versions
8+
9+
I generally only support the latest ShellJS release (see
10+
https://www.npmjs.com/package/shelljs). My goal is to release security fixes as
11+
patch releases on top of whatever was most recently shipped.
12+
13+
If breaking changes have already landed on the main development branch, I may
14+
apply the patch on the relevant release branch (ex.
15+
[`0.8-release`](https://github.com/shelljs/shelljs/commits/0.8-release)) and
16+
create a new release from there.
17+
18+
## Reporting a Vulnerability
19+
20+
Please report security vulnerabilities to ntfschr@gmail.com. I should respond
21+
within a few days. Although it's not strictly required, it helps me out if you
22+
can include any proof of concept exploit code, suggested fix, etc.
23+
24+
**Please do not publicly disclose the suspected vulnerability** until I have a
25+
chance to review your report. I'd like a chance to patch the code before the
26+
issue is known to the public.
27+
28+
Please **only** use this email for security issues. It's also OK to use the
29+
email if you're legitimately unsure if this is a security issue (better safe
30+
than sorry). But for all other non-security issues, please use the GitHub issue
31+
tracker.

.github/workflows/main.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: CI
2+
on:
3+
- push
4+
- pull_request
5+
jobs:
6+
test:
7+
name: Node.js ${{ matrix.node-version }} on ${{ matrix.os }}
8+
runs-on: ${{ matrix.os }}
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
node-version:
13+
- 18
14+
- 20
15+
- 22
16+
os:
17+
- ubuntu-latest
18+
- macos-latest
19+
- windows-latest
20+
steps:
21+
- uses: actions/checkout@v4
22+
- uses: actions/setup-node@v4
23+
with:
24+
node-version: ${{ matrix.node-version }}
25+
- run: npm install
26+
- name: test with coverage
27+
run: npm run test
28+
- name: Upload coverage reports to Codecov
29+
uses: codecov/codecov-action@v4
30+
with:
31+
token: ${{ secrets.CODECOV_TOKEN }}
32+
fail_ci_if_error: true

0 commit comments

Comments
 (0)