Comparing version 1.0.1 to 1.0.2
{ | ||
"env": { | ||
"es6": true, | ||
"jest": true, | ||
"node": true | ||
}, | ||
"extends": [ "eslint:recommended", | ||
"plugin:jest/recommended" ], | ||
"parserOptions": { | ||
"ecmaVersion": 8, | ||
"sourceType": "script" | ||
}, | ||
"plugins": ["jest"], | ||
"reportUnusedDisableDirectives": true, | ||
"rules": { | ||
"array-bracket-spacing": "warn", | ||
"array-callback-return": "warn", | ||
"block-scoped-var": 1, | ||
"block-spacing": "warn", | ||
"brace-style": ["warn", "stroustrup"], | ||
"camelcase": ["warn", { "properties": "never" }], | ||
"comma-spacing": ["error", { "before": false, "after": true }], | ||
"complexity": ["warn", 20], | ||
"computed-property-spacing": ["warn", "never"], | ||
"curly": "warn", | ||
"default-case": "warn", | ||
"default-param-last": "error", | ||
"eqeqeq": ["error", "always"], | ||
"func-call-spacing": ["warn", "never"], | ||
"indent": ["error", 4, { "SwitchCase": 1 }], | ||
"key-spacing": "warn", | ||
"keyword-spacing": ["warn", { "before": true, "after": true }], | ||
"max-depth": ["error", { "max": 5 }], | ||
"max-nested-callbacks": ["error", { "max": 10 }], | ||
"new-parens": "error", | ||
"no-alert": "error", | ||
"no-array-constructor": "error", | ||
"no-console": "off", | ||
"no-div-regex": "error", | ||
"no-duplicate-imports": "error", | ||
"no-else-return": "warn", | ||
"no-eq-null": "error", | ||
"no-eval": "error", | ||
"no-extra-bind": "error", | ||
"no-fallthrough": "error", | ||
"no-implicit-globals": "off", | ||
"no-implied-eval": "error", | ||
"no-lone-blocks": "error", | ||
"no-lonely-if": "error", | ||
"no-loop-func": "error", | ||
"no-magic-numbers": [ "error", { "ignore": [ -1, 0, 1 ] } ], | ||
"no-mixed-spaces-and-tabs": "warn", | ||
"no-multi-assign": "error", | ||
"no-multi-spaces": "error", | ||
"no-multi-str": "error", | ||
"no-new": "error", | ||
"no-new-object": "error", | ||
"no-param-reassign": ["error", { "props": false }], | ||
"no-path-concat": "error", | ||
"no-return-assign": "error", | ||
"no-return-await": "error", | ||
"no-script-url": "error", | ||
"no-self-compare": "error", | ||
"no-sequences": "error", | ||
"no-template-curly-in-string": "error", | ||
"no-throw-literal": "error", | ||
"no-trailing-spaces": "warn", | ||
"no-use-before-define": ["error", { "functions": false }], | ||
"no-useless-concat": "error", | ||
"no-useless-return": "error", | ||
"no-var": "error", | ||
"no-warning-comments": "error", | ||
"no-whitespace-before-property": "error", | ||
"operator-assignment": "warn", | ||
"prefer-const": "error", | ||
"prefer-regex-literals": "error", | ||
"quotes": ["error", "single"], | ||
"require-await": "error", | ||
"semi": ["error", "always"], | ||
"semi-spacing": "error", | ||
"space-before-blocks": ["warn", "always"], | ||
"space-before-function-paren": ["warn", "never"], | ||
"space-in-parens": ["warn", "never"], | ||
"spaced-comment": ["warn", "always"], | ||
"strict": "error", | ||
"wrap-iife": "error", | ||
"yoda": "error", | ||
"jest/consistent-test-it": ["error", {"fn": "it", "withinDescribe": "it"}], | ||
"jest/lowercase-name": "error", | ||
"jest/no-duplicate-hooks": "error", | ||
"jest/no-commented-out-tests": "warn", | ||
"jest/no-empty-title": "warn", | ||
"jest/no-export": "error", | ||
"jest/no-if": "warn", | ||
"jest/no-mocks-import": "error", | ||
"jest/no-test-callback": "error", | ||
"jest/no-truthy-falsy": "warn", | ||
"jest/no-try-expect": "error", | ||
"jest/prefer-called-with": "warn", | ||
"jest/prefer-strict-equal": "warn", | ||
"jest/prefer-to-be-null": "warn", | ||
"jest/prefer-to-be-undefined": "warn", | ||
"jest/prefer-to-contain": "warn", | ||
"jest/prefer-to-have-length": "warn", | ||
"jest/prefer-todo": "warn", | ||
"jest/require-top-level-describe": "error", | ||
"jest/require-tothrow-message": "error" | ||
}, | ||
"extends": [ | ||
"@aarongoldenthal/eslint-config-standard", | ||
"@aarongoldenthal/eslint-config-standard/jest-config" | ||
], | ||
"root": true | ||
} | ||
} |
# Changelog | ||
## v1.0.2 (2019-11-17) | ||
### Fixed | ||
- Updated to latest dependencies to resolve vulnerabilities | ||
### Miscellaneous | ||
- Updated project to use custom eslint configuration module (#9) | ||
## v1.0.1 (2019-10-23) | ||
@@ -9,5 +19,4 @@ | ||
## v1.0.0 (2019-06-16) | ||
Initial release |
{ | ||
"name": "ci-logger", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Very simple logger for CI environments.", | ||
@@ -9,3 +9,5 @@ "main": "index.js", | ||
"test": "jest --ci", | ||
"lint": "eslint **/*.js" | ||
"lint-md": "markdownlint **/*.md --ignore node_modules", | ||
"lint-js": "eslint **/*.js", | ||
"lint": "npm run lint-md && npm run lint-js" | ||
}, | ||
@@ -28,6 +30,8 @@ "repository": { | ||
"devDependencies": { | ||
"@aarongoldenthal/eslint-config-standard": "^1.2.1", | ||
"eslint": "^6.5.1", | ||
"eslint-plugin-jest": "^22.19.0", | ||
"eslint-plugin-jest": "^23.0.4", | ||
"jest": "^24.9.0", | ||
"jest-junit": "^8.0.0" | ||
"jest-junit": "^9.0.0", | ||
"markdownlint-cli": "^0.19.0" | ||
}, | ||
@@ -43,13 +47,13 @@ "jest": { | ||
[ | ||
"jest-junit", | ||
{ | ||
"suiteNameTemplate": "{filename}", | ||
"classNameTemplate": "{classname}", | ||
"titleTemplate": "{title}" | ||
} | ||
"jest-junit", | ||
{ | ||
"suiteNameTemplate": "{filename}", | ||
"classNameTemplate": "{classname}", | ||
"titleTemplate": "{title}" | ||
} | ||
] | ||
], | ||
"verbose": true, | ||
], | ||
"verbose": true, | ||
"testEnvironment": "node" | ||
} | ||
} |
@@ -5,3 +5,2 @@ # CI Logger | ||
## Usage | ||
@@ -25,2 +24,3 @@ | ||
The `log` method must be passed an object with the following possible properties: | ||
- The `message` property contains the message to be logged and is the only required property. It can be any value except `undefined` or `null`. | ||
@@ -27,0 +27,0 @@ - The `level` enumeration, exposed by the module, has three possible values: `levels.info`, `levels.warn`, and `levels.error`. The default value is `levels.info`. |
@@ -16,2 +16,4 @@ 'use strict'; | ||
/* Test calls function with assertions */ | ||
/* eslint-disable jest/expect-expect */ | ||
it('should throw an error if value is undefined', () => { | ||
@@ -48,5 +50,7 @@ testThrowsError(undefined, msg); | ||
}); | ||
/* eslint-enable jest/expect-expect */ | ||
}); | ||
describe('is object', () => { | ||
const testThrowsError = (data, msg) => { | ||
@@ -60,2 +64,4 @@ expect(() => validate.isObject(data, msg)).toThrow(msg); | ||
/* Test calls function with assertions */ | ||
/* eslint-disable jest/expect-expect */ | ||
it('should throw an error if value is undefined', () => { | ||
@@ -92,2 +98,3 @@ testThrowsError(undefined, msg); | ||
}); | ||
/* eslint-enable jest/expect-expect */ | ||
}); |
@@ -14,2 +14,4 @@ 'use strict'; | ||
/* Test calls function with assertions */ | ||
/* eslint-disable jest/expect-expect */ | ||
it('should return value for a true value', () => { | ||
@@ -46,2 +48,3 @@ testReturnsValue(true, false); | ||
}); | ||
/* eslint-enable jest/expect-expect */ | ||
}); | ||
@@ -60,2 +63,4 @@ | ||
/* Test calls function with assertions */ | ||
/* eslint-disable jest/expect-expect */ | ||
it('should return value for a positive integer', () => { | ||
@@ -92,2 +97,3 @@ testReturnsValue(10, defaultInteger); // eslint-disable-line no-magic-numbers | ||
}); | ||
/* eslint-enable jest/expect-expect */ | ||
}); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
29494
14
6
399