Skip to content

Commit

Permalink
Merge pull request #151 from OmriBarZik/lint/eslint-node
Browse files Browse the repository at this point in the history
chore: updated eslint node
  • Loading branch information
OmriBarZik authored Oct 30, 2021
2 parents 51ee55d + ea176f9 commit 5ead968
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 15 deletions.
6 changes: 1 addition & 5 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,14 @@ module.exports = {
'plugin:jsdoc/recommended',
'plugin:jest/style',
'plugin:jest/recommended',
'plugin:node/recommended-script',
],
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
},
plugins: [
'jest',
'jsdoc',
'spellcheck',
],
env: {
es6: true,
node: true,
'jest/globals': true,
},
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ node_modules/**
yarn-error.log

yarn.lock

.eslintcache
8 changes: 2 additions & 6 deletions bin/cywp.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,9 +213,7 @@ function getConfig () {
? 'please check the \'--project\' path!'
: 'create cypress.json or use --path to direct to a valid cypress project'

console.error(`${errorMassage}\n${userHelper}`)

process.exit(1)
commandFailed(`${errorMassage}\n${userHelper}`)
}

return checkConfig({ configFile: cypressPath, env: {} }, true)
Expand Down Expand Up @@ -253,7 +251,5 @@ function commandFailed (errorMessage) {
errorMessage = errorMessage.message
}

console.error('Error: ' + errorMessage)

process.exit(1)
throw new Error(errorMessage)
}
1 change: 0 additions & 1 deletion bin/preperdocs.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env node
/* eslint-disable spellcheck/spell-checker */

const { resolve, basename } = require('path')
Expand Down
12 changes: 9 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,20 @@
"type": "git",
"url": "https://github.com/OmriBarZik/cywp.git"
},
"type": "commonjs",
"bugs": {
"url": "https://github.com/OmriBarZik/cywp/issues"
},
"files": [
"src/**",
"bin/**"
"bin/cywp.js"
],
"directories": {
"lib": "./src ",
"test": "./test",
"bin": "./bin"
"test": "./test"
},
"bin": {
"cywp": "bin/cywp.js"
},
"scripts": {
"start": "node index",
Expand All @@ -42,6 +45,9 @@
"peerDependencies": {
"cypress": ">=6.7.x"
},
"engines": {
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
},
"dependencies": {
"command-exists": "1.2.9",
"commander": "8.2.0"
Expand Down

0 comments on commit 5ead968

Please sign in to comment.