Skip to content

Commit

Permalink
Merge pull request #8 from bigman73/v1.2.3
Browse files Browse the repository at this point in the history
V1.3.0
  • Loading branch information
bigman73 authored Mar 16, 2020
2 parents c70a5c0 + 0fd706c commit dd20b73
Show file tree
Hide file tree
Showing 17 changed files with 2,572 additions and 1,824 deletions.
271 changes: 16 additions & 255 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,266 +1,27 @@
{
"env": {
"commonjs": true,
"es6": true,
"node": true
"node": true,
"mocha": true
},
"extends": [
"airbnb-base"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parser": "babel-eslint",

"parserOptions": {
"sourceType": "module",
"ecmaFeatures": {
"ecmaVersion": 2017,
"experimentalObjectRestSpread": false,
"jsx": false
}
"ecmaVersion": 2018
},
"rules": {
"accessor-pairs": "error",
"array-bracket-newline": "error",
"array-bracket-spacing": "error",
"array-callback-return": "error",
"array-element-newline": "off",
"arrow-body-style": "off",
"arrow-parens": "error",
"arrow-spacing": "error",
"block-scoped-var": "error",
"block-spacing": "error",
"brace-style": "error",
"callback-return": "error",
"camelcase": "error",
"capitalized-comments": "off",
"class-methods-use-this": "error",
"comma-dangle": "error",
"comma-spacing": [
"error",
{
"after": true,
"before": false
}
],
"comma-style": "error",
"complexity": "error",
"computed-property-spacing": "error",
"consistent-return": "error",
"consistent-this": "error",
"curly": "error",
"default-case": "error",
"dot-location": "error",
"dot-notation": [
"error",
{
"allowKeywords": true
}
],
"eol-last": "off",
"eqeqeq": "error",
"for-direction": "error",
"func-call-spacing": "error",
"func-name-matching": "error",
"func-names": [
"indent": [
"error",
"never"
4
],
"func-style": "error",
"function-paren-newline": "off",
"generator-star-spacing": "error",
"getter-return": "error",
"global-require": "error",
"guard-for-in": "error",
"handle-callback-err": "error",
"id-blacklist": "error",
"id-length": "off",
"id-match": "error",
"implicit-arrow-linebreak": "error",
"indent": "off",
"indent-legacy": "off",
"init-declarations": "error",
"jsx-quotes": "error",
"key-spacing": "error",
"keyword-spacing": "error",
"line-comment-position": "off",
"linebreak-style": [
"error",
"unix"
],
"lines-around-comment": "error",
"lines-around-directive": "error",
"lines-between-class-members": "error",
"max-depth": "error",
"max-len": "off",
"max-lines": "warn",
"max-nested-callbacks": "error",
"max-params": "off",
"max-statements": "off",
"max-statements-per-line": "error",
"multiline-comment-style": [
"warn",
"separate-lines"
],
"new-cap": ["error", { "properties": true }],
"new-parens": "error",
"newline-after-var": "off",
"newline-before-return": "error",
"newline-per-chained-call": "error",
"no-alert": "error",
"no-array-constructor": "error",
"no-await-in-loop": "error",
"no-bitwise": "error",
"no-buffer-constructor": "error",
"no-caller": "error",
"no-catch-shadow": "error",
"no-confusing-arrow": "error",
"no-continue": "error",
"no-div-regex": "error",
"no-duplicate-imports": "error",
"no-else-return": "error",
"no-empty-function": "error",
"no-eq-null": "error",
"no-eval": "error",
"no-extend-native": "error",
"no-extra-bind": "error",
"no-extra-label": "error",
"no-extra-parens": "error",
"no-floating-decimal": "error",
"no-implicit-coercion": "error",
"no-implicit-globals": "error",
"no-implied-eval": "error",
"no-inline-comments": "off",
"no-invalid-this": "error",
"no-iterator": "error",
"no-label-var": "error",
"no-labels": "error",
"no-lone-blocks": "error",
"no-lonely-if": "error",
"no-loop-func": "error",
"no-magic-numbers": "off",
"no-mixed-operators": "error",
"no-mixed-requires": "error",
"no-multi-assign": "error",
"no-multi-spaces": "error",
"no-multi-str": "error",
"no-multiple-empty-lines": "error",
"no-native-reassign": "error",
"no-negated-condition": "error",
"no-negated-in-lhs": "error",
"no-nested-ternary": "error",
"no-new": "error",
"no-new-func": "error",
"no-new-object": "error",
"no-new-require": "error",
"no-new-wrappers": "error",
"no-octal-escape": "error",
"no-param-reassign": "error",
"no-path-concat": "off",
"no-plusplus": "off",
"no-process-env": "error",
"no-process-exit": "error",
"no-proto": "error",
"no-prototype-builtins": "error",
"no-restricted-globals": "error",
"no-restricted-imports": "error",
"no-restricted-modules": "error",
"no-restricted-properties": "error",
"no-restricted-syntax": "error",
"no-return-assign": "error",
"no-return-await": "error",
"no-script-url": "error",
"no-self-compare": "error",
"no-sequences": "error",
"no-shadow": "error",
"no-shadow-restricted-names": "error",
"no-spaced-func": "error",
"no-sync": "error",
"no-tabs": "off",
"no-template-curly-in-string": "error",
"no-ternary": "off",
"no-throw-literal": "error",
"no-trailing-spaces": "error",
"no-undef-init": "error",
"no-undefined": "error",
"no-underscore-dangle": "off",
"no-unmodified-loop-condition": "error",
"no-unneeded-ternary": "error",
"no-unused-expressions": "error",
"no-unused-vars": "warn",
"no-use-before-define": "error",
"no-useless-call": "error",
"no-useless-computed-key": "error",
"no-useless-concat": "error",
"no-useless-constructor": "error",
"no-useless-rename": "error",
"no-useless-return": "error",
"no-var": "off",
"no-void": "error",
"no-warning-comments": "off",
"no-whitespace-before-property": "error",
"no-with": "error",
"nonblock-statement-body-position": "error",
"object-curly-newline": "off",
"object-curly-spacing": "off",
"object-property-newline": "off",
"object-shorthand": "error",
"one-var": "off",
"one-var-declaration-per-line": "error",
"operator-assignment": "error",
"operator-linebreak": "error",
"padded-blocks": "off",
"padding-line-between-statements": "error",
"prefer-arrow-callback": "off",
"prefer-const": ["error", {
"destructuring": "any",
"ignoreReadBeforeAssign": false
}],
"prefer-destructuring": "off",
"prefer-numeric-literals": "error",
"prefer-promise-reject-errors": "error",
"prefer-reflect": "error",
"prefer-rest-params": "error",
"prefer-spread": "error",
"prefer-template": "off",
"quote-props": "off",
"quotes": "off",
"radix": "error",
"require-await": "error",
"require-jsdoc": "warn",
"rest-spread-spacing": "error",
"semi": "off",
"semi-spacing": "error",
"semi-style": [
"error",
"last"
],
"sort-imports": "error",
"sort-keys": "off",
"sort-vars": "off",
"space-before-blocks": "error",
"space-before-function-paren": "off",
"space-in-parens": [
"error",
"never"
],
"space-infix-ops": "error",
"space-unary-ops": "error",
"spaced-comment": "off",
"strict": "error",
"switch-colon-spacing": "error",
"symbol-description": "error",
"template-curly-spacing": [
"error",
"never"
],
"template-tag-spacing": "error",
"unicode-bom": [
"error",
"never"
],
"valid-jsdoc": "off",
"vars-on-top": "off",
"wrap-iife": "error",
"wrap-regex": "error",
"yield-star-spacing": "error",
"yoda": [
"error",
"never"
]
"comma-dangle": ["error", "never"],
"no-restricted-syntax": "off",
"no-underscore-dangle": "off"
}
}
13 changes: 8 additions & 5 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{
"workbench.colorCustomizations": {
"titleBar.activeBackground": "#5994f3",
"titleBar.activeForeground": "#ffffff"
}
{
"workbench.colorCustomizations": {
"titleBar.activeBackground": "#5994f3",
"titleBar.activeForeground": "#ffffff"
},
"cSpell.words": [
"CODEOWNERS"
]
}
77 changes: 42 additions & 35 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,35 +1,42 @@
# Changelog
All notable changes to this project will be documented in this file.

## [Released]

## [1.2.2] - 2019-11-03

### Changed
- ESLint Code quality improved


## [1.2.1] - 2019-10-27

### Added
- CODEOWNERS file
- npm test - runs all mocha tests

### Changed
- Updated npm dependencies: glob


## [1.2.0] - 2019-09-14

### Added
- Change log file, CHANGELOG.md

### Changed
- Lean npm deployment, deployment only mandatory source code, excluding unit tests and demos
- Improved documentation of how to perform unit testing

## [1.1.3] - 2019-07-13

### Changed
- lodash updated to latest version - 4.7.14, removing a security vulnerability
- Improved documentation
# Changelog
All notable changes to this project will be documented in this file.

## [Released]

## [1.3.0] - 2020-03-15

### Changed
- Fixed eslint configuration (removed babel-eslint), fixed eslint errors
- Updated npm dependencies: glob, eslint, jsonschema, mocha, fs-extra


## [1.2.2] - 2019-11-03

### Changed
- ESLint Code quality improved


## [1.2.1] - 2019-10-27

### Added
- CODEOWNERS file
- npm test - runs all mocha tests

### Changed
- Updated npm dependencies: glob


## [1.2.0] - 2019-09-14

### Added
- Change log file, CHANGELOG.md

### Changed
- Lean npm deployment, deployment only mandatory source code, excluding unit tests and demos
- Improved documentation of how to perform unit testing

## [1.1.3] - 2019-07-13

### Changed
- lodash updated to latest version - 4.7.14, removing a security vulnerability
- Improved documentation
6 changes: 2 additions & 4 deletions common.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ const fastClone = require('fast-clone');
* Clones an object (using fast clone)
* @param {*} obj source object o clone
*/
const cloneObject = (obj) => {
return fastClone(obj);
};
const cloneObject = (obj) => fastClone(obj);

/**
* Removes a file only if it exists
Expand All @@ -22,4 +20,4 @@ const safeRemoveFile = async (filename) => {
module.exports = {
cloneObject,
safeRemoveFile
};
};
Loading

0 comments on commit dd20b73

Please sign in to comment.