Skip to content

Commit

Permalink
chore: update project architecture
Browse files Browse the repository at this point in the history
Signed-off-by: Lexus Drumgold <[email protected]>
  • Loading branch information
unicornware committed Jan 28, 2023
1 parent 4f42cd8 commit ff3eb07
Show file tree
Hide file tree
Showing 40 changed files with 1,844 additions and 1,202 deletions.
14 changes: 6 additions & 8 deletions .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,25 +16,23 @@
"**/*.snap",
"**/.gitconfig",
"**/.gitignore",
"**/.gitkeep",
"**/.npmignore",
"**/CHANGELOG.md",
"**/LICENSE.md",
"**/RELEASE_NOTES.md",
"**/dist/",
".cspell.json",
".env*",
".eslintignore",
".git/",
".husky/_/",
".markdownlintignore",
".npmrc",
".nvmrc",
".prettierignore",
".vercel/",
".vscode/settings.json",
".yarn/",
"CHANGELOG.md",
"LICENSE.md",
"__tests__/report.json",
"patches/",
"tsconfig*temp.json",
"vitest.config.*.timestamp-*.mjs",
"yarn.lock"
],
"ignoreRegExpList": [
Expand All @@ -49,5 +47,5 @@
"useGitignore": true,
"usePnP": false,
"version": "0.2",
"words": ["fldv", "flexdevelopmentllc", "pathe"]
"words": ["fldv", "flexdevelopmentllc", "mlly", "pathe"]
}
2 changes: 2 additions & 0 deletions .dictionary.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@ fbca
gpgsign
hmarr
iife
infile
keyid
larsgw
lcov
lintstagedrc
micnncim
mkbuild
nocheck
Expand Down
26 changes: 18 additions & 8 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,17 +1,27 @@
# ESLINT IGNORE
# https://eslint.org/docs/user-guide/configuring#ignoring-files-and-directories
# https://eslint.org/docs/user-guide/configuring/ignoring-code#the-eslintignore-file

# DIRECTORIES & FILES
**/*.snap
**/.DS_Store
.eslintcache
.yarn/*
__tests__/report.json
coverage/*
dist/*
node_modules/*
tsconfig.temp.json
coverage/
dist/
node_modules/
tsconfig*temp.json
vitest.config.*.timestamp-*.mjs
yarn.lock

# NEGATED PATTERNS
!/.*
!.codecov.yml
!.commitlintrc.json
!.cspell.json
!.eslintrc.base.cjs
!.eslintrc.cjs
!.github/
!.graphqlrc.yml
!.lintstagedrc.json
!.markdownlint.jsonc
!.prettierrc.json
!.vscode/
!.yarnrc.yml
24 changes: 14 additions & 10 deletions .eslintrc.base.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ const config = {
'plugin:prettier/recommended'
],
globals: {
BufferEncoding: 'readonly',
Chai: 'readonly',
Console: 'readonly',
JSX: jsx ? 'readonly' : false,
Expand All @@ -39,7 +40,6 @@ const config = {
LoadHookResult: 'readonly',
LoaderHookFormat: 'readonly',
NodeJS: 'readonly',
ResolveFilename: 'readonly',
ResolveHook: 'readonly',
ResolveHookContext: 'readonly',
ResolveHookResult: 'readonly'
Expand Down Expand Up @@ -475,6 +475,7 @@ const config = {
'no-magic-numbers': 0,
'no-restricted-imports': 0,
'no-shadow': 0,
'no-sparse-arrays': 0,
'no-unused-expressions': 0,
'no-unused-vars': 0,
'no-use-before-define': 0,
Expand Down Expand Up @@ -605,8 +606,9 @@ const config = {
'unicorn/no-useless-spread': 2,
'unicorn/no-useless-undefined': 2,
'unicorn/no-zero-fractions': 2,
'unicorn/number-literal-case': 2,
'unicorn/numeric-separators-style': 2,
'unicorn/number-literal-case': 0,
// https://github.com/sindresorhus/eslint-plugin-unicorn/issues/2003
'unicorn/numeric-separators-style': 0,
'unicorn/prefer-add-event-listener': 2,
'unicorn/prefer-array-find': 2,
'unicorn/prefer-array-flat': [2, { functions: [] }],
Expand All @@ -619,7 +621,7 @@ const config = {
'unicorn/prefer-default-parameters': 2,
'unicorn/prefer-export-from': [2, { ignoreUsedVariables: true }],
'unicorn/prefer-includes': 2,
'unicorn/prefer-json-parse-buffer': 2,
'unicorn/prefer-json-parse-buffer': 0,
'unicorn/prefer-math-trunc': 2,
'unicorn/prefer-module': 2,
'unicorn/prefer-negative-index': 2,
Expand Down Expand Up @@ -829,14 +831,9 @@ const config = {
files: ['*.d.ts'],
rules: {
'@typescript-eslint/ban-types': 0,
'@typescript-eslint/lines-between-class-members': 0,
'@typescript-eslint/no-redundant-type-constituents': 0,
'@typescript-eslint/triple-slash-reference': 0,
'jsdoc/no-undefined-types': 0,
'jsdoc/require-file-overview': 0,
'no-var': 0,
'unicorn/filename-case': 0,
'unicorn/no-empty-file': 0,
'unicorn/no-keyword-prefix': 0
}
},
Expand Down Expand Up @@ -996,7 +993,7 @@ const config = {
}
},
{
files: ['**/__tests__/*.spec.*', '**/__tests__/*.spec-d.*'],
files: ['**/__tests__/*.spec.ts', '**/__tests__/*.spec-d.ts'],
globals: {
afterAll: true,
afterEach: true,
Expand Down Expand Up @@ -1053,6 +1050,13 @@ const config = {
'unicorn/no-keyword-prefix': 0
}
},
{
files: ['**/typings/**/*.d.ts', '*-env.d.ts'],
rules: {
'jsdoc/require-file-overview': 0,
'unicorn/filename-case': 0
}
},
{
files: ['.eslintrc.*'],
rules: {
Expand Down
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/bug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ body:
type: dropdown
attributes:
label: Package manager
description: Provide the package manager that you are using
description: Package manager you are using
options:
- npm
- other
Expand All @@ -80,7 +80,7 @@ body:
type: dropdown
attributes:
label: Operating system (environment)
description: Provide the operating system that you are using
description: Operating system you are using
options:
- linux
- macos
Expand Down
4 changes: 3 additions & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ A list of linked issues and/or pull requests.

## Additional context

<!-- Include additional details here. Be sure to note if any tolerable vulnerabilities or warnings have been introduced. -->
<!--
Include additional details here. Be sure to note if any tolerable vulnerabilities or warnings have been introduced.
-->

## Submission checklist

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ jobs:
NODE_ENV: production
- id: release-notes
name: Generate release notes
run: yarn conventional-changelog -o $NOTES_FILE
run: yarn changelog -w -o $NOTES_FILE
env:
NODE_NO_WARNINGS: 1
- id: tag
Expand Down
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,9 @@ yarn-error.log*
__tests__/report.json
codecov
coverage/
tsconfig.temp.json
tsconfig*temp.json
vitest.config.*.timestamp-*.mjs
!__fixtures__/node_modules/

# ESLint
# ------------------------------------------------------------------------------
Expand All @@ -57,6 +58,10 @@ vitest.config.*.timestamp-*.mjs
dist/
!typings/**/dist/

# Releases
# ------------------------------------------------------------------------------
RELEASE_NOTES.md

# Misc
# ------------------------------------------------------------------------------
scratch.ts
5 changes: 1 addition & 4 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,5 @@
# References:
#
# - https://github.com/okonet/lint-staged#command-line-flags
# - https://vitest.dev/guide/cli.html#changed

yarn typecheck --changed HEAD^
yarn check:types:build
lint-staged
cross-env LINT_STAGED=1 lint-staged --config=.lintstagedrc.json --relative --verbose
5 changes: 0 additions & 5 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
#!/bin/sh

# Pre-Push Workflow
#
# References:
#
# - https://vitest.dev/guide/cli.html#changed

yarn test --changed HEAD^
yarn build
8 changes: 5 additions & 3 deletions .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"*": ["yarn check:format", "yarn check:spelling"],
"**/*.{cjs,cts,gql,json,jsonc,md,mjs,ts,yml}": ["yarn check:lint"],
"**/yarn.lock": "yarn dedupe --check"
"*": ["prettier --check", "cspell lint --color --no-progress --relative $@"],
"**/*.{cjs,gql,json,jsonc,md,mjs,ts,yml}": ["eslint --exit-on-fatal-error"],
"**/*.{cjs,mjs,ts}": "vitest typecheck --changed --run",
"**/yarn.lock": "yarn dedupe --check",
"src/**/*.ts": "vitest --changed --coverage --run"
}
2 changes: 2 additions & 0 deletions .markdownlint.jsonc
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// MARKDOWNLINT CONFIGURATION
// https://github.com/DavidAnson/vscode-markdownlint#configure
{
"MD001": true,
"MD002": {
Expand Down
1 change: 1 addition & 0 deletions .markdownlintignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
# DIRECTORIES & FILES
**/CHANGELOG.md
**/LICENSE.md
**/RELEASE_NOTES.md
13 changes: 7 additions & 6 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,16 @@
**/.npmignore
.eslintcache
.eslintignore
.husky/_/*
.husky/_/
.markdownlintignore
.nvmrc
.prettierignore
.yarn/*
.yarn/
Brewfile
__tests__/report.json
coverage/*
dist/*
node_modules/*
tsconfig.temp.json
coverage/
dist/
node_modules/
tsconfig*temp.json
vitest.config.*.timestamp-*.mjs
yarn.lock
5 changes: 5 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// https://code.visualstudio.com/docs/editor/debugging
{
"version": "0.2.0",
"configurations": []
}
Loading

0 comments on commit ff3eb07

Please sign in to comment.