From ce81cbee9bfc00ebd0abbc70932e3eeab84b159e Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Mon, 17 Oct 2022 14:44:42 -0700 Subject: [PATCH] [eclint] fix editorconfig See #583 --- .editorconfig | 2 +- index.js | 4 +- package.json | 250 +++++++++++++++++++++++++------------------------- 3 files changed, 128 insertions(+), 128 deletions(-) diff --git a/.editorconfig b/.editorconfig index 32f9d03c..d499d966 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,7 +1,7 @@ root = true [*] -indent_style = space +indent_style = tab indent_size = 4 end_of_line = lf charset = utf-8 diff --git a/index.js b/index.js index 82f94ad8..cff5aba4 100644 --- a/index.js +++ b/index.js @@ -7,9 +7,9 @@ var createResult = require('./lib/results'); var through = require('through'); var canEmitExit = typeof process !== 'undefined' && process - && typeof process.on === 'function' && process.browser !== true; + && typeof process.on === 'function' && process.browser !== true; var canExit = typeof process !== 'undefined' && process - && typeof process.exit === 'function'; + && typeof process.exit === 'function'; module.exports = (function () { var wait = false; diff --git a/package.json b/package.json index f1e82157..47ca0eec 100644 --- a/package.json +++ b/package.json @@ -1,127 +1,127 @@ { - "name": "tape", - "version": "5.6.1", - "description": "tap-producing test harness for node and browsers", - "main": "index.js", - "browser": { - "fs": false - }, - "exports": { - ".": [ - { - "default": "./index.js" - }, - "./index.js" - ], - "./lib/default_stream": "./lib/default_stream.js", - "./lib/results": "./lib/results.js", - "./lib/test": "./lib/test.js", - "./package": "./package.json", - "./package.json": "./package.json" - }, - "bin": "./bin/tape", - "directories": { - "example": "example", - "test": "test" - }, - "dependencies": { - "array.prototype.every": "^1.1.3", - "call-bind": "^1.0.2", - "deep-equal": "^2.0.5", - "defined": "^1.0.0", - "dotignore": "^0.1.2", - "for-each": "^0.3.3", - "get-package-type": "^0.1.0", - "glob": "^7.2.3", - "has": "^1.0.3", - "has-dynamic-import": "^2.0.1", - "inherits": "^2.0.4", - "is-regex": "^1.1.4", - "minimist": "^1.2.6", - "object-inspect": "^1.12.2", - "object-is": "^1.1.5", - "object-keys": "^1.1.1", - "object.assign": "^4.1.4", - "resolve": "^2.0.0-next.3", - "resumer": "^0.0.0", - "string.prototype.trim": "^1.2.6", - "through": "^2.3.8" - }, - "devDependencies": { - "@ljharb/eslint-config": "^21.0.0", - "array.prototype.flatmap": "^1.3.0", - "aud": "^2.0.0", - "auto-changelog": "^2.4.0", - "concat-stream": "^1.6.2", - "eclint": "^2.8.1", - "ecstatic": "^4.1.4", - "es-value-fixtures": "^1.4.2", - "eslint": "=8.8.0", - "falafel": "^2.2.5", - "js-yaml": "^3.14.0", - "npm-run-posix-or-windows": "^2.0.2", - "npmignore": "^0.3.0", - "safe-publish-latest": "^2.0.0", - "tap": "^8.0.1", - "tap-parser": "^5.4.0" - }, - "scripts": { - "prepack": "npmignore --auto --commentLines=autogenerated", - "version": "auto-changelog && git add CHANGELOG.md", - "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"", - "prepublishOnly": "safe-publish-latest", - "prepublish": "!(type not-in-publish) || not-in-publish || npm run prepublishOnly", - "prelint:files": "git ls-files 2>/dev/null | xargs find 2> /dev/null | grep -vE 'node_modules|\\.git' || echo '*.md *.js test/*.js'", - "eclint": "FILES=\"$(npm run --silent prelint:files)\" eclint check \"${FILES:=package.json}\"", - "eclint:windows": "eclint check *.js", - "prelint": "npm-run-posix-or-windows eclint", - "lint": "eslint --ext .js,.cjs,.mjs . bin/*", - "pretest": "npm run lint", - "test": "npm run tests-only", - "posttest": "aud --production", - "tests-only": "nyc tap 'test/*.js'", - "test:example": "find example -name '*.js' | grep -v fail | grep -v static | xargs tap" - }, - "testling": { - "files": "test/browser/*.js", - "browsers": [ - "ie/6..latest", - "chrome/20..latest", - "firefox/10..latest", - "safari/latest", - "opera/11.0..latest", - "iphone/6", - "ipad/6" - ] - }, - "repository": { - "type": "git", - "url": "git://github.com/ljharb/tape.git" - }, - "homepage": "https://github.com/ljharb/tape", - "keywords": [ - "tap", - "test", - "harness", - "assert", - "browser" - ], - "author": "Jordan Harband ", - "funding": { - "url": "https://github.com/sponsors/ljharb" - }, - "license": "MIT", - "auto-changelog": { - "output": "CHANGELOG.md", - "template": "keepachangelog", - "unreleased": false, - "commitLimit": false, - "backfillLimit": false, - "hideCredit": true - }, - "publishConfig": { - "ignore": [ - ".github/workflows" - ] - } + "name": "tape", + "version": "5.6.1", + "description": "tap-producing test harness for node and browsers", + "main": "index.js", + "browser": { + "fs": false + }, + "exports": { + ".": [ + { + "default": "./index.js" + }, + "./index.js" + ], + "./lib/default_stream": "./lib/default_stream.js", + "./lib/results": "./lib/results.js", + "./lib/test": "./lib/test.js", + "./package": "./package.json", + "./package.json": "./package.json" + }, + "bin": "./bin/tape", + "directories": { + "example": "example", + "test": "test" + }, + "dependencies": { + "array.prototype.every": "^1.1.3", + "call-bind": "^1.0.2", + "deep-equal": "^2.0.5", + "defined": "^1.0.0", + "dotignore": "^0.1.2", + "for-each": "^0.3.3", + "get-package-type": "^0.1.0", + "glob": "^7.2.3", + "has": "^1.0.3", + "has-dynamic-import": "^2.0.1", + "inherits": "^2.0.4", + "is-regex": "^1.1.4", + "minimist": "^1.2.6", + "object-inspect": "^1.12.2", + "object-is": "^1.1.5", + "object-keys": "^1.1.1", + "object.assign": "^4.1.4", + "resolve": "^2.0.0-next.3", + "resumer": "^0.0.0", + "string.prototype.trim": "^1.2.6", + "through": "^2.3.8" + }, + "devDependencies": { + "@ljharb/eslint-config": "^21.0.0", + "array.prototype.flatmap": "^1.3.0", + "aud": "^2.0.0", + "auto-changelog": "^2.4.0", + "concat-stream": "^1.6.2", + "eclint": "^2.8.1", + "ecstatic": "^4.1.4", + "es-value-fixtures": "^1.4.2", + "eslint": "=8.8.0", + "falafel": "^2.2.5", + "js-yaml": "^3.14.0", + "npm-run-posix-or-windows": "^2.0.2", + "npmignore": "^0.3.0", + "safe-publish-latest": "^2.0.0", + "tap": "^8.0.1", + "tap-parser": "^5.4.0" + }, + "scripts": { + "prepack": "npmignore --auto --commentLines=autogenerated", + "version": "auto-changelog && git add CHANGELOG.md", + "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"", + "prepublishOnly": "safe-publish-latest", + "prepublish": "!(type not-in-publish) || not-in-publish || npm run prepublishOnly", + "prelint:files": "git ls-files 2>/dev/null | xargs find 2> /dev/null | grep -vE 'node_modules|\\.git' || echo '*.md *.js test/*.js'", + "eclint": "FILES=\"$(npm run --silent prelint:files)\" eclint check \"${FILES:=package.json}\"", + "eclint:windows": "eclint check *.js", + "prelint": "npm-run-posix-or-windows eclint", + "lint": "eslint --ext .js,.cjs,.mjs . bin/*", + "pretest": "npm run lint", + "test": "npm run tests-only", + "posttest": "aud --production", + "tests-only": "nyc tap 'test/*.js'", + "test:example": "find example -name '*.js' | grep -v fail | grep -v static | xargs tap" + }, + "testling": { + "files": "test/browser/*.js", + "browsers": [ + "ie/6..latest", + "chrome/20..latest", + "firefox/10..latest", + "safari/latest", + "opera/11.0..latest", + "iphone/6", + "ipad/6" + ] + }, + "repository": { + "type": "git", + "url": "git://github.com/ljharb/tape.git" + }, + "homepage": "https://github.com/ljharb/tape", + "keywords": [ + "tap", + "test", + "harness", + "assert", + "browser" + ], + "author": "Jordan Harband ", + "funding": { + "url": "https://github.com/sponsors/ljharb" + }, + "license": "MIT", + "auto-changelog": { + "output": "CHANGELOG.md", + "template": "keepachangelog", + "unreleased": false, + "commitLimit": false, + "backfillLimit": false, + "hideCredit": true + }, + "publishConfig": { + "ignore": [ + ".github/workflows" + ] + } }