Skip to content

Commit

Permalink
refactor!: init project rewrite
Browse files Browse the repository at this point in the history
- closes #192
- resolves #218
- closes #222
- closes #223
- closes #224
- renamed project

Signed-off-by: Lexus Drumgold <[email protected]>
  • Loading branch information
unicornware committed Nov 7, 2023
1 parent c21d5a1 commit 74939e1
Show file tree
Hide file tree
Showing 134 changed files with 6,544 additions and 30,436 deletions.
42 changes: 24 additions & 18 deletions .codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,39 @@
---
codecov:
notify:
after_n_builds: 3
after_n_builds: 1
wait_for_ci: true
require_ci_to_pass: true

comment:
after_n_builds: 3
after_n_builds: 1
behavior: default
layout: header,diff,flags,tree,footer
layout: header,diff,flags,components,tree,footer
require_base: false
require_changes: false
require_head: true
show_carryforward_flags: true
show_critical_paths: true

component_management:
default_rules:
statuses:
- type: project
target: 100%
individual_components:
- component_id: commands
name: commands
paths:
- src/commands/*.ts
- component_id: providers
name: providers
paths:
- src/providers/*.ts
- component_id: queries
name: queries
paths:
- src/queries/*.ts

coverage:
precision: 2
range: 90..100
Expand Down Expand Up @@ -65,15 +84,7 @@ coverage:
threshold: 0%

flags:
node19:
carryforward: false
paths:
- src/
node18:
carryforward: false
paths:
- src/
node16:
node20:
carryforward: false
paths:
- src/
Expand All @@ -85,12 +96,7 @@ ignore:
- '**/__mocks__/**'
- '**/__tests__/**'
- '**/index.ts'
- src/enums/
- src/interfaces/
- src/main.ts
- src/types/

profiling:
critical_files_paths:
- src/models/manager.ts
- src/run.ts
critical_files_paths: []
19 changes: 14 additions & 5 deletions .commitlintrc.cts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@
* @see https://commitlint.js.org
*/

import {
RuleConfigSeverity as Severity,
type UserConfig
} from '@commitlint/types'
import { RuleConfigSeverity, type UserConfig } from '@commitlint/types'
import { scopes } from '@flex-development/commitlint-config'

/**
Expand All @@ -18,7 +15,19 @@ import { scopes } from '@flex-development/commitlint-config'
const config: UserConfig = {
extends: ['@flex-development'],
rules: {
'scope-enum': [Severity.Error, 'always', scopes(['action', 'inputs'])]
'scope-enum': [
RuleConfigSeverity.Error,
'always',
scopes([
'action',
'chore',
'commands',
'inputs',
'octokit',
'queries',
'runner'
])
]
}
}

Expand Down
7 changes: 4 additions & 3 deletions .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
"$schema": "https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json",
"allowCompoundWords": true,
"caseSensitive": false,
"dictionaries": ["@flex-development/rice-action"],
"dictionaries": ["@flex-development/repostructure-action"],
"dictionaryDefinitions": [
{
"name": "@flex-development/rice-action",
"name": "@flex-development/repostructure-action",
"path": "./.dictionary.txt"
}
],
Expand All @@ -14,19 +14,20 @@
"flagWords": [],
"ignorePaths": [
"**/*.log",
"**/*.patch",
"**/*.snap",
"**/.*ignore",
"**/.gitconfig",
"**/CHANGELOG.md",
"**/LICENSE.md",
"**/RELEASE_NOTES.md",
"**/scratch.*",
".cspell.json",
".dictionary.txt",
".git/",
".husky/_/",
".vscode/settings.json",
".yarn/",
"__fixtures__/api.github.com/",
"dist/",
"patches/",
"yarn.lock"
Expand Down
12 changes: 8 additions & 4 deletions .dictionary.txt
Original file line number Diff line number Diff line change
@@ -1,30 +1,34 @@
ardatan
bdougie
cefc
codecov
commitlintrc
cqrs
dedupe
dessant
dohm
dprint
fbca
ggshield
gpgsign
hmarr
iife
infile
keyid
larsgw
jchen
kaisugi
lcov
lintstagedrc
mkbuild
mlly
nestjs
nocheck
nvmrc
pathe
preid
repostructure
shfmt
tscu
unmocked
unstub
vates
vitest
xlarge
yarnrc
151 changes: 151 additions & 0 deletions .dprint.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,151 @@
{
"$schema": "https://dprint.dev/schemas/v0.json",
"excludes": [
"!**/__fixtures__/**/dist/",
"!**/__fixtures__/**/node_modules/",
"!**/typings/**/dist/",
"**/*.patch",
"**/*.snap",
"**/*config.*.timestamp*",
"**/.temp/",
"**/.vercel/",
"**/__fixtures__/git/**/*.txt",
"**/__tests__/report.json",
"**/coverage/",
"**/dist/",
"**/node_modules",
"**/tsconfig*temp.json",
".git/",
".husky/_/",
".yarn/",
"CHANGELOG.md",
"LICENSE.md",
"RELEASE_NOTES.md",
"yarn.lock"
],
"exec": {
"commands": [
{
"command": "node ./dprint/prettier.mjs {{file_path}}",
"exts": ["json5", "yaml", "yml"],
"stdin": true
},
{
"command": "node ./dprint/shfmt.mjs {{file_path}}",
"exts": ["sh", "txt", "zsh"],
"fileNames": [
".editorconfig",
".env",
".env.local",
".env.repo",
".eslintcache",
".eslintignore",
".gitattributes",
".gitconfig",
".gitignore",
".markdownlintignore",
".npmrc",
".nvmrc",
"Brewfile",
"commit-msg",
"pre-commit",
"pre-push"
],
"stdin": true
}
]
},
"incremental": true,
"indentWidth": 2,
"json": {
"associations": ["**/*.{jsonc,json}"],
"array.preferSingleLine": false,
"commentLine.forceSpaceAfterSlashes": true,
"ignoreNodeCommentText": "dprint-ignore",
"object.preferSingleLine": false
},
"lineWidth": 80,
"markdown": {
"associations": ["**/*.{md,mdx}"],
"emphasisKind": "asterisks",
"ignoreDirective": "dprint-ignore",
"ignoreEndDirective": "dprint-ignore-end",
"ignoreFileDirective": "dprint-ignore-file",
"ignoreStartDirective": "dprint-ignore-start",
"lineWidth": 120,
"strongKind": "asterisks",
"textWrap": "maintain"
},
"newLineKind": "lf",
"plugins": [
"https://plugins.dprint.dev/typescript-0.87.1.wasm",
"https://plugins.dprint.dev/json-0.17.4.wasm",
"https://plugins.dprint.dev/markdown-0.16.0.wasm",
"https://plugins.dprint.dev/exec-0.4.3.json@42343548b8022c99b1d750be6b894fe6b6c7ee25f72ae9f9082226dd2e515072"
],
"typescript": {
"arrowFunction.useParentheses": "preferNone",
"binaryExpression.linePerExpression": false,
"binaryExpression.operatorPosition": "sameLine",
"binaryExpression.spaceSurroundingBitwiseAndArithmeticOperator": true,
"bracePosition": "sameLine",
"commentLine.forceSpaceAfterSlashes": true,
"constructSignature.spaceAfterNewKeyword": true,
"constructor.spaceBeforeParentheses": false,
"constructorType.spaceAfterNewKeyword": true,
"doWhileStatement.spaceAfterWhileKeyword": true,
"enumDeclaration.memberSpacing": "maintain",
"exportDeclaration.forceMultiLine": false,
"exportDeclaration.forceSingleLine": false,
"exportDeclaration.sortNamedExports": "maintain",
"exportDeclaration.spaceSurroundingNamedExports": true,
"forInStatement.spaceAfterForKeyword": true,
"forOfStatement.spaceAfterForKeyword": true,
"forStatement.spaceAfterForKeyword": true,
"forStatement.spaceAfterSemiColons": true,
"functionDeclaration.spaceBeforeParentheses": false,
"functionExpression.spaceAfterFunctionKeyword": false,
"functionExpression.spaceBeforeParentheses": false,
"getAccessor.spaceBeforeParentheses": false,
"ifStatement.spaceAfterIfKeyword": true,
"ignoreFileCommentText": "dprint-ignore-file",
"ignoreNodeCommentText": "dprint-ignore",
"importDeclaration.forceMultiLine": false,
"importDeclaration.forceSingleLine": false,
"importDeclaration.sortNamedImports": "maintain",
"importDeclaration.spaceSurroundingNamedImports": true,
"jsx.bracketPosition": "nextLine",
"jsx.forceNewLinesSurroundingContent": false,
"jsx.multiLineParens": "always",
"jsx.quoteStyle": "preferSingle",
"jsxExpressionContainer.spaceSurroundingExpression": true,
"jsxSelfClosingElement.spaceBeforeSlash": true,
"memberExpression.linePerExpression": false,
"method.spaceBeforeParentheses": false,
"module.sortExportDeclarations": "caseSensitive",
"module.sortImportDeclarations": "caseSensitive",
"newLineKind": "lf",
"nextControlFlowPosition": "sameLine",
"objectExpression.spaceSurroundingProperties": true,
"objectPattern.spaceSurroundingProperties": true,
"operatorPosition": "nextLine",
"preferHanging": true,
"preferSingleLine": false,
"quoteProps": "asNeeded",
"quoteStyle": "alwaysSingle",
"semiColons": "asi",
"setAccessor.spaceBeforeParentheses": false,
"singleBodyPosition": "sameLine",
"spaceAround": false,
"spaceSurroundingProperties": true,
"taggedTemplate.spaceBeforeLiteral": false,
"trailingCommas": "never",
"typeAnnotation.spaceBeforeColon": false,
"typeAssertion.spaceBeforeExpression": false,
"typeLiteral.separatorKind.singleLine": "semiColon",
"typeLiteral.spaceSurroundingProperties": true,
"useBraces": "maintain",
"whileStatement.spaceAfterWhileKeyword": true
},
"useTabs": false
}
9 changes: 8 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,14 @@ max_line_length = 120

# shellscript
[*.sh]
binary_next_line = true
function_next_line = false
keep_comments = true
keep_padding = false
max_line_length = 100
shell_variant = 0
space_redirects = false
switch_case_indent = true

# snapshots
[*.snap]
Expand All @@ -43,5 +50,5 @@ max_line_length = 130
max_line_length = 100

# yaml
[*.yml]
[{*.yaml,*.yml}]
max_line_length = 100
6 changes: 4 additions & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# https://eslint.org/docs/user-guide/configuring/ignoring-code#the-eslintignore-file

# DIRECTORIES & FILES
**/*.patch
**/*.snap
**/*config.*.timestamp*
**/.DS_Store
Expand All @@ -18,13 +19,14 @@ yarn.lock
!**/__fixtures__/**/dist/
!**/__fixtures__/**/node_modules/
!**/typings/**/dist/
!.attw.json
!.codecov.yml
!.commitlintrc.*
!.cspell.json
!.dprint.*
!.github/
!.graphqlrc.yml
!.grease*.*
!.lintstagedrc.json
!.markdownlint.jsonc
!.prettierrc.json
!.vscode/
!.yarnrc.yml
Loading

0 comments on commit 74939e1

Please sign in to comment.