Skip to content

Commit

Permalink
refactor!: init project rewrite
Browse files Browse the repository at this point in the history
Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
  • Loading branch information
unicornware committed Feb 1, 2024
1 parent 777f134 commit d6a8d5f
Show file tree
Hide file tree
Showing 117 changed files with 7,387 additions and 11,897 deletions.
17 changes: 4 additions & 13 deletions .codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
---
codecov:
notify:
after_n_builds: 4
after_n_builds: 3
wait_for_ci: true
require_ci_to_pass: true

comment:
after_n_builds: 4
after_n_builds: 3
behavior: default
layout: header,diff,flags,tree,footer
layout: header,diff,flags,components,tree,footer
require_base: false
require_changes: false
require_head: true
Expand Down Expand Up @@ -76,10 +76,6 @@ flags:
carryforward: false
paths:
- src/
node16:
carryforward: false
paths:
- src/

github_checks:
annotations: true
Expand All @@ -92,9 +88,4 @@ ignore:
- src/types/

profiling:
critical_files_paths:
- src/attacher.ts
- src/grammar.ts
- src/lexer.ts
- src/parser.ts
- src/reader.ts
critical_files_paths: []
12 changes: 7 additions & 5 deletions .commitlintrc.cts
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,13 @@ import { scopes } from '@flex-development/commitlint-config'
const config: UserConfig = {
extends: ['@flex-development'],
rules: {
'scope-enum': [
Severity.Error,
'always',
scopes(['attacher', 'grammar', 'lexer', 'parser', 'reader'])
]
'scope-enum': [Severity.Error, 'always', scopes([
'attacher',
'grammar',
'lexer',
'parser',
'reader'
])]
}
}

Expand Down
2 changes: 2 additions & 0 deletions .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@
"ignorePaths": [
"**/*.log",
"**/*.snap",
"**/*.wasm",
"**/.*ignore",
"**/.gitconfig",
"**/CHANGELOG.md",
"**/LICENSE.md",
"**/RELEASE_NOTES.md",
"**/scratch.*",
".cspell.json",
".dictionary.txt",
".git/",
Expand Down
19 changes: 5 additions & 14 deletions .dictionary.txt
Original file line number Diff line number Diff line change
@@ -1,41 +1,32 @@
ardatan
attw
bdougie
cefc
codecov
commitlintrc
dedupe
dessant
detab
docast
dohm
dprint
fbca
ggshield
gpgsign
hmarr
iife
infile
jchen
jsdoc
katas
katas
keyid
larsgw
lcov
kaisugi
lintstagedrc
mdast
mkbuild
mlly
nocheck
npmrc
nvmrc
pathe
pkgs
preid
psum
stringifier
tokenizes
tscu
shfmt
tsdoc
unist
unstub
vates
vfile
Expand Down
152 changes: 152 additions & 0 deletions .dprint.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,152 @@
{
"$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": ["css", "html", "json5", "scss", "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,
"trailingCommas": "never"
},
"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.88.10.wasm",
"https://plugins.dprint.dev/json-0.19.1.wasm",
"https://plugins.dprint.dev/markdown-0.16.3.wasm",
"https://plugins.dprint.dev/exec-0.4.4.json@c207bf9b9a4ee1f0ecb75c594f774924baf62e8e53a2ce9d873816a408cecbf7"
],
"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": "prefer",
"jsx.quoteStyle": "preferSingle",
"jsxExpressionContainer.spaceSurroundingExpression": false,
"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
}
15 changes: 9 additions & 6 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,20 @@ spaces_around_operators = true
tab_width = 2
trim_trailing_whitespace = true

# handlebars
[*.hbs]
max_line_length = 100

# markdown
[*.md]
[{*.md,*.mdx}]
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 +46,5 @@ max_line_length = 130
max_line_length = 100

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

# DIRECTORIES & FILES
**/*.patch
**/*.sh
**/*.snap
**/*config.*.timestamp*
**/.DS_Store
**/__tests__/report.json
**/coverage/
**/.temp/
**/__tests__/report.*
**/coverage/
**/dist/
**/node_modules/
**/tsconfig*temp.json
Brewfile
yarn.lock

# NEGATED PATTERNS
!**/.eslintrc*
!**/.vitepress/
!**/__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
!.remarkrc.json
!.vscode/
!.yarnrc.yml
Loading

0 comments on commit d6a8d5f

Please sign in to comment.