Skip to content

Commit

Permalink
chore(deps): update @typescript-eslint/standardx (#341)
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoe authored Nov 9, 2020
1 parent 3b54e5e commit 2c6b905
Show file tree
Hide file tree
Showing 6 changed files with 298 additions and 297 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
env:
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: true
- run: npm test
- run: npm run check
windows:
runs-on: windows-latest
steps:
Expand Down
3 changes: 2 additions & 1 deletion lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ import { YargsParser } from './yargs-parser.js'
// See https://github.com/yargs/yargs-parser#supported-nodejs-versions for our
// version support policy. The YARGS_MIN_NODE_VERSION is used for testing only.
const minNodeVersion = (process && process.env && process.env.YARGS_MIN_NODE_VERSION)
? Number(process.env.YARGS_MIN_NODE_VERSION) : 10
? Number(process.env.YARGS_MIN_NODE_VERSION)
: 10
if (process && process.version) {
const major = Number(process.version.match(/v([^.]+)/)![1])
if (major < minNodeVersion) {
Expand Down
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
"test:browser": "start-server-and-test 'serve ./ -p 8080' http://127.0.0.1:8080/package.json 'node ./test/browser/yargs-test.cjs'",
"pretest:typescript": "npm run pretest",
"test:typescript": "c8 mocha ./build/test/typescript/*.js",
"posttest": "npm run check",
"coverage": "c8 report --check-coverage",
"precompile": "rimraf build",
"compile": "tsc",
Expand Down Expand Up @@ -51,8 +50,8 @@
"@types/chai": "^4.2.11",
"@types/mocha": "^8.0.0",
"@types/node": "^10.0.3",
"@typescript-eslint/eslint-plugin": "^3.0.0",
"@typescript-eslint/parser": "^3.0.0",
"@typescript-eslint/eslint-plugin": "^3.10.1",
"@typescript-eslint/parser": "^3.10.1",
"@wessberg/rollup-plugin-ts": "^1.2.28",
"c8": "^7.3.0",
"chai": "^4.2.0",
Expand All @@ -67,7 +66,7 @@
"rollup": "^2.22.1",
"rollup-plugin-cleanup": "^3.1.1",
"serve": "^11.3.2",
"standardx": "^5.0.0",
"standardx": "^7.0.0",
"start-server-and-test": "^1.11.2",
"ts-transform-default-export": "^1.0.2",
"typescript": "^4.0.0"
Expand Down
2 changes: 1 addition & 1 deletion test/deno/yargs-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Deno.test('aliases', () => {

const jsonPath = './test/fixtures/config.json'
Deno.test('should load options and values from default config if specified', () => {
var argv = parser(['--foo', 'bar'], {
const argv = parser(['--foo', 'bar'], {
alias: {
z: 'zoom'
},
Expand Down
4 changes: 2 additions & 2 deletions test/typescript/tokenize-arg-string.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ describe('TokenizeArgString', function () {
})

it('handles quoted string with embedded quotes', function () {
var args = tokenizeArgString('--foo "hello \'world\'" --bar=\'foo "bar"\'')
const args = tokenizeArgString('--foo "hello \'world\'" --bar=\'foo "bar"\'')
strictEqual(args[0], '--foo')
strictEqual(args[1], '"hello \'world\'"')
strictEqual(args[2], '--bar=\'foo "bar"\'')
Expand Down Expand Up @@ -117,7 +117,7 @@ describe('TokenizeArgString', function () {
})

it('handles array with quoted string with embedded quotes', function () {
var args = tokenizeArgString(['--foo', '"hello \'world\'"', '--bar=\'foo "bar"\''])
const args = tokenizeArgString(['--foo', '"hello \'world\'"', '--bar=\'foo "bar"\''])
strictEqual(args[0], '--foo')
strictEqual(args[1], '"hello \'world\'"')
strictEqual(args[2], '--bar=\'foo "bar"\'')
Expand Down
Loading

0 comments on commit 2c6b905

Please sign in to comment.