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 <[email protected]>
  • Loading branch information
unicornware committed Jan 25, 2025
1 parent 2915104 commit 9fea64e
Show file tree
Hide file tree
Showing 156 changed files with 16,298 additions and 12,475 deletions.
7 changes: 7 additions & 0 deletions .attw.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"color": true,
"emoji": true,
"format": "ascii",
"ignoreRules": ["cjs-resolves-to-esm", "internal-resolution-error"],
"summary": true
}
87 changes: 87 additions & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
# CODECOV CONFIGURATION
# https://docs.codecov.com/docs/codecovyml-reference

---
codecov:
notify:
after_n_builds: 2
wait_for_ci: true
require_ci_to_pass: true

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

coverage:
precision: 2
range: 90..100
round: nearest
status:
changes:
default:
branches:
- dependabot/*
- feat/*
- hotfix/*
- main
- release/*
if_ci_failed: error
if_not_found: success
informational: false
only_pulls: false
patch:
default:
branches:
- dependabot/*
- feat/*
- hotfix/*
- main
- release/*
if_ci_failed: error
if_not_found: success
informational: false
only_pulls: false
target: 100%
threshold: 0%
project:
default:
branches:
- dependabot/*
- feat/*
- hotfix/*
- main
- release/*
if_ci_failed: error
if_not_found: success
informational: false
only_pulls: false
target: 100%
threshold: 0%

flags:
node23:
carryforward: false
paths:
- src/

github_checks:
annotations: true

ignore:
- '**/*.d.mts'
- '**/__mocks__/**'
- '**/__tests__/**'
- '**/index.mts'
- '**/interfaces/**'
- '**/types/**'
- '!src/index.mts'
- src/internal/*.browser.mts

profiling:
critical_files_paths: []
101 changes: 13 additions & 88 deletions .commitlintrc.ts
Original file line number Diff line number Diff line change
@@ -1,96 +1,21 @@
import type { UserConfig } from '@commitlint/types'

/**
* @file Commitlint Configuration
* @see https://commitlint.js.org/#/guides-local-setup
* @see https://commitlint.js.org/#/reference-configuration
* @file Configuration - commitlint
* @module config/commitlint
* @see https://commitlint.js.org
*/

const config: UserConfig = {
/**
* Enable default ignore rules.
*/
defaultIgnores: true,

/**
* IDs of commitlint configurations to extend.
*/
extends: ['@commitlint/config-conventional'],
import { RuleConfigSeverity, type UserConfig } from '@commitlint/types'
import { scopes } from '@flex-development/commitlint-config'

/**
* Name of formatter package.
*/
formatter: '@commitlint/format',

/**
* Functions that return true if commitlint should ignore the given message.
*/
ignores: [],

/**
* Rules to test commits against.
*
* @see https://commitlint.js.org/#/reference-rules
*/
/**
* `commitlint` configuration object.
*
* @const {UserConfig} config
*/
const config: UserConfig = {
extends: ['@flex-development'],
rules: {
/**
* Scope casing.
*/
'scope-case': [2, 'always', 'kebab-case'],

/**
* Commit scopes.
*/
'scope-enum': [
2,
'always',
[
'cjs',
'config',
'deploy',
'deps',
'deps-dev',
'deps-opt',
'deps-peer',
'esm',
'github',
'hybrid',
'release',
'scripts',
'tests',
'tools',
'typescript',
'utils',
'workflows',
'yarn'
]
],

/**
* Commit message subject casing.
*/
'subject-case': [1, 'always', 'lower-case'],

/**
* Rules for valid commit types.
*/
'type-enum': [
2,
'always',
[
'build',
'chore',
'ci',
'docs',
'feat',
'fix',
'perf',
'refactor',
'revert',
'style',
'test'
]
]
'scope-enum': [RuleConfigSeverity.Error, 'always', scopes(['chore'])]
}
}

Expand Down
41 changes: 41 additions & 0 deletions .cspell.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"$schema": "https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json",
"allowCompoundWords": true,
"caseSensitive": false,
"dictionaries": ["@flex-development/log"],
"dictionaryDefinitions": [
{
"name": "@flex-development/log",
"path": "./.dictionary.txt"
}
],
"enableGlobDot": true,
"failFast": false,
"flagWords": [],
"ignorePaths": [
"**/*.patch",
"**/*.snap",
"**/*.wasm",
"**/.*ignore",
"**/.gitconfig",
"**/CHANGELOG.md",
"**/LICENSE.md",
"**/RELEASE_NOTES.md",
".cspell.json",
".dictionary.txt",
".git/",
".husky/_/",
".vscode/settings.json",
".yarn/",
"patches/",
"yarn.lock"
],
"ignoreRegExpList": [],
"ignoreWords": [],
"language": "en-US",
"patterns": [],
"readonly": true,
"useGitignore": true,
"usePnP": false,
"version": "0.2"
}
25 changes: 25 additions & 0 deletions .dictionary.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
attw
cefc
commitlintrc
dedupe
dessant
devlop
docast
dohm
dprint
fbca
ggshield
gpgsign
hmarr
jchen
kaisugi
nvmrc
pkgs
remarkrc
sarif
shfmt
smob
unstub
vates
vitest
yarnrc
Loading

0 comments on commit 9fea64e

Please sign in to comment.