@arg-def/mapper-js
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -12,5 +12,6 @@ module.exports = { | ||
'plugin:import/typescript', | ||
'plugin:jest/recommended', | ||
'eslint-config-prettier', | ||
], | ||
plugins: ['@typescript-eslint', 'prettier', 'filenames'], | ||
plugins: ['@typescript-eslint', 'prettier', 'filenames', 'jest'], | ||
parserOptions: { | ||
@@ -20,9 +21,13 @@ ecmaVersion: 2018, | ||
ecmaFeatures: { | ||
"jsx": false | ||
} | ||
jsx: false, | ||
}, | ||
}, | ||
rules: { | ||
'array-callback-return': 'error', | ||
'block-scoped-var': 'error', | ||
camelcase: ['error', { properties: 'always' }], | ||
'consistent-return': 'off', | ||
"filenames/match-regex": ['error', '^[a-z0-9-]+?$', true], | ||
"filenames/match-exported": ['error', 'kebab', null, true ], | ||
'default-case': 'error', | ||
'filenames/match-regex': ['error', '^[a-z0-9-]+(.test)?$', true], | ||
'filenames/match-exported': ['error', 'kebab', null, true], | ||
'filenames/no-index': 'off', | ||
@@ -74,2 +79,9 @@ // https://github.com/benmosher/eslint-plugin-import/tree/master/docs/rules | ||
'import/no-useless-path-segments': 'off', | ||
'max-depth': ['error', 4], | ||
'max-len': ['error', { code: 120, tabWidth: 2, comments: 120 }], | ||
'no-template-curly-in-string': 'error', | ||
'no-plusplus': 'error', | ||
'no-duplicate-imports': 'error', | ||
'prefer-rest-params': 'error', | ||
'no-unused-vars': 'error', | ||
'no-cond-assign': ['error', 'except-parens'], | ||
@@ -86,3 +98,3 @@ 'prettier/prettier': ['error'], | ||
'@typescript-eslint/no-explicit-any': [ | ||
'warn', | ||
'error', | ||
{ | ||
@@ -95,8 +107,8 @@ ignoreRestArgs: true, | ||
{ | ||
files: ['src/**/**.scss.d.ts'], | ||
files: ['src/**/**.test.ts'], | ||
rules: { | ||
'@typescript-eslint/interface-name-prefix': 'off', | ||
}, | ||
}, | ||
'@typescript-eslint/explicit-function-return-type': 'off' | ||
} | ||
} | ||
], | ||
}; |
@@ -5,2 +5,9 @@ # Changelog | ||
### 0.1.2 (2019-10-05) | ||
### Features | ||
* **mapper-js:** initial commit ([8f20ccb](https://github.com/arg-def/mapper-js/commit/8f20ccb)) | ||
### 0.1.1 (2019-09-29) | ||
@@ -7,0 +14,0 @@ |
"use strict"; | ||
require("core-js/modules/es.symbol"); | ||
require("core-js/modules/es.symbol.description"); | ||
require("core-js/modules/es.object.to-string"); | ||
require("core-js/modules/web.dom-collections.for-each"); | ||
Object.defineProperty(exports, "__esModule", { | ||
@@ -12,0 +4,0 @@ value: true |
"use strict"; | ||
require("core-js/modules/es.symbol"); | ||
require("core-js/modules/es.symbol.description"); | ||
require("core-js/modules/es.symbol.iterator"); | ||
require("core-js/modules/es.array.iterator"); | ||
require("core-js/modules/es.object.to-string"); | ||
require("core-js/modules/es.string.iterator"); | ||
require("core-js/modules/web.dom-collections.iterator"); | ||
Object.defineProperty(exports, "__esModule", { | ||
@@ -18,0 +4,0 @@ value: true |
{ | ||
"name": "@arg-def/mapper-js", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Fast, reliable and intuitive object mapping.", | ||
@@ -15,3 +15,3 @@ "main": "lib/index.js", | ||
"commit": "npx git-cz", | ||
"build": "npm run clean && babel src -d lib --extensions '.ts' && tsc --declaration --emitDeclarationOnly", | ||
"build": "npm run clean && babel src -d lib --extensions '.ts' --ignore '**/*.test.ts' && tsc --declaration --emitDeclarationOnly", | ||
"clean": "rm -rf lib", | ||
@@ -21,4 +21,4 @@ "test": "jest --no-cache", | ||
"test:coverage": "jest --coverage", | ||
"lint": "eslint --ext ts src || exit 0", | ||
"lint:fix": "npm run lint:js -- --fix || exit 0", | ||
"lint": "eslint './src/**/*.ts' || exit 0", | ||
"lint:fix": "npm run lint -- --fix || exit 0", | ||
"prettier": "prettier -c --write 'src/**/*'" | ||
@@ -66,2 +66,3 @@ }, | ||
"eslint-plugin-import": "^2.18.2", | ||
"eslint-plugin-jest": "^22.17.0", | ||
"eslint-plugin-jsx-a11y": "^6.2.3", | ||
@@ -77,4 +78,3 @@ "eslint-plugin-prettier": "^3.1.1", | ||
"dependencies": { | ||
"@arg-def/dot-notation": "^0.1.2", | ||
"core-js": "^3.2.1" | ||
"@arg-def/dot-notation": "^0.1.3" | ||
}, | ||
@@ -81,0 +81,0 @@ "config": { |
@@ -7,3 +7,3 @@ import toArray from './to-array'; | ||
expect(toArray(source)).toStrictEqual([source]) | ||
expect(toArray(source)).toStrictEqual([source]); | ||
}); | ||
@@ -14,4 +14,4 @@ | ||
expect(toArray(source)).toStrictEqual(source) | ||
}) | ||
}); | ||
expect(toArray(source)).toStrictEqual(source); | ||
}); | ||
}); |
@@ -14,3 +14,3 @@ { | ||
}, | ||
"exclude": ["node_modules"] | ||
"exclude": ["node_modules", "**/*.test.ts"] | ||
} |
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
1
1386624
30
34
483
- Removedcore-js@^3.2.1
- Removedcore-js@3.39.0(transitive)
Updated@arg-def/dot-notation@^0.1.3