Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
"prefer-template": 0,
"func-names": 0,
"import/no-extraneous-dependencies": ["error", {"devDependencies": true}],
"import/order": 0,
"no-restricted-globals": 0,
"new-cap": [2, {
"capIsNewExceptions": [
"ShellString"
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ jobs:
fail-fast: false
matrix:
node-version:
- 4
- 6
- 8
- 10
Expand Down
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ var plugin = require('shelljs/plugin');
// Require whatever modules you need for your project
var opener = require('opener');
var fs = require('fs');

var pathExistsSync = function (filePath) {
try {
fs.accessSync(filePath);
Expand Down Expand Up @@ -32,7 +33,7 @@ function open(options, fileName) {

// Register the new plugin as a ShellJS command
plugin.register('open', open, {
cmdOptions: {}, // There are no supported options for this command
cmdOptions: {}, // There are no supported options for this command
});

// Optionally, you can export the implementation of the command like so:
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"posttest": "npm run lint",
"test": "mocha",
"lint": "node scripts/eslint-wrapper.js",
"lint": "eslint .",
"changelog": "shelljs-changelog",
"release:major": "shelljs-release major",
"release:minor": "shelljs-release minor",
Expand Down Expand Up @@ -43,6 +43,6 @@
"opener": "^1.4.1"
},
"engines": {
"node": ">=4"
"node": ">=6"
}
}
14 changes: 0 additions & 14 deletions scripts/eslint-wrapper.js

This file was deleted.

2 changes: 1 addition & 1 deletion test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ var pluginOpen = require('..');
* want to use ShellJS like this normally):
*/
var shell = require('shelljs'); // recommended
require('shelljs/global'); // not recommended
require('shelljs/global'); // not recommended

/*
* Now, require whichever other modules you want to require:
Expand Down
Loading