@koober/mrm-preset
Advanced tools
Comparing version 1.28.1 to 1.29.0
@@ -6,2 +6,19 @@ # Change Log | ||
# [1.29.0](https://gitlab.com/koober-sas/project-config/compare/@koober/mrm-preset@1.28.1...@koober/mrm-preset@1.29.0) (2021-08-11) | ||
### Bug Fixes | ||
* **mrm:** fix command develop to load dotenv ([9116972](https://gitlab.com/koober-sas/project-config/commit/9116972654925c47c0e4a37227b647a39503073d)) | ||
### Features | ||
* **eslint-config:** add recommended settings for typescript ([cb13c21](https://gitlab.com/koober-sas/project-config/commit/cb13c2130f24039079776c9e80477806ab5c8bcd)) | ||
* **mrm-preset:** add default cspell task ([f654dfc](https://gitlab.com/koober-sas/project-config/commit/f654dfc11c6f45780b13a113b332bf49759c7edd)) | ||
## [1.28.1](https://gitlab.com/koober-sas/project-config/compare/@koober/mrm-preset@1.28.0...@koober/mrm-preset@1.28.1) (2021-07-27) | ||
@@ -8,0 +25,0 @@ |
@@ -13,2 +13,3 @@ { | ||
"eslint", | ||
"cspell", | ||
"jest", | ||
@@ -15,0 +16,0 @@ "renovate", |
const { json } = require('mrm-core'); | ||
const pkg = require('./pkg'); | ||
const npm = require('./npm'); | ||
/** | ||
* @typedef {{ | ||
* version: '0.1', | ||
* language: string, | ||
* words?: string[], | ||
* flagWords?: string[], | ||
* ignorePaths?: string[], | ||
* ignoreWords?: string[], | ||
* ignoreRegExpList?: string[], | ||
* import?: string[] | ||
* }} CSpellConfig | ||
*/ | ||
/** | ||
* @param {{ | ||
* state: 'present'|'absent' | ||
* update?: (config: CSpellConfig) => CSpellConfig | ||
* }} options | ||
*/ | ||
function cspell({ state }) { | ||
function cspell({ state, update }) { | ||
const hasCSpell = state === 'present'; | ||
@@ -32,14 +44,5 @@ | ||
if (hasCSpell) { | ||
cSpellFile.merge({ | ||
ignorePaths: [ | ||
'**/build/**', | ||
'**/lib/**', | ||
'**/node_modules/**', | ||
'**/package.json', | ||
'**/package-lock.json', | ||
'**/yarn.lock', | ||
'**/*.log', | ||
'**/CHANGELOG.md', | ||
], | ||
}); | ||
if (update) { | ||
cSpellFile.set(update(cSpellFile.get())); | ||
} | ||
@@ -46,0 +49,0 @@ /** |
{ | ||
"rules": { | ||
"import/no-extraneous-dependencies": "off" | ||
"import/no-extraneous-dependencies": "off", | ||
"@typescript-eslint/no-unsafe-call": "off", | ||
"@typescript-eslint/no-unsafe-assignment": "off", | ||
"@typescript-eslint/no-unsafe-member-access": "off" | ||
} | ||
} |
@@ -56,3 +56,3 @@ /* eslint-disable no-process-env */ | ||
const pad = (num: number): string => { | ||
return (num > 9 ? '' : '0') + num; | ||
return (num > 9 ? '' : '0') + String(num); | ||
}; | ||
@@ -59,0 +59,0 @@ const generator = (time: number | Date, index?: number) => { |
@@ -17,3 +17,4 @@ import { compose } from '@hapi/glue'; | ||
if (require.main === module) { | ||
// eslint-disable-next-line @typescript-eslint/no-floating-promises | ||
main(); | ||
} |
@@ -84,3 +84,4 @@ const { join } = require('path'); | ||
name: project.develop, | ||
script: "NODE_ENV=development ts-node-dev --require='tsconfig-paths/register' -- ./src/index.ts", | ||
script: | ||
"NODE_ENV=development ts-node-dev --require='tsconfig-paths/register' -r dotenv/config -- ./src/index.ts dotenv_config_path=.env", | ||
state: 'present', | ||
@@ -87,0 +88,0 @@ }); |
@@ -5,2 +5,3 @@ export async function main(): Promise<void> { | ||
// eslint-disable-next-line @typescript-eslint/no-floating-promises | ||
main(); |
{ | ||
"name": "@koober/mrm-preset", | ||
"version": "1.28.1", | ||
"version": "1.29.0", | ||
"description": "Mrm configuration presets", | ||
@@ -50,3 +50,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "6601181a9eebf4e5e7f5040e95a1a15503e191cf" | ||
"gitHead": "99c95325933352ea41ab8126903982f17a24641e" | ||
} |
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
104520
63
2513