Skip to content

Commit b0a230d

Browse files
committed
refactor!: init project rewrite
Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
1 parent 2915104 commit b0a230d

File tree

156 files changed

+16308
-12474
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

156 files changed

+16308
-12474
lines changed

.attw.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"color": true,
3+
"emoji": true,
4+
"format": "ascii",
5+
"ignoreRules": ["cjs-resolves-to-esm", "internal-resolution-error"],
6+
"summary": true
7+
}

.codecov.yml

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
# CODECOV CONFIGURATION
2+
# https://docs.codecov.com/docs/codecovyml-reference
3+
4+
---
5+
codecov:
6+
notify:
7+
after_n_builds: 2
8+
wait_for_ci: true
9+
require_ci_to_pass: true
10+
11+
comment:
12+
after_n_builds: 2
13+
behavior: default
14+
layout: header,diff,flags,tree,footer
15+
require_base: false
16+
require_changes: false
17+
require_head: true
18+
show_carryforward_flags: true
19+
show_critical_paths: true
20+
21+
coverage:
22+
precision: 2
23+
range: 90..100
24+
round: nearest
25+
status:
26+
changes:
27+
default:
28+
branches:
29+
- dependabot/*
30+
- feat/*
31+
- hotfix/*
32+
- main
33+
- release/*
34+
if_ci_failed: error
35+
if_not_found: success
36+
informational: false
37+
only_pulls: false
38+
patch:
39+
default:
40+
branches:
41+
- dependabot/*
42+
- feat/*
43+
- hotfix/*
44+
- main
45+
- release/*
46+
if_ci_failed: error
47+
if_not_found: success
48+
informational: false
49+
only_pulls: false
50+
target: 100%
51+
threshold: 0%
52+
project:
53+
default:
54+
branches:
55+
- dependabot/*
56+
- feat/*
57+
- hotfix/*
58+
- main
59+
- release/*
60+
if_ci_failed: error
61+
if_not_found: success
62+
informational: false
63+
only_pulls: false
64+
target: 100%
65+
threshold: 0%
66+
67+
flags:
68+
node23:
69+
carryforward: false
70+
paths:
71+
- src/
72+
73+
github_checks:
74+
annotations: true
75+
76+
ignore:
77+
- '**/*.d.mts'
78+
- '**/__mocks__/**'
79+
- '**/__tests__/**'
80+
- '**/index.mts'
81+
- '**/interfaces/**'
82+
- '**/types/**'
83+
- '!src/index.mts'
84+
- src/internal/*.browser.mts
85+
86+
profiling:
87+
critical_files_paths: []

.commitlintrc.ts

Lines changed: 13 additions & 88 deletions
Original file line numberDiff line numberDiff line change
@@ -1,96 +1,21 @@
1-
import type { UserConfig } from '@commitlint/types'
2-
31
/**
4-
* @file Commitlint Configuration
5-
* @see https://commitlint.js.org/#/guides-local-setup
6-
* @see https://commitlint.js.org/#/reference-configuration
2+
* @file Configuration - commitlint
3+
* @module config/commitlint
4+
* @see https://commitlint.js.org
75
*/
86

9-
const config: UserConfig = {
10-
/**
11-
* Enable default ignore rules.
12-
*/
13-
defaultIgnores: true,
14-
15-
/**
16-
* IDs of commitlint configurations to extend.
17-
*/
18-
extends: ['@commitlint/config-conventional'],
7+
import { RuleConfigSeverity, type UserConfig } from '@commitlint/types'
8+
import { scopes } from '@flex-development/commitlint-config'
199

20-
/**
21-
* Name of formatter package.
22-
*/
23-
formatter: '@commitlint/format',
24-
25-
/**
26-
* Functions that return true if commitlint should ignore the given message.
27-
*/
28-
ignores: [],
29-
30-
/**
31-
* Rules to test commits against.
32-
*
33-
* @see https://commitlint.js.org/#/reference-rules
34-
*/
10+
/**
11+
* `commitlint` configuration object.
12+
*
13+
* @const {UserConfig} config
14+
*/
15+
const config: UserConfig = {
16+
extends: ['@flex-development'],
3517
rules: {
36-
/**
37-
* Scope casing.
38-
*/
39-
'scope-case': [2, 'always', 'kebab-case'],
40-
41-
/**
42-
* Commit scopes.
43-
*/
44-
'scope-enum': [
45-
2,
46-
'always',
47-
[
48-
'cjs',
49-
'config',
50-
'deploy',
51-
'deps',
52-
'deps-dev',
53-
'deps-opt',
54-
'deps-peer',
55-
'esm',
56-
'github',
57-
'hybrid',
58-
'release',
59-
'scripts',
60-
'tests',
61-
'tools',
62-
'typescript',
63-
'utils',
64-
'workflows',
65-
'yarn'
66-
]
67-
],
68-
69-
/**
70-
* Commit message subject casing.
71-
*/
72-
'subject-case': [1, 'always', 'lower-case'],
73-
74-
/**
75-
* Rules for valid commit types.
76-
*/
77-
'type-enum': [
78-
2,
79-
'always',
80-
[
81-
'build',
82-
'chore',
83-
'ci',
84-
'docs',
85-
'feat',
86-
'fix',
87-
'perf',
88-
'refactor',
89-
'revert',
90-
'style',
91-
'test'
92-
]
93-
]
18+
'scope-enum': [RuleConfigSeverity.Error, 'always', scopes(['chore'])]
9419
}
9520
}
9621

.cspell.json

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json",
3+
"allowCompoundWords": true,
4+
"caseSensitive": false,
5+
"dictionaries": ["@flex-development/log"],
6+
"dictionaryDefinitions": [
7+
{
8+
"name": "@flex-development/log",
9+
"path": "./.dictionary.txt"
10+
}
11+
],
12+
"enableGlobDot": true,
13+
"failFast": false,
14+
"flagWords": [],
15+
"ignorePaths": [
16+
"**/*.patch",
17+
"**/*.snap",
18+
"**/*.wasm",
19+
"**/.*ignore",
20+
"**/.gitconfig",
21+
"**/CHANGELOG.md",
22+
"**/LICENSE.md",
23+
"**/RELEASE_NOTES.md",
24+
".cspell.json",
25+
".dictionary.txt",
26+
".git/",
27+
".husky/_/",
28+
".vscode/settings.json",
29+
".yarn/",
30+
"patches/",
31+
"yarn.lock"
32+
],
33+
"ignoreRegExpList": [],
34+
"ignoreWords": [],
35+
"language": "en-US",
36+
"patterns": [],
37+
"readonly": true,
38+
"useGitignore": true,
39+
"usePnP": false,
40+
"version": "0.2"
41+
}

.dictionary.txt

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
attw
2+
cefc
3+
commitlintrc
4+
dedupe
5+
dessant
6+
devlop
7+
docast
8+
dohm
9+
dprint
10+
fbca
11+
ggshield
12+
gpgsign
13+
hmarr
14+
jchen
15+
kaisugi
16+
nvmrc
17+
pkgs
18+
remarkrc
19+
sarif
20+
shfmt
21+
smob
22+
unstub
23+
vates
24+
vitest
25+
yarnrc

0 commit comments

Comments
 (0)