Skip to content

Commit

Permalink
build(deps-dev): use @flex-development/nest-commander in lieu of nest…
Browse files Browse the repository at this point in the history
  • Loading branch information
unicornware committed Sep 9, 2023
1 parent 978ffe9 commit 6624182
Show file tree
Hide file tree
Showing 84 changed files with 6,416 additions and 5,855 deletions.
4 changes: 2 additions & 2 deletions .codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,9 @@ ignore:
- '**/__mocks__/**'
- '**/__tests__/**'
- '**/index.ts'
- src/interfaces/
- '**/interfaces/'
- '**/types/'
- src/plugins/**/options.ts
- src/types/

profiling:
critical_files_paths:
Expand Down
5 changes: 5 additions & 0 deletions .dictionary.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,24 @@ ardatan
atoi
attw
bdougie
booleanish
cefc
codecov
commitish
commitlintrc
dedupe
defu
dequal
dessant
dists
dohm
emojify
esbuild
evanw
fbca
ggshield
gpgsign
groupby
hmarr
iife
infile
Expand All @@ -36,6 +40,7 @@ onrequest
pathe
pkgs
preid
swcrc
toodles
tribonacci
tscu
Expand Down
2 changes: 1 addition & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
**/*.snap
**/*config.*.timestamp*
**/.DS_Store
**/.temp/
**/__tests__/report.json
**/coverage/
**/.temp/
**/dist/
**/node_modules/
**/tsconfig*temp.json
Expand Down
79 changes: 53 additions & 26 deletions .eslintrc.base.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,8 @@ const config = {
2,
{
ignoreConditionalTests: true,
ignoreMixedLogicalExpressions: true
ignoreMixedLogicalExpressions: true,
ignorePrimitives: { string: true }
}
],
'@typescript-eslint/prefer-optional-chain': 2,
Expand Down Expand Up @@ -376,7 +377,7 @@ const config = {
{
allowAny: false,
allowNullableBoolean: true,
allowNullableNumber: false,
allowNullableNumber: true,
allowNullableObject: true,
allowNullableString: true,
allowNumber: true,
Expand Down Expand Up @@ -594,6 +595,7 @@ const config = {
'no-return-await': 0,
'no-shadow': 0,
'no-sparse-arrays': 0,
'no-throw-literal': 0,
'no-unused-expressions': 0,
'no-unused-vars': 0,
'no-use-before-define': 0,
Expand Down Expand Up @@ -634,7 +636,7 @@ const config = {
'padding-line-between-statements': 0,
'prefer-arrow-callback': 0,
'promise/always-return': 2,
'promise/avoid-new': 2,
'promise/avoid-new': 0,
'promise/catch-or-return': [2, { allowFinally: true, allowThen: true }],
'promise/no-callback-in-promise': 2,
'promise/no-native': 0,
Expand All @@ -644,7 +646,7 @@ const config = {
'promise/no-return-in-finally': 2,
'promise/no-return-wrap': [2, { allowReject: false }],
'promise/param-names': 2,
'promise/prefer-await-to-callbacks': 2,
'promise/prefer-await-to-callbacks': 1,
'promise/prefer-await-to-then': 2,
'promise/valid-params': 2,
quotes: 0,
Expand Down Expand Up @@ -687,7 +689,6 @@ const config = {
2,
{
styles: {
chalk: { default: true },
shelljs: { default: true }
}
}
Expand All @@ -697,7 +698,7 @@ const config = {
'unicorn/no-array-callback-reference': 0,
'unicorn/no-array-for-each': 2,
'unicorn/no-array-method-this-argument': 2,
'unicorn/no-array-push-push': 2,
'unicorn/no-array-push-push': 0,
'unicorn/no-array-reduce': 0,
'unicorn/no-await-expression-member': 0,
'unicorn/no-console-spaces': 2,
Expand Down Expand Up @@ -802,6 +803,7 @@ const config = {
'jsdoc/no-undefined-types': 0,
'jsdoc/require-file-overview': 0,
'no-var': 0,
'unicorn/filename-case': 0,
'unicorn/no-keyword-prefix': 0
}
},
Expand Down Expand Up @@ -831,9 +833,9 @@ const config = {
chai: true,
describe: true,
expect: true,
faker: fs.existsSync('node_modules/@faker-js/faker/package.json'),
faker: fs.existsSync('node_modules/@faker-js/faker'),
it: true,
pf: fs.existsSync('node_modules/pretty-format/package.json'),
pf: fs.existsSync('node_modules/pretty-format'),
suite: true,
test: true,
vi: true,
Expand All @@ -845,7 +847,9 @@ const config = {
'@typescript-eslint/consistent-indexed-object-style': 0,
'@typescript-eslint/no-base-to-string': 0,
'@typescript-eslint/no-empty-function': 0,
'@typescript-eslint/no-invalid-void-type': 0,
'@typescript-eslint/no-unused-expressions': 0,
'@typescript-eslint/prefer-as-const': 0,
'@typescript-eslint/prefer-ts-expect-error': 0,
'@typescript-eslint/require-await': 0,
'@typescript-eslint/restrict-template-expressions': 0,
Expand Down Expand Up @@ -887,7 +891,8 @@ const config = {
{
files: ['**/decorators/*.constraint.ts', '**/*.decorator.ts'],
rules: {
'@typescript-eslint/ban-types': 0
'@typescript-eslint/ban-types': 0,
'@typescript-eslint/no-invalid-void-type': 0
}
},
{
Expand All @@ -898,11 +903,9 @@ const config = {
}
},
{
extends: ['plugin:@graphql-eslint/operations-all'],
files: '**/*.gql',
files: '**/*.+(cjs|js|mjs)',
rules: {
'@graphql-eslint/no-anonymous-operations': 0,
'@graphql-eslint/require-id-when-available': 0
'@typescript-eslint/explicit-member-accessibility': 0
}
},
{
Expand Down Expand Up @@ -938,6 +941,34 @@ const config = {
pathPattern: '^$'
}
],
'jsonc/sort-keys': [
2,
{
order: { caseSensitive: true, type: 'asc' },
pathPattern: '^$'
}
],
'jsonc/valid-json-number': 2,
'jsonc/vue-custom-block/no-parsing-error': 2
}
},
{
files: ['**/*.+(json5|jsonc)', 'tsconfig*.json'],
rules: {
'jsonc/no-comments': 0
}
},
{
extends: ['plugin:@graphql-eslint/operations-all'],
files: '**/*.gql',
rules: {
'@graphql-eslint/no-anonymous-operations': 0,
'@graphql-eslint/require-id-when-available': 0
}
},
{
files: ['**/package.json'],
rules: {
'jsonc/sort-keys': [
2,
{
Expand Down Expand Up @@ -970,20 +1001,8 @@ const config = {
'readme'
],
pathPattern: '^$'
},
{
order: { caseSensitive: true, type: 'asc' },
pathPattern: '^$'
}
],
'jsonc/valid-json-number': 2,
'jsonc/vue-custom-block/no-parsing-error': 2
}
},
{
files: ['**/*.+(json5|jsonc)', 'tsconfig*.json'],
rules: {
'jsonc/no-comments': 0
]
}
},
{
Expand All @@ -1010,6 +1029,7 @@ const config = {
'@typescript-eslint/no-misused-promises': 0,
'@typescript-eslint/no-mixed-enums': 0,
'@typescript-eslint/no-redundant-type-constituents': 0,
'@typescript-eslint/no-throw-literal': 0,
'@typescript-eslint/no-unnecessary-boolean-literal-compare': 0,
'@typescript-eslint/no-unnecessary-condition': 0,
'@typescript-eslint/no-unnecessary-qualifier': 0,
Expand Down Expand Up @@ -1051,6 +1071,7 @@ const config = {
plugins: ['yml'],
rules: {
'prettier/prettier': 0,
'spaced-comment': 0,
'yml/block-mapping': 2,
'yml/block-mapping-question-indicator-newline': [2, 'never'],
'yml/block-sequence': 2,
Expand Down Expand Up @@ -1157,6 +1178,12 @@ const config = {
rules: {
'yml/key-name-casing': 0
}
},
{
files: ['.vscode/launch.json'],
rules: {
'jsonc/sort-keys': 0
}
}
],
plugins: ['prettier'],
Expand Down
4 changes: 2 additions & 2 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ const config = {
overrides: [
...require('./.eslintrc.base.cjs').overrides,
{
files: ['config/changelog.config.ts'],
files: ['src/cli/app.module.ts'],
rules: {
'@typescript-eslint/require-await': 0
'unicorn/no-process-exit': 0
}
}
],
Expand Down
13 changes: 1 addition & 12 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,24 +33,13 @@ updates:
groups:
conventional-changelog:
patterns:
- '@types/conventional-changelog'
- '@types/conventional-changelog-core'
- '@types/conventional-changelog-writer'
- '@types/conventional-recommended-bump'
- '@types/git-raw-commits'
- conventional-changelog
- conventional-changelog-conventionalcommits
- conventional-changelog-core
- conventional-changelog-writer
- conventional-recommended-bump
flex-development:
patterns:
- '@flex-development/*'
nest-commander:
nestjs:
patterns:
- '@nestjs/*'
- commander
- nest-commander*
typescript-eslint:
patterns:
- '@typescript-eslint/*'
Expand Down
3 changes: 1 addition & 2 deletions .github/infrastructure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ branches:
- context: test (16)
- context: test (18)
- context: test (19)
- context: test (20.5.0)
- context: typescript (5.0.4)
- context: test (20.6.1)
- context: typescript (5.1.6)
- context: typescript (latest)
strict: true
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,6 @@ jobs:
typescript-version:
- ${{ needs.preflight.outputs.version-typescript }}
- latest
- 5.0.4
steps:
- id: checkout
name: Checkout ${{ env.REF_NAME }}
Expand Down Expand Up @@ -285,7 +284,7 @@ jobs:
fail-fast: false
matrix:
node-version:
- 20.5.0
- 20.6.1
- 19
- 18
- 16
Expand All @@ -301,13 +300,20 @@ jobs:
uses: andstor/[email protected]
with:
files: '**/__tests__/*.spec.+(ts|tsx)'
- id: yarn-ignore-node
if: |
steps.test-files-check.outputs.files_exists == 'true'
&& startsWith(matrix.node-version, '16')
name: Set env.YARN_IGNORE_NODE
run: echo "YARN_IGNORE_NODE=1" >>$GITHUB_ENV
- id: node
if: steps.test-files-check.outputs.files_exists == 'true'
name: Setup Node.js v${{ matrix.node-version }}
uses: actions/[email protected]
with:
cache: yarn
cache-dependency-path: yarn.lock
check-latest: true
node-version: ${{ matrix.node-version }}
- id: cache
if: steps.test-files-check.outputs.files_exists == 'true'
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/dependabot-auto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ name: dependabot-auto
on: pull_request
env:
GITHUB_TOKEN: ${{ secrets.PAT_BOT }}
YARN_ENABLE_GLOBAL_CACHE: true
YARN_ENABLE_IMMUTABLE_INSTALLS: false
jobs:
dependabot-auto:
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20.5.0
20.6.1
12 changes: 6 additions & 6 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
{
"arrowParens": "avoid",
"bracketSpacing": true,
"plugins": ["prettier-plugin-sh"],
"proseWrap": "always",
"quoteProps": "as-needed",
"semi": false,
"trailingComma": "none",
"overrides": [
{
"files": [
Expand All @@ -32,5 +27,10 @@
"variant": 0
}
}
]
],
"plugins": ["prettier-plugin-sh"],
"proseWrap": "always",
"quoteProps": "as-needed",
"semi": false,
"trailingComma": "none"
}
Loading

0 comments on commit 6624182

Please sign in to comment.